@@ -1412,8 +1412,6 @@ impl<T: ?Sized> *const T {
14121412 /// # Examples
14131413 ///
14141414 /// ```
1415- /// #![feature(pointer_is_aligned)]
1416- ///
14171415 /// // On some platforms, the alignment of i32 is less than 4.
14181416 /// #[repr(align(4))]
14191417 /// struct AlignedI32(i32);
@@ -1436,7 +1434,6 @@ impl<T: ?Sized> *const T {
14361434 /// underlying allocation.
14371435 ///
14381436 /// ```
1439- /// #![feature(pointer_is_aligned)]
14401437 /// #![feature(const_pointer_is_aligned)]
14411438 ///
14421439 /// // On some platforms, the alignment of primitives is less than their size.
@@ -1462,7 +1459,6 @@ impl<T: ?Sized> *const T {
14621459 /// pointer is aligned, even if the compiletime pointer wasn't aligned.
14631460 ///
14641461 /// ```
1465- /// #![feature(pointer_is_aligned)]
14661462 /// #![feature(const_pointer_is_aligned)]
14671463 ///
14681464 /// // On some platforms, the alignment of primitives is less than their size.
@@ -1488,7 +1484,6 @@ impl<T: ?Sized> *const T {
14881484 /// runtime and compiletime.
14891485 ///
14901486 /// ```
1491- /// #![feature(pointer_is_aligned)]
14921487 /// #![feature(const_pointer_is_aligned)]
14931488 ///
14941489 /// // On some platforms, the alignment of primitives is less than their size.
@@ -1512,7 +1507,7 @@ impl<T: ?Sized> *const T {
15121507 /// [tracking issue]: https://github.com/rust-lang/rust/issues/104203
15131508 #[ must_use]
15141509 #[ inline]
1515- #[ unstable ( feature = "pointer_is_aligned" , issue = "96284 " ) ]
1510+ #[ stable ( feature = "pointer_is_aligned" , since = "CURRENT_RUSTC_VERSION " ) ]
15161511 #[ rustc_const_unstable( feature = "const_pointer_is_aligned" , issue = "104203" ) ]
15171512 pub const fn is_aligned ( self ) -> bool
15181513 where
@@ -1533,7 +1528,7 @@ impl<T: ?Sized> *const T {
15331528 /// # Examples
15341529 ///
15351530 /// ```
1536- /// #![feature(pointer_is_aligned )]
1531+ /// #![feature(pointer_is_aligned_to )]
15371532 ///
15381533 /// // On some platforms, the alignment of i32 is less than 4.
15391534 /// #[repr(align(4))]
@@ -1562,7 +1557,7 @@ impl<T: ?Sized> *const T {
15621557 /// cannot be stricter aligned than the reference's underlying allocation.
15631558 ///
15641559 /// ```
1565- /// #![feature(pointer_is_aligned )]
1560+ /// #![feature(pointer_is_aligned_to )]
15661561 /// #![feature(const_pointer_is_aligned)]
15671562 ///
15681563 /// // On some platforms, the alignment of i32 is less than 4.
@@ -1587,7 +1582,7 @@ impl<T: ?Sized> *const T {
15871582 /// pointer is aligned, even if the compiletime pointer wasn't aligned.
15881583 ///
15891584 /// ```
1590- /// #![feature(pointer_is_aligned )]
1585+ /// #![feature(pointer_is_aligned_to )]
15911586 /// #![feature(const_pointer_is_aligned)]
15921587 ///
15931588 /// // On some platforms, the alignment of i32 is less than 4.
@@ -1611,7 +1606,7 @@ impl<T: ?Sized> *const T {
16111606 /// runtime and compiletime.
16121607 ///
16131608 /// ```
1614- /// #![feature(pointer_is_aligned )]
1609+ /// #![feature(pointer_is_aligned_to )]
16151610 /// #![feature(const_pointer_is_aligned)]
16161611 ///
16171612 /// const _: () = {
@@ -1627,7 +1622,7 @@ impl<T: ?Sized> *const T {
16271622 /// [tracking issue]: https://github.com/rust-lang/rust/issues/104203
16281623 #[ must_use]
16291624 #[ inline]
1630- #[ unstable( feature = "pointer_is_aligned " , issue = "96284" ) ]
1625+ #[ unstable( feature = "pointer_is_aligned_to " , issue = "96284" ) ]
16311626 #[ rustc_const_unstable( feature = "const_pointer_is_aligned" , issue = "104203" ) ]
16321627 pub const fn is_aligned_to ( self , align : usize ) -> bool {
16331628 if !align. is_power_of_two ( ) {
0 commit comments