Skip to content

Commit a91ad60

Browse files
committed
Make clear that status quo ≠ guarantee
1 parent aa1db24 commit a91ad60

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/test/run-pass/union/union-nonzero.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@
66
// For example, if a union `U` can contain both a `&T` and a `*const T`, there's definitely no
77
// bit-value that an `Option<U>` could reuse as `None`; this test makes sure that isn't done.
88
//
9-
// Secondly, this tests the status quo to not apply such optimizations to types containing unions
10-
// even if they're theoretically possible. (discussion: https://github.com/rust-lang/rust/issues/36394)
9+
// Secondly, this tests the status quo (not a guarantee; subject to change!) to not apply such
10+
// optimizations to types containing unions even if they're theoretically possible. (discussion:
11+
// https://github.com/rust-lang/rust/issues/36394)
1112
//
1213
// Notably this nails down part of the behavior that `MaybeUninit` assumes: that a
1314
// `Option<MaybeUninit<&u8>>` does not take advantage of non-zero optimization, and thus is a safe

0 commit comments

Comments
 (0)