File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -872,13 +872,14 @@ pub trait Destruct {}
872
872
pub trait Tuple { }
873
873
874
874
/// A marker for things
875
- #[ unstable( feature = "pointer_sized_trait" , issue = "none" ) ]
876
- #[ lang = "pointer_sized" ]
875
+ #[ unstable( feature = "pointer_like_trait" , issue = "none" ) ]
876
+ #[ cfg_attr( bootstrap, lang = "pointer_sized" ) ]
877
+ #[ cfg_attr( not( bootstrap) , lang = "pointer_like" ) ]
877
878
#[ rustc_on_unimplemented(
878
- message = "`{Self}` needs to be a pointer-sized type " ,
879
- label = "`{Self}` needs to be a pointer-sized type"
879
+ message = "`{Self}` needs to have the same alignment and size as a pointer" ,
880
+ label = "`{Self}` needs to be a pointer-like type"
880
881
) ]
881
- pub trait PointerSized { }
882
+ pub trait PointerLike { }
882
883
883
884
/// Implementations of `Copy` for primitive types.
884
885
///
You can’t perform that action at this time.
0 commit comments