We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2096afe commit 8f506c5Copy full SHA for 8f506c5
src/tools/miri/tests/fail/unaligned_pointers/ZST-nthback.rs renamed to src/tools/miri/tests/fail/unaligned_pointers/zst-nthback.rs
@@ -1,7 +1,4 @@
1
-//@ compile-flags: -Zmiri-symbolic-alignment-check
2
-//@ run-pass
3
-
4
-use std::ptr;
+//@compile-flags: -Zmiri-symbolic-alignment-check
5
6
// This is a ZST (Zero-Sized Type) that requires high alignment (alignment 8).
7
// The original bug occurred because IntoIter::nth_back tried to calculate an
@@ -22,6 +19,4 @@ fn main() {
22
19
let v2 = vec![Thing, Thing];
23
20
let mut iter2 = v2.into_iter();
24
21
let _ = iter2.nth_back(0);
25
26
- // The main assertion is that the program runs to completion without Miri reporting UB.
27
}
0 commit comments