@@ -1412,8 +1412,6 @@ impl<T: ?Sized> *const T {
1412
1412
/// # Examples
1413
1413
///
1414
1414
/// ```
1415
- /// #![feature(pointer_is_aligned)]
1416
- ///
1417
1415
/// // On some platforms, the alignment of i32 is less than 4.
1418
1416
/// #[repr(align(4))]
1419
1417
/// struct AlignedI32(i32);
@@ -1436,7 +1434,6 @@ impl<T: ?Sized> *const T {
1436
1434
/// underlying allocation.
1437
1435
///
1438
1436
/// ```
1439
- /// #![feature(pointer_is_aligned)]
1440
1437
/// #![feature(const_pointer_is_aligned)]
1441
1438
///
1442
1439
/// // On some platforms, the alignment of primitives is less than their size.
@@ -1462,7 +1459,6 @@ impl<T: ?Sized> *const T {
1462
1459
/// pointer is aligned, even if the compiletime pointer wasn't aligned.
1463
1460
///
1464
1461
/// ```
1465
- /// #![feature(pointer_is_aligned)]
1466
1462
/// #![feature(const_pointer_is_aligned)]
1467
1463
///
1468
1464
/// // On some platforms, the alignment of primitives is less than their size.
@@ -1488,7 +1484,6 @@ impl<T: ?Sized> *const T {
1488
1484
/// runtime and compiletime.
1489
1485
///
1490
1486
/// ```
1491
- /// #![feature(pointer_is_aligned)]
1492
1487
/// #![feature(const_pointer_is_aligned)]
1493
1488
///
1494
1489
/// // On some platforms, the alignment of primitives is less than their size.
@@ -1512,7 +1507,7 @@ impl<T: ?Sized> *const T {
1512
1507
/// [tracking issue]: https://github.com/rust-lang/rust/issues/104203
1513
1508
#[ must_use]
1514
1509
#[ inline]
1515
- #[ unstable ( feature = "pointer_is_aligned" , issue = "96284 " ) ]
1510
+ #[ stable ( feature = "pointer_is_aligned" , since = "CURRENT_RUSTC_VERSION " ) ]
1516
1511
#[ rustc_const_unstable( feature = "const_pointer_is_aligned" , issue = "104203" ) ]
1517
1512
pub const fn is_aligned ( self ) -> bool
1518
1513
where
@@ -1533,7 +1528,7 @@ impl<T: ?Sized> *const T {
1533
1528
/// # Examples
1534
1529
///
1535
1530
/// ```
1536
- /// #![feature(pointer_is_aligned )]
1531
+ /// #![feature(pointer_is_aligned_to )]
1537
1532
///
1538
1533
/// // On some platforms, the alignment of i32 is less than 4.
1539
1534
/// #[repr(align(4))]
@@ -1562,7 +1557,7 @@ impl<T: ?Sized> *const T {
1562
1557
/// cannot be stricter aligned than the reference's underlying allocation.
1563
1558
///
1564
1559
/// ```
1565
- /// #![feature(pointer_is_aligned )]
1560
+ /// #![feature(pointer_is_aligned_to )]
1566
1561
/// #![feature(const_pointer_is_aligned)]
1567
1562
///
1568
1563
/// // On some platforms, the alignment of i32 is less than 4.
@@ -1587,7 +1582,7 @@ impl<T: ?Sized> *const T {
1587
1582
/// pointer is aligned, even if the compiletime pointer wasn't aligned.
1588
1583
///
1589
1584
/// ```
1590
- /// #![feature(pointer_is_aligned )]
1585
+ /// #![feature(pointer_is_aligned_to )]
1591
1586
/// #![feature(const_pointer_is_aligned)]
1592
1587
///
1593
1588
/// // On some platforms, the alignment of i32 is less than 4.
@@ -1611,7 +1606,7 @@ impl<T: ?Sized> *const T {
1611
1606
/// runtime and compiletime.
1612
1607
///
1613
1608
/// ```
1614
- /// #![feature(pointer_is_aligned )]
1609
+ /// #![feature(pointer_is_aligned_to )]
1615
1610
/// #![feature(const_pointer_is_aligned)]
1616
1611
///
1617
1612
/// const _: () = {
@@ -1627,7 +1622,7 @@ impl<T: ?Sized> *const T {
1627
1622
/// [tracking issue]: https://github.com/rust-lang/rust/issues/104203
1628
1623
#[ must_use]
1629
1624
#[ inline]
1630
- #[ unstable( feature = "pointer_is_aligned " , issue = "96284" ) ]
1625
+ #[ unstable( feature = "pointer_is_aligned_to " , issue = "96284" ) ]
1631
1626
#[ rustc_const_unstable( feature = "const_pointer_is_aligned" , issue = "104203" ) ]
1632
1627
pub const fn is_aligned_to ( self , align : usize ) -> bool {
1633
1628
if !align. is_power_of_two ( ) {
0 commit comments