Skip to content

Commit ced6f38

Browse files
authored
Rollup merge of rust-lang#105938 - andersk:coerce_unsized-tracking, r=Dylan-DPC
Update coerce_unsized tracking issue from rust-lang#27732 to rust-lang#18598 Issue rust-lang#27732 was closed as a duplicate of rust-lang#18598.
2 parents c3af456 + 8c73ce6 commit ced6f38

File tree

8 files changed

+24
-24
lines changed

8 files changed

+24
-24
lines changed

library/alloc/src/boxed.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2033,7 +2033,7 @@ impl<Args: Tuple, F: Fn<Args> + ?Sized, A: Allocator> Fn<Args> for Box<F, A> {
20332033
}
20342034
}
20352035

2036-
#[unstable(feature = "coerce_unsized", issue = "27732")]
2036+
#[unstable(feature = "coerce_unsized", issue = "18598")]
20372037
impl<T: ?Sized + Unsize<U>, U: ?Sized, A: Allocator> CoerceUnsized<Box<U, A>> for Box<T, A> {}
20382038

20392039
#[unstable(feature = "dispatch_from_dyn", issue = "none")]

library/alloc/src/rc.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ impl<T: RefUnwindSafe + ?Sized> UnwindSafe for Rc<T> {}
336336
#[stable(feature = "rc_ref_unwind_safe", since = "1.58.0")]
337337
impl<T: RefUnwindSafe + ?Sized> RefUnwindSafe for Rc<T> {}
338338

339-
#[unstable(feature = "coerce_unsized", issue = "27732")]
339+
#[unstable(feature = "coerce_unsized", issue = "18598")]
340340
impl<T: ?Sized + Unsize<U>, U: ?Sized> CoerceUnsized<Rc<U>> for Rc<T> {}
341341

342342
#[unstable(feature = "dispatch_from_dyn", issue = "none")]
@@ -2190,7 +2190,7 @@ impl<T: ?Sized> !marker::Send for Weak<T> {}
21902190
#[stable(feature = "rc_weak", since = "1.4.0")]
21912191
impl<T: ?Sized> !marker::Sync for Weak<T> {}
21922192

2193-
#[unstable(feature = "coerce_unsized", issue = "27732")]
2193+
#[unstable(feature = "coerce_unsized", issue = "18598")]
21942194
impl<T: ?Sized + Unsize<U>, U: ?Sized> CoerceUnsized<Weak<U>> for Weak<T> {}
21952195

21962196
#[unstable(feature = "dispatch_from_dyn", issue = "none")]

library/alloc/src/sync.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ unsafe impl<T: ?Sized + Sync + Send> Sync for Arc<T> {}
254254
#[stable(feature = "catch_unwind", since = "1.9.0")]
255255
impl<T: RefUnwindSafe + ?Sized> UnwindSafe for Arc<T> {}
256256

257-
#[unstable(feature = "coerce_unsized", issue = "27732")]
257+
#[unstable(feature = "coerce_unsized", issue = "18598")]
258258
impl<T: ?Sized + Unsize<U>, U: ?Sized> CoerceUnsized<Arc<U>> for Arc<T> {}
259259

260260
#[unstable(feature = "dispatch_from_dyn", issue = "none")]
@@ -306,7 +306,7 @@ unsafe impl<T: ?Sized + Sync + Send> Send for Weak<T> {}
306306
#[stable(feature = "arc_weak", since = "1.4.0")]
307307
unsafe impl<T: ?Sized + Sync + Send> Sync for Weak<T> {}
308308

309-
#[unstable(feature = "coerce_unsized", issue = "27732")]
309+
#[unstable(feature = "coerce_unsized", issue = "18598")]
310310
impl<T: ?Sized + Unsize<U>, U: ?Sized> CoerceUnsized<Weak<U>> for Weak<T> {}
311311
#[unstable(feature = "dispatch_from_dyn", issue = "none")]
312312
impl<T: ?Sized + Unsize<U>, U: ?Sized> DispatchFromDyn<Weak<U>> for Weak<T> {}

library/core/src/cell.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,7 @@ impl<T: Default> Cell<T> {
568568
}
569569
}
570570

