@@ -676,7 +676,7 @@ mod _transitions {
676
676
#[ doc( hidden) ]
677
677
#[ must_use]
678
678
#[ inline]
679
- pub const fn forget_aligned ( self ) -> Ptr < ' a , T , I :: WithAlignment < Any > > {
679
+ pub const fn forget_aligned ( self ) -> Ptr < ' a , T , I :: WithAlignment < Unknown > > {
680
680
// SAFETY: `Any` is less restrictive than `Aligned`.
681
681
unsafe { self . assume_invariants ( ) }
682
682
}
@@ -714,7 +714,7 @@ mod _casts {
714
714
pub unsafe fn cast_unsized_unchecked < U : ' a + ?Sized , F : FnOnce ( * mut T ) -> * mut U > (
715
715
self ,
716
716
cast : F ,
717
- ) -> Ptr < ' a , U , ( I :: Aliasing , Any , Any ) > {
717
+ ) -> Ptr < ' a , U , ( I :: Aliasing , Unknown , Unknown ) > {
718
718
let ptr = cast ( self . as_inner ( ) . as_non_null ( ) . as_ptr ( ) ) ;
719
719
720
720
// SAFETY: Caller promises that `cast` returns a pointer whose
@@ -784,7 +784,10 @@ mod _casts {
784
784
/// - `u` has the same provenance as `p`
785
785
#[ doc( hidden) ]
786
786
#[ inline]
787
- pub unsafe fn cast_unsized < U , F , R , S > ( self , cast : F ) -> Ptr < ' a , U , ( I :: Aliasing , Any , Any ) >
787
+ pub unsafe fn cast_unsized < U , F , R , S > (
788
+ self ,
789
+ cast : F ,
790
+ ) -> Ptr < ' a , U , ( I :: Aliasing , Unknown , Unknown ) >
788
791
where
789
792
T : Read < I :: Aliasing , R > ,
790
793
U : ' a + ?Sized + Read < I :: Aliasing , S > ,
@@ -1070,7 +1073,7 @@ mod _project {
1070
1073
pub unsafe fn project < U : ' a + ?Sized > (
1071
1074
self ,
1072
1075
projector : impl FnOnce ( * mut T ) -> * mut U ,
1073
- ) -> Ptr < ' a , U , ( I :: Aliasing , Any , Initialized ) > {
1076
+ ) -> Ptr < ' a , U , ( I :: Aliasing , Unknown , Initialized ) > {
1074
1077
// TODO(#1122): If `cast_unsized` were able to reason that, when
1075
1078
// casting from an `Initialized` pointer, the result is another
1076
1079
// `Initialized` pointer, we could remove this method entirely.
0 commit comments