Skip to content

Commit 8f506c5

Browse files
authored
Update and rename ZST-nthback.rs to zst-nthback.rs
1 parent 2096afe commit 8f506c5

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/tools/miri/tests/fail/unaligned_pointers/ZST-nthback.rs renamed to src/tools/miri/tests/fail/unaligned_pointers/zst-nthback.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
//@ compile-flags: -Zmiri-symbolic-alignment-check
2-
//@ run-pass
3-
4-
use std::ptr;
1+
//@compile-flags: -Zmiri-symbolic-alignment-check
52

63
// This is a ZST (Zero-Sized Type) that requires high alignment (alignment 8).
74
// The original bug occurred because IntoIter::nth_back tried to calculate an
@@ -22,6 +19,4 @@ fn main() {
2219
let v2 = vec![Thing, Thing];
2320
let mut iter2 = v2.into_iter();
2421
let _ = iter2.nth_back(0);
25-
26-
// The main assertion is that the program runs to completion without Miri reporting UB.
2722
}

0 commit comments

Comments
 (0)