@@ -1387,8 +1387,6 @@ impl<T: ?Sized> *const T {
1387
1387
/// # Examples
1388
1388
///
1389
1389
/// ```
1390
- /// #![feature(pointer_is_aligned)]
1391
- ///
1392
1390
/// // On some platforms, the alignment of i32 is less than 4.
1393
1391
/// #[repr(align(4))]
1394
1392
/// struct AlignedI32(i32);
@@ -1411,7 +1409,6 @@ impl<T: ?Sized> *const T {
1411
1409
/// underlying allocation.
1412
1410
///
1413
1411
/// ```
1414
- /// #![feature(pointer_is_aligned)]
1415
1412
/// #![feature(const_pointer_is_aligned)]
1416
1413
///
1417
1414
/// // On some platforms, the alignment of primitives is less than their size.
@@ -1437,7 +1434,6 @@ impl<T: ?Sized> *const T {
1437
1434
/// pointer is aligned, even if the compiletime pointer wasn't aligned.
1438
1435
///
1439
1436
/// ```
1440
- /// #![feature(pointer_is_aligned)]
1441
1437
/// #![feature(const_pointer_is_aligned)]
1442
1438
///
1443
1439
/// // On some platforms, the alignment of primitives is less than their size.
@@ -1463,7 +1459,6 @@ impl<T: ?Sized> *const T {
1463
1459
/// runtime and compiletime.
1464
1460
///
1465
1461
/// ```
1466
- /// #![feature(pointer_is_aligned)]
1467
1462
/// #![feature(const_pointer_is_aligned)]
1468
1463
///
1469
1464
/// // On some platforms, the alignment of primitives is less than their size.
@@ -1487,7 +1482,7 @@ impl<T: ?Sized> *const T {
1487
1482
/// [tracking issue]: https://github.com/rust-lang/rust/issues/104203
1488
1483
#[ must_use]
1489
1484
#[ inline]
1490
- #[ unstable ( feature = "pointer_is_aligned" , issue = "96284 " ) ]
1485
+ #[ stable ( feature = "pointer_is_aligned" , since = "CURRENT_RUSTC_VERSION " ) ]
1491
1486
#[ rustc_const_unstable( feature = "const_pointer_is_aligned" , issue = "104203" ) ]
1492
1487
pub const fn is_aligned ( self ) -> bool
1493
1488
where
@@ -1508,7 +1503,7 @@ impl<T: ?Sized> *const T {
1508
1503
/// # Examples
1509
1504
///
1510
1505
/// ```
1511
- /// #![feature(pointer_is_aligned )]
1506
+ /// #![feature(pointer_is_aligned_to )]
1512
1507
///
1513
1508
/// // On some platforms, the alignment of i32 is less than 4.
1514
1509
/// #[repr(align(4))]
@@ -1537,7 +1532,7 @@ impl<T: ?Sized> *const T {
1537
1532
/// cannot be stricter aligned than the reference's underlying allocation.
1538
1533
///
1539
1534
/// ```
1540
- /// #![feature(pointer_is_aligned )]
1535
+ /// #![feature(pointer_is_aligned_to )]
1541
1536
/// #![feature(const_pointer_is_aligned)]
1542
1537
///
1543
1538
/// // On some platforms, the alignment of i32 is less than 4.
@@ -1562,7 +1557,7 @@ impl<T: ?Sized> *const T {
1562
1557
/// pointer is aligned, even if the compiletime pointer wasn't aligned.
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.
@@ -1586,7 +1581,7 @@ impl<T: ?Sized> *const T {
1586
1581
/// runtime and compiletime.
1587
1582
///
1588
1583
/// ```
1589
- /// #![feature(pointer_is_aligned )]
1584
+ /// #![feature(pointer_is_aligned_to )]
1590
1585
/// #![feature(const_pointer_is_aligned)]
1591
1586
///
1592
1587
/// const _: () = {
@@ -1602,7 +1597,7 @@ impl<T: ?Sized> *const T {
1602
1597
/// [tracking issue]: https://github.com/rust-lang/rust/issues/104203
1603
1598
#[ must_use]
1604
1599
#[ inline]
1605
- #[ unstable( feature = "pointer_is_aligned " , issue = "96284" ) ]
1600
+ #[ unstable( feature = "pointer_is_aligned_to " , issue = "96284" ) ]
1606
1601
#[ rustc_const_unstable( feature = "const_pointer_is_aligned" , issue = "104203" ) ]
1607
1602
pub const fn is_aligned_to ( self , align : usize ) -> bool {
1608
1603
if !align. is_power_of_two ( ) {
0 commit comments