Skip to content

Commit 4ea2467

Browse files
Rollup merge of #150113 - Darksonn:pin-coerce-unsized-to-150112, r=jackh726
Update tracking issue for PinCoerceUnsized This uses the newly created tracking issue #150112. Please see #68015 (comment) for motivation. r? ``@jackh726``
2 parents fd2f46e + 78f52c1 commit 4ea2467

File tree

7 files changed

+16
-16
lines changed

7 files changed

+16
-16
lines changed

library/alloc/src/boxed.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2253,7 +2253,7 @@ impl<Args: Tuple, F: AsyncFn<Args> + ?Sized, A: Allocator> AsyncFn<Args> for Box
22532253
#[unstable(feature = "coerce_unsized", issue = "18598")]
22542254
impl<T: ?Sized + Unsize<U>, U: ?Sized, A: Allocator> CoerceUnsized<Box<U, A>> for Box<T, A> {}
22552255

2256-
#[unstable(feature = "pin_coerce_unsized_trait", issue = "123430")]
2256+
#[unstable(feature = "pin_coerce_unsized_trait", issue = "150112")]
22572257
unsafe impl<T: ?Sized, A: Allocator> PinCoerceUnsized for Box<T, A> {}
22582258

22592259
// It is quite crucial that we only allow the `Global` allocator here.

library/alloc/src/rc.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2417,14 +2417,14 @@ impl<T: ?Sized, A: Allocator> Deref for Rc<T, A> {
24172417
}
24182418
}
24192419

2420-
#[unstable(feature = "pin_coerce_unsized_trait", issue = "123430")]
2420+
#[unstable(feature = "pin_coerce_unsized_trait", issue = "150112")]
24212421
unsafe impl<T: ?Sized, A: Allocator> PinCoerceUnsized for Rc<T, A> {}
24222422

24232423
//#[unstable(feature = "unique_rc_arc", issue = "112566")]
2424-
#[unstable(feature = "pin_coerce_unsized_trait", issue = "123430")]
2424+
#[unstable(feature = "pin_coerce_unsized_trait", issue = "150112")]
24252425
unsafe impl<T: ?Sized, A: Allocator> PinCoerceUnsized for UniqueRc<T, A> {}
24262426

2427-
#[unstable(feature = "pin_coerce_unsized_trait", issue = "123430")]
2427+
#[unstable(feature = "pin_coerce_unsized_trait", issue = "150112")]
24282428
unsafe impl<T: ?Sized, A: Allocator> PinCoerceUnsized for Weak<T, A> {}
24292429

24302430
#[unstable(feature = "deref_pure_trait", issue = "87121")]

library/alloc/src/sync.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2423,10 +2423,10 @@ impl<T: ?Sized, A: Allocator> Deref for Arc<T, A> {
24232423
}
24242424
}
24252425

2426-
#[unstable(feature = "pin_coerce_unsized_trait", issue = "123430")]
2426+
#[unstable(feature = "pin_coerce_unsized_trait", issue = "150112")]
24272427
unsafe impl<T: ?Sized, A: Allocator> PinCoerceUnsized for Arc<T, A> {}
24282428

2429-
#[unstable(feature = "pin_coerce_unsized_trait", issue = "123430")]
2429+
#[unstable(feature = "pin_coerce_unsized_trait", issue = "150112")]
24302430
unsafe impl<T: ?Sized, A: Allocator> PinCoerceUnsized for Weak<T, A> {}
24312431

24322432
#[unstable(feature = "deref_pure_trait", issue = "87121")]
@@ -4852,7 +4852,7 @@ impl<T: ?Sized, A: Allocator> Deref for UniqueArc<T, A> {
48524852
}
48534853

48544854
// #[unstable(feature = "unique_rc_arc", issue = "112566")]
4855-
#[unstable(feature = "pin_coerce_unsized_trait", issue = "123430")]
4855+
#[unstable(feature = "pin_coerce_unsized_trait", issue = "150112")]
48564856
unsafe impl<T: ?Sized> PinCoerceUnsized for UniqueArc<T> {}
48574857

