File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 1
- // should find the bug even without these
2
- // compile-flags: -Zmiri-disable-validation -Zmiri-disable-stacked-borrows
1
+ // should find the bug even without these, but gets masked by optimizations
2
+ // compile-flags: -Zmiri-disable-validation -Zmiri-disable-stacked-borrows -Zmir-opt-level=0
3
3
4
4
struct SliceWithHead ( u8 , [ u8 ] ) ;
5
5
Original file line number Diff line number Diff line change 1
- // should find the bug even without these
2
- // compile-flags: -Zmiri-disable-validation -Zmiri-disable-stacked-borrows
1
+ // should find the bug even without these, but gets masked by optimizations
2
+ // compile-flags: -Zmiri-disable-validation -Zmiri-disable-stacked-borrows -Zmir-opt-level=0
3
3
4
4
#[ repr( align( 256 ) ) ]
5
5
#[ derive( Debug ) ]
Original file line number Diff line number Diff line change 1
- // compile-flags: -Zmir-opt-level=1
1
+ // gets masked by optimizations
2
+ // compile-flags: -Zmir-opt-level=0
2
3
#![ feature( rustc_attrs) ]
3
4
#![ allow( unused_attributes) ]
4
5
You can’t perform that action at this time.
0 commit comments