Skip to content

Commit

Permalink
Remove TODO (#314)
Browse files Browse the repository at this point in the history
This TODO was anchored on #8, which was fixed in #283.
  • Loading branch information
joshlf authored Sep 3, 2023
1 parent 29c6c22 commit bae7e39
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -681,10 +681,8 @@ pub unsafe trait AsBytes {
// - Since `slf` is derived from `self`, and `self` is an immutable
// reference, the only other references to this memory region that
// could exist are other immutable references, and those don't allow
// mutation.
//
// TODO(#8): Update `AsRef` docs to require that `Self` doesn't allow
// interior mutability so that this bullet point is actually true.
// mutation. `AsBytes` prohibits types which contain `UnsafeCell`s,
// which are the only types for which this rule wouldn't be sufficient.
// - The total size of the resulting slice is no larger than
// `isize::MAX` because no allocation produced by safe code can be
// larger than `isize::MAX`.
Expand Down

0 comments on commit bae7e39

Please sign in to comment.