@@ -1387,8 +1387,6 @@ impl<T: ?Sized> *const T {
13871387 /// # Examples
13881388 ///
13891389 /// ```
1390- /// #![feature(pointer_is_aligned)]
1391- ///
13921390 /// // On some platforms, the alignment of i32 is less than 4.
13931391 /// #[repr(align(4))]
13941392 /// struct AlignedI32(i32);
@@ -1411,7 +1409,6 @@ impl<T: ?Sized> *const T {
14111409 /// underlying allocation.
14121410 ///
14131411 /// ```
1414- /// #![feature(pointer_is_aligned)]
14151412 /// #![feature(const_pointer_is_aligned)]
14161413 ///
14171414 /// // On some platforms, the alignment of primitives is less than their size.
@@ -1437,7 +1434,6 @@ impl<T: ?Sized> *const T {
14371434 /// pointer is aligned, even if the compiletime pointer wasn't aligned.
14381435 ///
14391436 /// ```
1440- /// #![feature(pointer_is_aligned)]
14411437 /// #![feature(const_pointer_is_aligned)]
14421438 ///
14431439 /// // On some platforms, the alignment of primitives is less than their size.
@@ -1463,7 +1459,6 @@ impl<T: ?Sized> *const T {
14631459 /// runtime and compiletime.
14641460 ///
14651461 /// ```
1466- /// #![feature(pointer_is_aligned)]
14671462 /// #![feature(const_pointer_is_aligned)]
14681463 ///
14691464 /// // On some platforms, the alignment of primitives is less than their size.
@@ -1487,7 +1482,7 @@ impl<T: ?Sized> *const T {
14871482 /// [tracking issue]: https://github.com/rust-lang/rust/issues/104203
14881483 #[ must_use]
14891484 #[ inline]
1490- #[ unstable ( feature = "pointer_is_aligned" , issue = "96284 " ) ]
1485+ #[ stable ( feature = "pointer_is_aligned" , since = "CURRENT_RUSTC_VERSION " ) ]
14911486 #[ rustc_const_unstable( feature = "const_pointer_is_aligned" , issue = "104203" ) ]
14921487 pub const fn is_aligned ( self ) -> bool
14931488 where
@@ -1508,7 +1503,7 @@ impl<T: ?Sized> *const T {
15081503 /// # Examples
15091504 ///
15101505 /// ```
1511- /// #![feature(pointer_is_aligned )]
1506+ /// #![feature(pointer_is_aligned_to )]
15121507 ///
15131508 /// // On some platforms, the alignment of i32 is less than 4.
15141509 /// #[repr(align(4))]
@@ -1537,7 +1532,7 @@ impl<T: ?Sized> *const T {
15371532 /// cannot be stricter aligned than the reference's underlying allocation.
15381533 ///
15391534 /// ```
1540- /// #![feature(pointer_is_aligned )]
1535+ /// #![feature(pointer_is_aligned_to )]
15411536 /// #![feature(const_pointer_is_aligned)]
15421537 ///
15431538 /// // On some platforms, the alignment of i32 is less than 4.
@@ -1562,7 +1557,7 @@ impl<T: ?Sized> *const T {
15621557 /// pointer is aligned, even if the compiletime pointer wasn't aligned.
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.
@@ -1586,7 +1581,7 @@ impl<T: ?Sized> *const T {
15861581 /// runtime and compiletime.
15871582 ///
15881583 /// ```
1589- /// #![feature(pointer_is_aligned )]
1584+ /// #![feature(pointer_is_aligned_to )]
15901585 /// #![feature(const_pointer_is_aligned)]
15911586 ///
15921587 /// const _: () = {
@@ -1602,7 +1597,7 @@ impl<T: ?Sized> *const T {
16021597 /// [tracking issue]: https://github.com/rust-lang/rust/issues/104203
16031598 #[ must_use]
16041599 #[ inline]
1605- #[ unstable( feature = "pointer_is_aligned " , issue = "96284" ) ]
1600+ #[ unstable( feature = "pointer_is_aligned_to " , issue = "96284" ) ]
16061601 #[ rustc_const_unstable( feature = "const_pointer_is_aligned" , issue = "104203" ) ]
16071602 pub const fn is_aligned_to ( self , align : usize ) -> bool {
16081603 if !align. is_power_of_two ( ) {
0 commit comments