@@ -54,7 +54,7 @@ pub fn report_error<'tcx, 'mir>(
54
54
) -> Option < i64 > {
55
55
use InterpError :: * ;
56
56
57
- let ( title, helps) = match & e. kind {
57
+ let ( title, helps) = match & e. kind ( ) {
58
58
MachineStop ( info) => {
59
59
let info = info. downcast_ref :: < TerminationInfo > ( ) . expect ( "invalid MachineStop payload" ) ;
60
60
use TerminationInfo :: * ;
@@ -81,7 +81,7 @@ pub fn report_error<'tcx, 'mir>(
81
81
( title, helps)
82
82
}
83
83
_ => {
84
- let title = match e. kind {
84
+ let title = match e. kind ( ) {
85
85
Unsupported ( _) =>
86
86
"unsupported operation" ,
87
87
UndefinedBehavior ( _) =>
@@ -93,11 +93,11 @@ pub fn report_error<'tcx, 'mir>(
93
93
_ =>
94
94
bug ! ( "This error should be impossible in Miri: {}" , e) ,
95
95
} ;
96
- let helps = match e. kind {
96
+ let helps = match e. kind ( ) {
97
97
Unsupported ( UnsupportedOpInfo :: NoMirFor ( ..) ) =>
98
98
vec ! [ format!( "make sure to use a Miri sysroot, which you can prepare with `cargo miri setup`" ) ] ,
99
99
Unsupported ( UnsupportedOpInfo :: ReadBytesAsPointer | UnsupportedOpInfo :: ThreadLocalStatic ( _) | UnsupportedOpInfo :: ReadExternStatic ( _) ) =>
100
- panic ! ( "Error should never be raised by Miri: {:?}" , e. kind) ,
100
+ panic ! ( "Error should never be raised by Miri: {:?}" , e. kind( ) ) ,
101
101
Unsupported ( _) =>
102
102
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" ) ] ,
103
103
UndefinedBehavior ( UndefinedBehaviorInfo :: AlignmentCheckFailed { .. } )
@@ -133,7 +133,7 @@ pub fn report_error<'tcx, 'mir>(
133
133
}
134
134
135
135
// Extra output to help debug specific issues.
136
- match e. kind {
136
+ match e. kind ( ) {
137
137
UndefinedBehavior ( UndefinedBehaviorInfo :: InvalidUninitBytes ( Some ( access) ) ) => {
138
138
eprintln ! (
139
139
"Uninitialized read occurred at offsets 0x{:x}..0x{:x} into this allocation:" ,
0 commit comments