@@ -1540,7 +1540,6 @@ impl<T: ?Sized> *const T {
1540
1540
/// Accessing adjacent `u8` as `u16`
1541
1541
///
1542
1542
/// ```
1543
- /// # #![feature(align_offset)]
1544
1543
/// # fn foo(n: usize) {
1545
1544
/// # use std::mem::align_of;
1546
1545
/// # unsafe {
@@ -1556,7 +1555,7 @@ impl<T: ?Sized> *const T {
1556
1555
/// }
1557
1556
/// # } }
1558
1557
/// ```
1559
- #[ unstable ( feature = "align_offset" , issue = "44488 " ) ]
1558
+ #[ stable ( feature = "align_offset" , since = "1.36.0 " ) ]
1560
1559
pub fn align_offset ( self , align : usize ) -> usize where T : Sized {
1561
1560
if !align. is_power_of_two ( ) {
1562
1561
panic ! ( "align_offset: align is not a power-of-two" ) ;
@@ -2312,7 +2311,6 @@ impl<T: ?Sized> *mut T {
2312
2311
/// Accessing adjacent `u8` as `u16`
2313
2312
///
2314
2313
/// ```
2315
- /// # #![feature(align_offset)]
2316
2314
/// # fn foo(n: usize) {
2317
2315
/// # use std::mem::align_of;
2318
2316
/// # unsafe {
@@ -2328,7 +2326,7 @@ impl<T: ?Sized> *mut T {
2328
2326
/// }
2329
2327
/// # } }
2330
2328
/// ```
2331
- #[ unstable ( feature = "align_offset" , issue = "44488 " ) ]
2329
+ #[ stable ( feature = "align_offset" , since = "1.36.0 " ) ]
2332
2330
pub fn align_offset ( self , align : usize ) -> usize where T : Sized {
2333
2331
if !align. is_power_of_two ( ) {
2334
2332
panic ! ( "align_offset: align is not a power-of-two" ) ;
0 commit comments