Skip to content

Commit a87bc52

Browse files
authored
Remove TODO
This TODO was anchored on #8, which was fixed in #283.
1 parent 62f76d2 commit a87bc52

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
@@ -680,10 +680,8 @@ pub unsafe trait AsBytes {
680680
// - Since `slf` is derived from `self`, and `self` is an immutable
681681
// reference, the only other references to this memory region that
682682
// could exist are other immutable references, and those don't allow
683-
// mutation.
684-
//
685-
// TODO(#8): Update `AsRef` docs to require that `Self` doesn't allow
686-
// interior mutability so that this bullet point is actually true.
683+
// mutation. `AsBytes` prohibits types which contain `UnsafeCell`s,
684+
// which are the only types for which this rule wouldn't be sufficient.
687685
// - The total size of the resulting slice is no larger than
688686
// `isize::MAX` because no allocation produced by safe code can be
689687
// larger than `isize::MAX`.

0 commit comments

Comments
 (0)