Skip to content

Commit f39579c

Browse files
committed
update minicore
1 parent a639008 commit f39579c

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

crates/hir-ty/src/tests/regression/new_solver.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -557,8 +557,6 @@ where
557557
fn regression_19957() {
558558
// This test documents issue #19957: async-trait patterns incorrectly produce
559559
// type mismatches between Pin<Box<dyn Future>> and Pin<Box<impl Future>>.
560-
//
561-
// The test currently FAILS (as expected) because the bug is not yet fixed.
562560
check_no_mismatches(
563561
r#"
564562
//- minicore: future, pin, result, error, send, coerce_unsized, dispatch_from_dyn

crates/test-utils/src/minicore.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1518,6 +1518,12 @@ pub mod pin {
15181518
{
15191519
}
15201520
// endregion:dispatch_from_dyn
1521+
// region:coerce_unsized
1522+
impl<Ptr, U> crate::ops::CoerceUnsized<Pin<U>> for Pin<Ptr> where
1523+
Ptr: crate::ops::CoerceUnsized<U>
1524+
{
1525+
}
1526+
// endregion:coerce_unsized
15211527
}
15221528
// endregion:pin
15231529

0 commit comments

Comments
 (0)