We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 26f2b66 commit 5f224f8Copy full SHA for 5f224f8
tests/ui/layout/size-of-val-raw-too-big.rs
@@ -21,9 +21,9 @@ extern "rust-intrinsic" {
21
}
22
23
// 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.
+// is safe to call. The compiler aborts compilation if a length of 0 would overflow.
25
// So let's construct a case where length 0 just barely overflows, and ensure that
26
-// does abort execution.
+// does abort compilation.
27
pub fn check(x: *const Example) {
28
unsafe { size_of_val(x); }
29
0 commit comments