48584858
#[unstable(feature = "unique_rc_arc", issue = "112566")]

library/core/src/cell.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2696,20 +2696,20 @@ fn assert_coerce_unsized(
26962696
let _: RefCell<&dyn Send> = d;
26972697
}
26982698

2699-
#[unstable(feature = "pin_coerce_unsized_trait", issue = "123430")]
2699+
#[unstable(feature = "pin_coerce_unsized_trait", issue = "150112")]
27002700
unsafe impl<T: ?Sized> PinCoerceUnsized for UnsafeCell<T> {}
27012701

2702-
#[unstable(feature = "pin_coerce_unsized_trait", issue = "123430")]
2702+
#[unstable(feature = "pin_coerce_unsized_trait", issue = "150112")]
27032703
unsafe impl<T: ?Sized> PinCoerceUnsized for SyncUnsafeCell<T> {}
27042704

2705-
#[unstable(feature = "pin_coerce_unsized_trait", issue = "123430")]
2705+
#[unstable(feature = "pin_coerce_unsized_trait", issue = "150112")]
27062706
unsafe impl<T: ?Sized> PinCoerceUnsized for Cell<T> {}
27072707

2708-
#[unstable(feature = "pin_coerce_unsized_trait", issue = "123430")]
2708+
#[unstable(feature = "pin_coerce_unsized_trait", issue = "150112")]
27092709
unsafe impl<T: ?Sized> PinCoerceUnsized for RefCell<T> {}
27102710

2711-
#[unstable(feature = "pin_coerce_unsized_trait", issue = "123430")]
2711+
#[unstable(feature = "pin_coerce_unsized_trait", issue = "150112")]
27122712
unsafe impl<'b, T: ?Sized> PinCoerceUnsized for Ref<'b, T> {}
27132713

2714-
#[unstable(feature = "pin_coerce_unsized_trait", issue = "123430")]
2714+
#[unstable(feature = "pin_coerce_unsized_trait", issue = "150112")]
27152715
unsafe impl<'b, T: ?Sized> PinCoerceUnsized for RefMut<'b, T> {}

library/core/src/pin.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1825,7 +1825,7 @@ where
18251825
{
18261826
}
18271827

1828-
#[unstable(feature = "pin_coerce_unsized_trait", issue = "123430")]
1828+
#[unstable(feature = "pin_coerce_unsized_trait", issue = "150112")]
18291829
/// Trait that indicates that this is a pointer or a wrapper for one, where
18301830
/// unsizing can be performed on the pointee when it is pinned.
18311831
///

library/core/src/ptr/unique.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ impl<T: PointeeSized, U: PointeeSized> CoerceUnsized<Unique<U>> for Unique<T> wh
176176
#[unstable(feature = "ptr_internals", issue = "none")]
177177
impl<T: PointeeSized, U: PointeeSized> DispatchFromDyn<Unique<U>> for Unique<T> where T: Unsize<U> {}
178178

179-
#[unstable(feature = "pin_coerce_unsized_trait", issue = "123430")]
179+
#[unstable(feature = "pin_coerce_unsized_trait", issue = "150112")]
180180
unsafe impl<T: PointeeSized> PinCoerceUnsized for Unique<T> {}
181181

182182
#[unstable(feature = "ptr_internals", issue = "none")]

library/std/src/sys/pal/sgx/abi/usercalls/alloc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -773,7 +773,7 @@ where
773773
#[unstable(feature = "sgx_platform", issue = "56975")]
774774
impl<T: CoerceUnsized<U>, U> CoerceUnsized<UserRef<U>> for UserRef<T> {}
775775

776-
#[unstable(feature = "pin_coerce_unsized_trait", issue = "123430")]
776+
#[unstable(feature = "pin_coerce_unsized_trait", issue = "150112")]
777777
unsafe impl<T: ?Sized> PinCoerceUnsized for UserRef<T> {}
778778

779779
#[unstable(feature = "sgx_platform", issue = "56975")]

0 commit comments

Comments
 (0)