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
33
44struct SliceWithHead ( u8 , [ u8 ] ) ;
55
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
33
44#[ repr( align( 256 ) ) ]
55#[ 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
23#![ feature( rustc_attrs) ]
34#![ allow( unused_attributes) ]
45
You can’t perform that action at this time.
0 commit comments