Skip to content

Commit bae7e39

Browse files
authored
Remove TODO (#314)
This TODO was anchored on #8, which was fixed in #283.
1 parent 29c6c22 commit bae7e39

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/lib.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -681,10 +681,8 @@ pub unsafe trait AsBytes {
681681
// - Since `slf` is derived from `self`, and `self` is an immutable
682682
// reference, the only other references to this memory region that
683683
// could exist are other immutable references, and those don't allow
684-
// mutation.
685-
//
686-
// TODO(#8): Update `AsRef` docs to require that `Self` doesn't allow
687-
// interior mutability so that this bullet point is actually true.
684+
// mutation. `AsBytes` prohibits types which contain `UnsafeCell`s,
685+
// which are the only types for which this rule wouldn't be sufficient.
688686
// - The total size of the resulting slice is no larger than
689687
// `isize::MAX` because no allocation produced by safe code can be
690688
// larger than `isize::MAX`.

0 commit comments

Comments
 (0)