File tree 5 files changed +4
-7
lines changed
5 files changed +4
-7
lines changed Original file line number Diff line number Diff line change 173
173
#![ feature( never_type) ]
174
174
#![ feature( rustc_allow_const_fn_unstable) ]
175
175
#![ feature( rustc_attrs) ]
176
- #![ feature( pointer_is_aligned) ]
177
176
#![ feature( slice_internals) ]
178
177
#![ feature( staged_api) ]
179
178
#![ feature( stmt_expr_attributes) ]
Original file line number Diff line number Diff line change 38
38
#![ feature( const_str_from_utf8) ]
39
39
#![ feature( nonnull_slice_from_raw_parts) ]
40
40
#![ feature( panic_update_hook) ]
41
- #![ feature( pointer_is_aligned) ]
42
41
#![ feature( slice_flatten) ]
43
42
#![ feature( thin_box) ]
44
43
#![ feature( bench_black_box) ]
Original file line number Diff line number Diff line change @@ -1335,7 +1335,7 @@ impl<T: ?Sized> *const T {
1335
1335
/// Returns whether the pointer is properly aligned for `T`.
1336
1336
#[ must_use]
1337
1337
#[ inline]
1338
- #[ unstable ( feature = "pointer_is_aligned" , issue = "96284 " ) ]
1338
+ #[ stable ( feature = "pointer_is_aligned" , since = "CURRENT_RUSTC_VERSION " ) ]
1339
1339
pub fn is_aligned ( self ) -> bool
1340
1340
where
1341
1341
T : Sized ,
@@ -1353,7 +1353,7 @@ impl<T: ?Sized> *const T {
1353
1353
/// The function panics if `align` is not a power-of-two (this includes 0).
1354
1354
#[ must_use]
1355
1355
#[ inline]
1356
- #[ unstable ( feature = "pointer_is_aligned" , issue = "96284 " ) ]
1356
+ #[ stable ( feature = "pointer_is_aligned" , since = "CURRENT_RUSTC_VERSION " ) ]
1357
1357
pub fn is_aligned_to ( self , align : usize ) -> bool {
1358
1358
if !align. is_power_of_two ( ) {
1359
1359
panic ! ( "is_aligned_to: align is not a power-of-two" ) ;
Original file line number Diff line number Diff line change @@ -1615,7 +1615,7 @@ impl<T: ?Sized> *mut T {
1615
1615
/// Returns whether the pointer is properly aligned for `T`.
1616
1616
#[ must_use]
1617
1617
#[ inline]
1618
- #[ unstable ( feature = "pointer_is_aligned" , issue = "96284 " ) ]
1618
+ #[ stable ( feature = "pointer_is_aligned" , since = "CURRENT_RUSTC_VERSION " ) ]
1619
1619
pub fn is_aligned ( self ) -> bool
1620
1620
where
1621
1621
T : Sized ,
@@ -1633,7 +1633,7 @@ impl<T: ?Sized> *mut T {
1633
1633
/// The function panics if `align` is not a power-of-two (this includes 0).
1634
1634
#[ must_use]
1635
1635
#[ inline]
1636
- #[ unstable ( feature = "pointer_is_aligned" , issue = "96284 " ) ]
1636
+ #[ stable ( feature = "pointer_is_aligned" , since = "CURRENT_RUSTC_VERSION " ) ]
1637
1637
pub fn is_aligned_to ( self , align : usize ) -> bool {
1638
1638
if !align. is_power_of_two ( ) {
1639
1639
panic ! ( "is_aligned_to: align is not a power-of-two" ) ;
Original file line number Diff line number Diff line change 301
301
#![ feature( panic_can_unwind) ]
302
302
#![ feature( panic_info_message) ]
303
303
#![ feature( panic_internals) ]
304
- #![ feature( pointer_is_aligned) ]
305
304
#![ feature( portable_simd) ]
306
305
#![ feature( prelude_2024) ]
307
306
#![ feature( provide_any) ]
You can’t perform that action at this time.
0 commit comments