Skip to content

Commit

Permalink
less confusing wording
Browse files Browse the repository at this point in the history
Co-authored-by: Ben Kimock <[email protected]>
  • Loading branch information
RalfJung and saethlin authored Jul 10, 2024
1 parent 26f2b66 commit 5f224f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/ui/layout/size-of-val-raw-too-big.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ extern "rust-intrinsic" {
}

// We guarantee that with length 0, `size_of_val_raw` (which calls the `size_of_val` intrinsic)
// 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.
// So let's construct a case where length 0 just barely overflows, and ensure that
// does abort execution.
// does abort compilation.
pub fn check(x: *const Example) {
unsafe { size_of_val(x); }
}

0 comments on commit 5f224f8

Please sign in to comment.