We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9982d64 commit d2be1c8Copy full SHA for d2be1c8
library/core/src/option.rs
@@ -842,7 +842,7 @@ impl<T> Option<T> {
842
// just needs to be aligned, which it is because `&self` is aligned and
843
// the offset used is a multiple of alignment.
844
//
845
- // In the new version, the intrinsic always returns a pointer to an
+ // Here we assume that `offset_of!` always returns an offset to an
846
// in-bounds and correctly aligned position for a `T` (even if in the
847
// `None` case it's just padding).
848
unsafe {
0 commit comments