@@ -600,7 +600,7 @@ impl_known_layout!(const N: usize, T => [T; N]);
600
600
601
601
safety_comment ! {
602
602
/// SAFETY:
603
- // TODO(#61 ): Add reference to docs + quotes
603
+ // TODO(#429 ): Add reference to docs + quotes
604
604
/// `str` and `ManuallyDrop<[T]>` have the same representations as `[u8]`
605
605
/// and `[T]` repsectively. `str` has different bit validity than `[u8]`,
606
606
/// but that doesn't affect the soundness of this impl.
@@ -705,7 +705,7 @@ pub unsafe trait FromZeroes {
705
705
let slf: * mut Self = self ;
706
706
let len = mem:: size_of_val ( self ) ;
707
707
// SAFETY:
708
- // TODO(#61 ): Add reference to docs + quotes
708
+ // TODO(#429 ): Add reference to docs + quotes
709
709
// - `self` is guaranteed by the type system to be valid for writes of
710
710
// size `size_of_val(self)`.
711
711
// - `u8`'s alignment is 1, and thus `self` is guaranteed to be aligned
@@ -1093,7 +1093,7 @@ pub unsafe trait AsBytes {
1093
1093
let slf: * const Self = self ;
1094
1094
1095
1095
// SAFETY:
1096
- // TODO(#61 ): Add reference to docs + quotes
1096
+ // TODO(#429 ): Add reference to docs + quotes
1097
1097
// - `slf.cast::<u8>()` is valid for reads for `len *
1098
1098
// mem::size_of::<u8>()` many bytes because...
1099
1099
// - `slf` is the same pointer as `self`, and `self` is a reference
@@ -1234,7 +1234,7 @@ safety_comment! {
1234
1234
1235
1235
safety_comment ! {
1236
1236
/// SAFETY:
1237
- /// TODO(#61 ): Add quotes
1237
+ /// TODO(#429 ): Add quotes
1238
1238
/// - `FromZeroes`, `FromBytes`: all bit patterns are valid for integers [1]
1239
1239
/// - `AsBytes`: integers have no padding bytes [1]
1240
1240
/// - `Unaligned` (`u8` and `i8` only): The reference [2] specifies the size
@@ -1270,8 +1270,8 @@ safety_comment! {
1270
1270
/// - `AsBytes`: the `{f32,f64}::to_bits` methods' documentation [4,5]
1271
1271
/// states that they are currently equivalent to `transmute`. [3]
1272
1272
///
1273
- /// TODO(#61 ): Make these arguments more precisely in terms of the documentation
1274
- /// TODO(#61 ): Add quotes
1273
+ /// TODO(#429 ): Make these arguments more precisely in terms of the documentation
1274
+ /// TODO(#429 ): Add quotes
1275
1275
///
1276
1276
/// [1] https://doc.rust-lang.org/nightly/std/primitive.f32.html#method.from_bits
1277
1277
/// [2] https://doc.rust-lang.org/nightly/std/primitive.f64.html#method.from_bits
@@ -1313,7 +1313,7 @@ safety_comment! {
1313
1313
}
1314
1314
safety_comment ! {
1315
1315
/// SAFETY:
1316
- /// TODO(#61 ): Add quotes
1316
+ /// TODO(#429 ): Add quotes
1317
1317
/// - `FromZeroes`, `AsBytes`, `Unaligned`: Per the reference [1], `str` has
1318
1318
/// the same layout as `[u8]`, and `[u8]` is `FromZeroes`, `AsBytes`, and
1319
1319
/// `Unaligned`.
@@ -1329,7 +1329,7 @@ safety_comment! {
1329
1329
// `NonZeroXxx` is `AsBytes`, but not `FromZeroes` or `FromBytes`.
1330
1330
//
1331
1331
/// SAFETY:
1332
- /// TODO(#61 ): Add quotes
1332
+ /// TODO(#429 ): Add quotes
1333
1333
/// - `AsBytes`: `NonZeroXxx` has the same layout as its associated
1334
1334
/// primitive. Since it is the same size, this guarantees it has no
1335
1335
/// padding - integers have no padding, and there's no room for padding
@@ -1364,7 +1364,7 @@ safety_comment! {
1364
1364
}
1365
1365
safety_comment ! {
1366
1366
/// SAFETY:
1367
- /// TODO(#61 ): Add quotes
1367
+ /// TODO(#429 ): Add quotes
1368
1368
/// - `FromZeroes`, `FromBytes`, `AsBytes`: The Rust compiler reuses `0`
1369
1369
/// value to represent `None`, so `size_of::<Option<NonZeroXxx>>() ==
1370
1370
/// size_of::<xxx>()`; see `NonZeroXxx` documentation.
@@ -1418,7 +1418,7 @@ safety_comment! {
1418
1418
}
1419
1419
safety_comment ! {
1420
1420
/// SAFETY:
1421
- /// TODO(#61 ): Add quotes
1421
+ /// TODO(#429 ): Add quotes
1422
1422
/// `Wrapping<T>` is guaranteed by its docs [1] to have the same layout as
1423
1423
/// `T`. Also, `Wrapping<T>` is `#[repr(transparent)]`, and has a single
1424
1424
/// field, which is `pub`. Per the reference [2], this means that the
@@ -1460,7 +1460,7 @@ safety_comment! {
1460
1460
}
1461
1461
safety_comment ! {
1462
1462
/// SAFETY:
1463
- // TODO(#61 ): Add reference to docs + quotes
1463
+ // TODO(#429 ): Add reference to docs + quotes
1464
1464
/// `ManuallyDrop` has the same layout as `T`, and accessing the inner value
1465
1465
/// is safe (meaning that it's unsound to leave the inner value
1466
1466
/// uninitialized while exposing the `ManuallyDrop` to safe code).
0 commit comments