@@ -57,7 +57,7 @@ const _: () = unsafe {
5757//
5858// The size of a value is always a multiple of its alignment.
5959//
60- // TODO (#278): Once we've updated the trait docs to refer to `u8`s rather than
60+ // FIXME (#278): Once we've updated the trait docs to refer to `u8`s rather than
6161// bits or bytes, update this comment, especially the reference to [1].
6262const _: ( ) = unsafe {
6363 unsafe_impl ! ( u8 : Immutable , TryFromBytes , FromZeros , FromBytes , IntoBytes , Unaligned ) ;
@@ -150,7 +150,7 @@ impl_size_eq!(char, Unalign<u32>);
150150// Note that we don't `assert_unaligned!(str)` because `assert_unaligned!` uses
151151// `align_of`, which only works for `Sized` types.
152152//
153- // TODO (#429):
153+ // FIXME (#429):
154154// - Add quotes from documentation.
155155// - Improve safety proof for `FromZeros` and `IntoBytes`; having the same
156156// layout as `[u8]` isn't sufficient.
@@ -231,7 +231,7 @@ macro_rules! unsafe_impl_try_from_bytes_for_nonzero {
231231// multiple states, so they cannot be 0 bytes, which means that they must be 1
232232// byte. The only valid alignment for a 1-byte type is 1.
233233//
234- // TODO (#429):
234+ // FIXME (#429):
235235// - Add quotes from documentation.
236236// - Add safety comment for `Immutable`. How can we prove that `NonZeroXxx`
237237// doesn't contain any `UnsafeCell`s? It's obviously true, but it's not clear
@@ -245,8 +245,8 @@ macro_rules! unsafe_impl_try_from_bytes_for_nonzero {
245245//
246246// [2] https://doc.rust-lang.org/1.81.0/std/num/type.NonZeroI8.html
247247//
248- // TODO (https://github.com/rust-lang/rust/pull/104082): Cite documentation
249- // that layout is the same as primitive layout.
248+ // FIXME (https://github.com/rust-lang/rust/pull/104082): Cite documentation that
249+ // layout is the same as primitive layout.
250250const _: ( ) = unsafe {
251251 unsafe_impl ! ( NonZeroU8 : Immutable , IntoBytes , Unaligned ) ;
252252 unsafe_impl ! ( NonZeroI8 : Immutable , IntoBytes , Unaligned ) ;
@@ -288,13 +288,13 @@ const _: () = unsafe {
288288// purpose of those types, it's virtually unthinkable that that would ever
289289// change. The only valid alignment for a 1-byte type is 1.
290290//
291- // TODO (#429): Add quotes from documentation.
291+ // FIXME (#429): Add quotes from documentation.
292292//
293293// [1] https://doc.rust-lang.org/stable/std/num/struct.NonZeroU8.html
294294// [2] https://doc.rust-lang.org/stable/std/num/struct.NonZeroI8.html
295295//
296- // TODO (https://github.com/rust-lang/rust/pull/104082): Cite documentation
297- // for layout guarantees.
296+ // FIXME (https://github.com/rust-lang/rust/pull/104082): Cite documentation for
297+ // layout guarantees.
298298const _: ( ) = unsafe {
299299 unsafe_impl ! ( Option <NonZeroU8 >: TryFromBytes , FromZeros , FromBytes , IntoBytes , Unaligned ) ;
300300 unsafe_impl ! ( Option <NonZeroI8 >: TryFromBytes , FromZeros , FromBytes , IntoBytes , Unaligned ) ;
@@ -342,7 +342,7 @@ const _: () = unsafe {
342342// | [`ptr::NonNull<U>`] | when `U: Sized` |
343343// | `fn`, `extern "C" fn` | always |
344344//
345- // TODO (#429), TODO (https://github.com/rust-lang/rust/pull/115333): Cite the
345+ // FIXME (#429), FIXME (https://github.com/rust-lang/rust/pull/115333): Cite the
346346// Stable docs once they're available.
347347const _: ( ) = unsafe {
348348 #[ cfg( feature = "alloc" ) ]
@@ -638,7 +638,7 @@ mod atomics {
638638
639639 impl_known_layout ! ( T => AtomicPtr <T >) ;
640640
641- // TODO (#170): Implement `FromBytes` and `IntoBytes` once we implement
641+ // FIXME (#170): Implement `FromBytes` and `IntoBytes` once we implement
642642 // those traits for `*mut T`.
643643 impl_for_transmute_from ! ( T => TryFromBytes for AtomicPtr <T > [ UnsafeCell <* mut T >] ) ;
644644 impl_for_transmute_from ! ( T => FromZeros for AtomicPtr <T > [ UnsafeCell <* mut T >] ) ;
@@ -914,7 +914,7 @@ const _: () = unsafe {
914914// `IntoBytes` for raw pointers eventually, but we are holding off until we can
915915// figure out how to address those footguns.
916916//
917- // [1] TODO (https://github.com/rust-lang/rust/pull/116988): Cite the
917+ // [1] FIXME (https://github.com/rust-lang/rust/pull/116988): Cite the
918918// documentation once this PR lands.
919919const _: ( ) = unsafe {
920920 unsafe_impl ! ( T : ?Sized => Immutable for * const T ) ;
@@ -1474,7 +1474,7 @@ mod tests {
14741474 }
14751475
14761476 <$ty as TryFromBytesTestable >:: with_passing_test_cases( |mut val| {
1477- // TODO (#494): These tests only get exercised for types
1477+ // FIXME (#494): These tests only get exercised for types
14781478 // which are `IntoBytes`. Once we implement #494, we should
14791479 // be able to support non-`IntoBytes` types by zeroing
14801480 // padding.
@@ -1492,7 +1492,7 @@ mod tests {
14921492
14931493 let c = Ptr :: from_ref( & * val) ;
14941494 let c = c. forget_aligned( ) ;
1495- // SAFETY: TODO (#899): This is unsound. `$ty` is not
1495+ // SAFETY: FIXME (#899): This is unsound. `$ty` is not
14961496 // necessarily `IntoBytes`, but that's the corner we've
14971497 // backed ourselves into by using `Ptr::from_ref`.
14981498 let c = unsafe { c. assume_initialized( ) } ;
@@ -1503,7 +1503,7 @@ mod tests {
15031503
15041504 let c = Ptr :: from_mut( & mut * val) ;
15051505 let c = c. forget_aligned( ) ;
1506- // SAFETY: TODO (#899): This is unsound. `$ty` is not
1506+ // SAFETY: FIXME (#899): This is unsound. `$ty` is not
15071507 // necessarily `IntoBytes`, but that's the corner we've
15081508 // backed ourselves into by using `Ptr::from_ref`.
15091509 let c = unsafe { c. assume_initialized( ) } ;
0 commit comments