Skip to content

Commit 5f224f8

Browse files
RalfJungsaethlin
andauthoredJul 10, 2024
less confusing wording
Co-authored-by: Ben Kimock <kimockb@gmail.com>
1 parent 26f2b66 commit 5f224f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎tests/ui/layout/size-of-val-raw-too-big.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ extern "rust-intrinsic" {
2121
}
2222

2323
// We guarantee that with length 0, `size_of_val_raw` (which calls the `size_of_val` intrinsic)
24-
// is safe to call. The compiler aborts execution if a length of 0 would overflow.
24+
// is safe to call. The compiler aborts compilation if a length of 0 would overflow.
2525
// So let's construct a case where length 0 just barely overflows, and ensure that
26-
// does abort execution.
26+
// does abort compilation.
2727
pub fn check(x: *const Example) {
2828
unsafe { size_of_val(x); }
2929
}

0 commit comments

Comments
 (0)