File tree 2 files changed +1
-21
lines changed
2 files changed +1
-21
lines changed Original file line number Diff line number Diff line change @@ -662,22 +662,12 @@ impl<T: ?Sized> *const T {
662
662
/// }
663
663
/// # } }
664
664
/// ```
665
- #[ cfg( not( stage0) ) ]
666
665
#[ unstable( feature = "align_offset" , issue = "44488" ) ]
667
666
pub fn align_offset ( self , align : usize ) -> usize {
668
667
unsafe {
669
668
intrinsics:: align_offset ( self as * const _ , align)
670
669
}
671
670
}
672
-
673
- #[ cfg( stage0) ]
674
- #[ stable( feature = "rust1" , since = "1.0.0" ) ]
675
- /// remove me after the next release
676
- pub fn align_offset ( self , align : usize ) -> usize {
677
- unsafe {
678
- intrinsics:: align_offset ( self as * const _ , align)
679
- }
680
- }
681
671
}
682
672
683
673
#[ lang = "mut_ptr" ]
@@ -901,22 +891,12 @@ impl<T: ?Sized> *mut T {
901
891
/// }
902
892
/// # } }
903
893
/// ```
904
- #[ cfg( not( stage0) ) ]
905
894
#[ unstable( feature = "align_offset" , issue = "44488" ) ]
906
895
pub fn align_offset ( self , align : usize ) -> usize {
907
896
unsafe {
908
897
intrinsics:: align_offset ( self as * const _ , align)
909
898
}
910
899
}
911
-
912
- #[ cfg( stage0) ]
913
- #[ stable( feature = "rust1" , since = "1.0.0" ) ]
914
- /// remove me after the next release
915
- pub fn align_offset ( self , align : usize ) -> usize {
916
- unsafe {
917
- intrinsics:: align_offset ( self as * const _ , align)
918
- }
919
- }
920
900
}
921
901
922
902
// Equality for pointers
Original file line number Diff line number Diff line change 242
242
#![ feature( allocator_internals) ]
243
243
#![ feature( allow_internal_unsafe) ]
244
244
#![ feature( allow_internal_unstable) ]
245
- #![ cfg_attr ( not ( stage0 ) , feature( align_offset) ) ]
245
+ #![ feature( align_offset) ]
246
246
#![ feature( asm) ]
247
247
#![ feature( box_syntax) ]
248
248
#![ feature( cfg_target_has_atomic) ]
You can’t perform that action at this time.
0 commit comments