File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -93,6 +93,11 @@ pub fn report_error<'tcx, 'mir>(
93
93
vec ! [ format!( "make sure to use a Miri sysroot, which you can prepare with `cargo miri setup`" ) ] ,
94
94
Unsupported ( _) =>
95
95
vec ! [ format!( "this is likely not a bug in the program; it indicates that the program performed an operation that the interpreter does not support" ) ] ,
96
+ UndefinedBehavior ( UndefinedBehaviorInfo :: AlignmentCheckFailed { .. } ) =>
97
+ vec ! [
98
+ format!( "this usually indicates that your program performed an invalid operation and caused Undefined Behavior" ) ,
99
+ format!( "but alignment errors can also be false positives, see https://github.com/rust-lang/miri/issues/1074" ) ,
100
+ ] ,
96
101
UndefinedBehavior ( _) =>
97
102
vec ! [
98
103
format!( "this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior" ) ,
You can’t perform that action at this time.
0 commit comments