571-
#[unstable(feature = "coerce_unsized", issue = "27732")]
571+
#[unstable(feature = "coerce_unsized", issue = "18598")]
572572
impl<T: CoerceUnsized<U>, U> CoerceUnsized<Cell<U>> for Cell<T> {}
573573

574574
impl<T> Cell<[T]> {
@@ -1266,7 +1266,7 @@ impl<T> const From<T> for RefCell<T> {
12661266
}
12671267
}
12681268

1269-
#[unstable(feature = "coerce_unsized", issue = "27732")]
1269+
#[unstable(feature = "coerce_unsized", issue = "18598")]
12701270
impl<T: CoerceUnsized<U>, U> CoerceUnsized<RefCell<U>> for RefCell<T> {}
12711271

12721272
struct BorrowRef<'b> {
@@ -1492,7 +1492,7 @@ impl<'b, T: ?Sized> Ref<'b, T> {
14921492
}
14931493
}
14941494

1495-
#[unstable(feature = "coerce_unsized", issue = "27732")]
1495+
#[unstable(feature = "coerce_unsized", issue = "18598")]
14961496
impl<'b, T: ?Sized + Unsize<U>, U: ?Sized> CoerceUnsized<Ref<'b, U>> for Ref<'b, T> {}
14971497

14981498
#[stable(feature = "std_guard_impls", since = "1.20.0")]
@@ -1738,7 +1738,7 @@ impl<T: ?Sized> DerefMut for RefMut<'_, T> {
17381738
}
17391739
}
17401740

1741-
#[unstable(feature = "coerce_unsized", issue = "27732")]
1741+
#[unstable(feature = "coerce_unsized", issue = "18598")]
17421742
impl<'b, T: ?Sized + Unsize<U>, U: ?Sized> CoerceUnsized<RefMut<'b, U>> for RefMut<'b, T> {}
17431743

17441744
#[stable(feature = "std_guard_impls", since = "1.20.0")]
@@ -2074,7 +2074,7 @@ impl<T> const From<T> for UnsafeCell<T> {
20742074
}
20752075
}
20762076

2077-
#[unstable(feature = "coerce_unsized", issue = "27732")]
2077+
#[unstable(feature = "coerce_unsized", issue = "18598")]
20782078
impl<T: CoerceUnsized<U>, U> CoerceUnsized<UnsafeCell<U>> for UnsafeCell<T> {}
20792079

20802080
/// [`UnsafeCell`], but [`Sync`].
@@ -2164,7 +2164,7 @@ impl<T> const From<T> for SyncUnsafeCell<T> {
21642164
}
21652165
}
21662166

2167-
#[unstable(feature = "coerce_unsized", issue = "27732")]
2167+
#[unstable(feature = "coerce_unsized", issue = "18598")]
21682168
//#[unstable(feature = "sync_unsafe_cell", issue = "95439")]
21692169
impl<T: CoerceUnsized<U>, U> CoerceUnsized<SyncUnsafeCell<U>> for SyncUnsafeCell<T> {}
21702170

