@@ -206,7 +206,7 @@ unsafe impl<T: ?Sized + Sync + Send> Sync for Arc<T> {}
206
206
#[ unstable( feature = "coerce_unsized" , issue = "27732" ) ]
207
207
impl < T : ?Sized + Unsize < U > , U : ?Sized > CoerceUnsized < Arc < U > > for Arc < T > { }
208
208
209
- #[ unstable( feature = "dispatch_from_dyn" , issue = "0 " ) ]
209
+ #[ unstable( feature = "dispatch_from_dyn" , issue = "none " ) ]
210
210
impl < T : ?Sized + Unsize < U > , U : ?Sized > DispatchFromDyn < Arc < U > > for Arc < T > { }
211
211
212
212
impl < T : ?Sized > Arc < T > {
@@ -263,7 +263,7 @@ unsafe impl<T: ?Sized + Sync + Send> Sync for Weak<T> {}
263
263
264
264
#[ unstable( feature = "coerce_unsized" , issue = "27732" ) ]
265
265
impl < T : ?Sized + Unsize < U > , U : ?Sized > CoerceUnsized < Weak < U > > for Weak < T > { }
266
- #[ unstable( feature = "dispatch_from_dyn" , issue = "0 " ) ]
266
+ #[ unstable( feature = "dispatch_from_dyn" , issue = "none " ) ]
267
267
impl < T : ?Sized + Unsize < U > , U : ?Sized > DispatchFromDyn < Weak < U > > for Weak < T > { }
268
268
269
269
#[ stable( feature = "arc_weak" , since = "1.4.0" ) ]
@@ -993,7 +993,7 @@ impl<T: ?Sized> Deref for Arc<T> {
993
993
}
994
994
}
995
995
996
- #[ unstable( feature = "receiver_trait" , issue = "0 " ) ]
996
+ #[ unstable( feature = "receiver_trait" , issue = "none " ) ]
997
997
impl < T : ?Sized > Receiver for Arc < T > { }
998
998
999
999
impl < T : Clone > Arc < T > {
@@ -2032,7 +2032,7 @@ impl<T> From<Vec<T>> for Arc<[T]> {
2032
2032
}
2033
2033
}
2034
2034
2035
- #[ unstable( feature = "boxed_slice_try_from" , issue = "0 " ) ]
2035
+ #[ unstable( feature = "boxed_slice_try_from" , issue = "none " ) ]
2036
2036
impl < T , const N : usize > TryFrom < Arc < [ T ] > > for Arc < [ T ; N ] >
2037
2037
where
2038
2038
[ T ; N ] : LengthAtMost32 ,
@@ -2161,6 +2161,8 @@ impl<T: ?Sized> Unpin for Arc<T> { }
2161
2161
unsafe fn data_offset < T : ?Sized > ( ptr : * const T ) -> isize {
2162
2162
// Align the unsized value to the end of the `ArcInner`.
2163
2163
// Because it is `?Sized`, it will always be the last field in memory.
2164
+ // Note: This is a detail of the current implementation of the compiler,
2165
+ // and is not a guaranteed language detail. Do not rely on it outside of std.
2164
2166
data_offset_align ( align_of_val ( & * ptr) )
2165
2167
}
2166
2168
0 commit comments