|
252 | 252 |
|
253 | 253 | use crate::cmp::Ordering; |
254 | 254 | use crate::fmt::{self, Debug, Display}; |
255 | | -use crate::marker::{PhantomData, PointerLike, Unsize}; |
| 255 | +use crate::marker::{PhantomData, Unsize}; |
256 | 256 | use crate::mem; |
257 | 257 | use crate::ops::{CoerceUnsized, Deref, DerefMut, DerefPure, DispatchFromDyn}; |
258 | 258 | use crate::panic::const_panic; |
@@ -669,9 +669,6 @@ impl<T: CoerceUnsized<U>, U> CoerceUnsized<Cell<U>> for Cell<T> {} |
669 | 669 | #[unstable(feature = "dispatch_from_dyn", issue = "none")] |
670 | 670 | impl<T: DispatchFromDyn<U>, U> DispatchFromDyn<Cell<U>> for Cell<T> {} |
671 | 671 |
|
672 | | -#[unstable(feature = "pointer_like_trait", issue = "none")] |
673 | | -impl<T: PointerLike> PointerLike for Cell<T> {} |
674 | | - |
675 | 672 | impl<T> Cell<[T]> { |
676 | 673 | /// Returns a `&[Cell<T>]` from a `&Cell<[T]>` |
677 | 674 | /// |
@@ -2361,9 +2358,6 @@ impl<T: CoerceUnsized<U>, U> CoerceUnsized<UnsafeCell<U>> for UnsafeCell<T> {} |
2361 | 2358 | #[unstable(feature = "dispatch_from_dyn", issue = "none")] |
2362 | 2359 | impl<T: DispatchFromDyn<U>, U> DispatchFromDyn<UnsafeCell<U>> for UnsafeCell<T> {} |
2363 | 2360 |
|
2364 | | -#[unstable(feature = "pointer_like_trait", issue = "none")] |
2365 | | -impl<T: PointerLike> PointerLike for UnsafeCell<T> {} |
2366 | | - |
2367 | 2361 | /// [`UnsafeCell`], but [`Sync`]. |
2368 | 2362 | /// |
2369 | 2363 | /// This is just an `UnsafeCell`, except it implements `Sync` |
@@ -2470,9 +2464,6 @@ impl<T: CoerceUnsized<U>, U> CoerceUnsized<SyncUnsafeCell<U>> for SyncUnsafeCell |
2470 | 2464 | //#[unstable(feature = "sync_unsafe_cell", issue = "95439")] |
2471 | 2465 | impl<T: DispatchFromDyn<U>, U> DispatchFromDyn<SyncUnsafeCell<U>> for SyncUnsafeCell<T> {} |
2472 | 2466 |
|
2473 | | -#[unstable(feature = "pointer_like_trait", issue = "none")] |
2474 | | -impl<T: PointerLike> PointerLike for SyncUnsafeCell<T> {} |
2475 | | - |
2476 | 2467 | #[allow(unused)] |
2477 | 2468 | fn assert_coerce_unsized( |
2478 | 2469 | a: UnsafeCell<&i32>, |
|
0 commit comments