File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -176,6 +176,8 @@ Several `-Z` flags are relevant for Miri:
176
176
* ` -Zmiri-disable-stacked-borrows ` disables checking the experimental
177
177
[ Stacked Borrows] aliasing rules. This can make Miri run faster, but it also
178
178
means no aliasing violations will be detected.
179
+ * ` -Zmiri-disable-alignment-check ` disables checking pointer alignment on memory
180
+ accesses.
179
181
* ` -Zmiri-disable-isolation ` disables host isolation. As a consequence,
180
182
the program has access to host resources such as environment variables, file
181
183
systems, and randomness.
Original file line number Diff line number Diff line change @@ -97,6 +97,7 @@ pub fn report_error<'tcx, 'mir>(
97
97
vec ! [
98
98
format!( "this usually indicates that your program performed an invalid operation and caused Undefined Behavior" ) ,
99
99
format!( "but alignment errors can also be false positives, see https://github.com/rust-lang/miri/issues/1074" ) ,
100
+ format!( "you can disable the alignment check with `-Zmiri-disable-alignment-check`, but that could hide true bugs" )
100
101
] ,
101
102
UndefinedBehavior ( _) =>
102
103
vec ! [
You can’t perform that action at this time.
0 commit comments