File tree Expand file tree Collapse file tree 3 files changed +10
-10
lines changed Expand file tree Collapse file tree 3 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -1444,11 +1444,11 @@ impl<T: ?Sized> *const T {
1444
1444
///
1445
1445
/// ```
1446
1446
/// #![feature(pointer_is_aligned_for)]
1447
- ///
1447
+ ///
1448
1448
/// // On some platforms, the alignment of i32 is less than 4.
1449
1449
/// #[repr(align(4))]
1450
1450
/// struct AlignedI32(i32);
1451
- ///
1451
+ ///
1452
1452
/// // On some platforms, the alignment of u32 is less than 4.
1453
1453
/// #[repr(align(4))]
1454
1454
/// struct AlignedU32(u32);
@@ -1462,9 +1462,9 @@ impl<T: ?Sized> *const T {
1462
1462
#[ must_use]
1463
1463
#[ inline]
1464
1464
#[ unstable( feature = "pointer_is_aligned_for" , issue = "140980" ) ]
1465
- pub fn is_aligned_for < U : Sized > ( self ) -> bool
1465
+ pub fn is_aligned_for < U > ( self ) -> bool
1466
1466
where
1467
- T : Sized ,
1467
+ U : Sized ,
1468
1468
{
1469
1469
self . is_aligned_to ( align_of :: < U > ( ) )
1470
1470
}
Original file line number Diff line number Diff line change @@ -1699,11 +1699,11 @@ impl<T: ?Sized> *mut T {
1699
1699
///
1700
1700
/// ```
1701
1701
/// #![feature(pointer_is_aligned_for)]
1702
- ///
1702
+ ///
1703
1703
/// // On some platforms, the alignment of i32 is less than 4.
1704
1704
/// #[repr(align(4))]
1705
1705
/// struct AlignedI32(i32);
1706
- ///
1706
+ ///
1707
1707
/// // On some platforms, the alignment of u32 is less than 4.
1708
1708
/// #[repr(align(4))]
1709
1709
/// struct AlignedU32(u32);
@@ -1717,9 +1717,9 @@ impl<T: ?Sized> *mut T {
1717
1717
#[ must_use]
1718
1718
#[ inline]
1719
1719
#[ unstable( feature = "pointer_is_aligned_for" , issue = "140980" ) ]
1720
- pub fn is_aligned_for < U : Sized > ( self ) -> bool
1720
+ pub fn is_aligned_for < U > ( self ) -> bool
1721
1721
where
1722
- T : Sized ,
1722
+ U : Sized ,
1723
1723
{
1724
1724
self . is_aligned_to ( align_of :: < U > ( ) )
1725
1725
}
Original file line number Diff line number Diff line change @@ -1309,9 +1309,9 @@ impl<T: ?Sized> NonNull<T> {
1309
1309
#[ must_use]
1310
1310
#[ inline]
1311
1311
#[ unstable( feature = "pointer_is_aligned_for" , issue = "140980" ) ]
1312
- pub fn is_aligned_for < U : Sized > ( self ) -> bool
1312
+ pub fn is_aligned_for < U > ( self ) -> bool
1313
1313
where
1314
- T : Sized ,
1314
+ U : Sized ,
1315
1315
{
1316
1316
self . as_ptr ( ) . is_aligned_for :: < U > ( )
1317
1317
}
You can’t perform that action at this time.
0 commit comments