@@ -1401,8 +1401,6 @@ impl<T: ?Sized> *const T {
14011401 /// # Examples
14021402 ///
14031403 /// ```
1404- /// #![feature(pointer_is_aligned)]
1405- ///
14061404 /// // On some platforms, the alignment of i32 is less than 4.
14071405 /// #[repr(align(4))]
14081406 /// struct AlignedI32(i32);
@@ -1425,7 +1423,6 @@ impl<T: ?Sized> *const T {
14251423 /// underlying allocation.
14261424 ///
14271425 /// ```
1428- /// #![feature(pointer_is_aligned)]
14291426 /// #![feature(const_pointer_is_aligned)]
14301427 ///
14311428 /// // On some platforms, the alignment of primitives is less than their size.
@@ -1451,7 +1448,6 @@ impl<T: ?Sized> *const T {
14511448 /// pointer is aligned, even if the compiletime pointer wasn't aligned.
14521449 ///
14531450 /// ```
1454- /// #![feature(pointer_is_aligned)]
14551451 /// #![feature(const_pointer_is_aligned)]
14561452 ///
14571453 /// // On some platforms, the alignment of primitives is less than their size.
@@ -1477,7 +1473,6 @@ impl<T: ?Sized> *const T {
14771473 /// runtime and compiletime.
14781474 ///
14791475 /// ```
1480- /// #![feature(pointer_is_aligned)]
14811476 /// #![feature(const_pointer_is_aligned)]
14821477 ///
14831478 /// // On some platforms, the alignment of primitives is less than their size.
@@ -1501,7 +1496,7 @@ impl<T: ?Sized> *const T {
15011496 /// [tracking issue]: https://github.com/rust-lang/rust/issues/104203
15021497 #[ must_use]
15031498 #[ inline]
1504- #[ unstable ( feature = "pointer_is_aligned" , issue = "96284 " ) ]
1499+ #[ stable ( feature = "pointer_is_aligned" , since = "CURRENT_RUSTC_VERSION " ) ]
15051500 #[ rustc_const_unstable( feature = "const_pointer_is_aligned" , issue = "104203" ) ]
15061501 pub const fn is_aligned ( self ) -> bool
15071502 where
@@ -1522,7 +1517,7 @@ impl<T: ?Sized> *const T {
15221517 /// # Examples
15231518 ///
15241519 /// ```
1525- /// #![feature(pointer_is_aligned )]
1520+ /// #![feature(pointer_is_aligned_to )]
15261521 ///
15271522 /// // On some platforms, the alignment of i32 is less than 4.
15281523 /// #[repr(align(4))]
@@ -1551,7 +1546,7 @@ impl<T: ?Sized> *const T {
15511546 /// cannot be stricter aligned than the reference's underlying allocation.
15521547 ///
15531548 /// ```
1554- /// #![feature(pointer_is_aligned )]
1549+ /// #![feature(pointer_is_aligned_to )]
15551550 /// #![feature(const_pointer_is_aligned)]
15561551 ///
15571552 /// // On some platforms, the alignment of i32 is less than 4.
@@ -1576,7 +1571,7 @@ impl<T: ?Sized> *const T {
15761571 /// pointer is aligned, even if the compiletime pointer wasn't aligned.
15771572 ///
15781573 /// ```
1579- /// #![feature(pointer_is_aligned )]
1574+ /// #![feature(pointer_is_aligned_to )]
15801575 /// #![feature(const_pointer_is_aligned)]
15811576 ///
15821577 /// // On some platforms, the alignment of i32 is less than 4.
@@ -1600,7 +1595,7 @@ impl<T: ?Sized> *const T {
16001595 /// runtime and compiletime.
16011596 ///
16021597 /// ```
1603- /// #![feature(pointer_is_aligned )]
1598+ /// #![feature(pointer_is_aligned_to )]
16041599 /// #![feature(const_pointer_is_aligned)]
16051600 ///
16061601 /// const _: () = {
@@ -1616,7 +1611,7 @@ impl<T: ?Sized> *const T {
16161611 /// [tracking issue]: https://github.com/rust-lang/rust/issues/104203
16171612 #[ must_use]
16181613 #[ inline]
1619- #[ unstable( feature = "pointer_is_aligned " , issue = "96284" ) ]
1614+ #[ unstable( feature = "pointer_is_aligned_to " , issue = "96284" ) ]
16201615 #[ rustc_const_unstable( feature = "const_pointer_is_aligned" , issue = "104203" ) ]
16211616 pub const fn is_aligned_to ( self , align : usize ) -> bool {
16221617 if !align. is_power_of_two ( ) {
0 commit comments