library/core/src/marker.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ pub trait Sized {
126126
/// [`Rc`]: ../../std/rc/struct.Rc.html
127127
/// [RFC982]: https://github.com/rust-lang/rfcs/blob/master/text/0982-dst-coercion.md
128128
/// [nomicon-coerce]: ../../nomicon/coercions.html
129-
#[unstable(feature = "unsize", issue = "27732")]
129+
#[unstable(feature = "unsize", issue = "18598")]
130130
#[lang = "unsize"]
131131
#[cfg_attr(not(bootstrap), rustc_deny_explicit_impl)]
132132
pub trait Unsize<T: ?Sized> {

library/core/src/ops/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ pub(crate) use self::try_trait::{ChangeOutputType, NeverShortCircuit};
201201
#[unstable(feature = "generator_trait", issue = "43122")]
202202
pub use self::generator::{Generator, GeneratorState};
203203

204-
#[unstable(feature = "coerce_unsized", issue = "27732")]
204+
#[unstable(feature = "coerce_unsized", issue = "18598")]
205205
pub use self::unsize::CoerceUnsized;
206206

207207
#[unstable(feature = "dispatch_from_dyn", issue = "none")]

library/core/src/ops/unsize.rs

+10-10
Original file line numberDiff line numberDiff line change
@@ -31,41 +31,41 @@ use crate::marker::Unsize;
3131
/// [dst-coerce]: https://github.com/rust-lang/rfcs/blob/master/text/0982-dst-coercion.md
3232
/// [unsize]: crate::marker::Unsize
3333
/// [nomicon-coerce]: ../../nomicon/coercions.html
34-
#[unstable(feature = "coerce_unsized", issue = "27732")]
34+
#[unstable(feature = "coerce_unsized", issue = "18598")]
3535
#[lang = "coerce_unsized"]
3636
pub trait CoerceUnsized<T: ?Sized> {
3737
// Empty.
3838
}
3939

4040
// &mut T -> &mut U
41-
#[unstable(feature = "coerce_unsized", issue = "27732")]
41+
#[unstable(feature = "coerce_unsized", issue = "18598")]
4242
impl<'a, T: ?Sized + Unsize<U>, U: ?Sized> CoerceUnsized<&'a mut U> for &'a mut T {}
4343
// &mut T -> &U
44-
#[unstable(feature = "coerce_unsized", issue = "27732")]
44+
#[unstable(feature = "coerce_unsized", issue = "18598")]
4545
impl<'a, 'b: 'a, T: ?Sized + Unsize<U>, U: ?Sized> CoerceUnsized<&'a U> for &'b mut T {}
4646
// &mut T -> *mut U
47-
#[unstable(feature = "coerce_unsized", issue = "27732")]
47+
#[unstable(feature = "coerce_unsized", issue = "18598")]
4848
impl<'a, T: ?Sized + Unsize<U>, U: ?Sized> CoerceUnsized<*mut U> for &'a mut T {}
4949
// &mut T -> *const U
50-
#[unstable(feature = "coerce_unsized", issue = "27732")]
50+
#[unstable(feature = "coerce_unsized", issue = "18598")]
5151
impl<'a, T: ?Sized + Unsize<U>, U: ?Sized> CoerceUnsized<*const U> for &'a mut T {}
5252

5353
// &T -> &U
54-
#[unstable(feature = "coerce_unsized", issue = "27732")]
54+
#[unstable(feature = "coerce_unsized", issue = "18598")]
5555
impl<'a, 'b: 'a, T: ?Sized + Unsize<U>, U: ?Sized> CoerceUnsized<&'a U> for &'b T {}
5656
// &T -> *const U
57-
#[unstable(feature = "coerce_unsized", issue = "27732")]
57+
#[unstable(feature = "coerce_unsized", issue = "18598")]
5858
impl<'a, T: ?Sized + Unsize<U>, U: ?Sized> CoerceUnsized<*const U> for &'a T {}
5959

6060
// *mut T -> *mut U
61-
#[unstable(feature = "coerce_unsized", issue = "27732")]
61+
#[unstable(feature = "coerce_unsized", issue = "18598")]
6262
impl<T: ?Sized + Unsize<U>, U: ?Sized> CoerceUnsized<*mut U> for *mut T {}
6363
// *mut T -> *const U
64-
#[unstable(feature = "coerce_unsized", issue = "27732")]
64+
#[unstable(feature = "coerce_unsized", issue = "18598")]
6565
impl<T: ?Sized + Unsize<U>, U: ?Sized> CoerceUnsized<*const U> for *mut T {}
6666

6767
// *const T -> *const U
68-
#[unstable(feature = "coerce_unsized", issue = "27732")]
68+
#[unstable(feature = "coerce_unsized", issue = "18598")]
6969
impl<T: ?Sized + Unsize<U>, U: ?Sized> CoerceUnsized<*const U> for *const T {}
7070

7171
/// `DispatchFromDyn` is used in the implementation of object safety checks (specifically allowing

library/core/src/ptr/non_null.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -712,7 +712,7 @@ impl<T: ?Sized> const Clone for NonNull<T> {
712712
#[stable(feature = "nonnull", since = "1.25.0")]
713713
impl<T: ?Sized> Copy for NonNull<T> {}
714714

715-
#[unstable(feature = "coerce_unsized", issue = "27732")]
715+
#[unstable(feature = "coerce_unsized", issue = "18598")]
716716
impl<T: ?Sized, U: ?Sized> CoerceUnsized<NonNull<U>> for NonNull<T> where T: Unsize<U> {}
717717

718718
#[unstable(feature = "dispatch_from_dyn", issue = "none")]

0 commit comments

Comments
 (0)