@@ -54,7 +54,7 @@ pub fn report_error<'tcx, 'mir>(
5454) -> Option < i64 > {
5555 use InterpError :: * ;
5656
57- let ( title, helps) = match & e. kind {
57+ let ( title, helps) = match & e. kind ( ) {
5858 MachineStop ( info) => {
5959 let info = info. downcast_ref :: < TerminationInfo > ( ) . expect ( "invalid MachineStop payload" ) ;
6060 use TerminationInfo :: * ;
@@ -81,7 +81,7 @@ pub fn report_error<'tcx, 'mir>(
8181 ( title, helps)
8282 }
8383 _ => {
84- let title = match e. kind {
84+ let title = match e. kind ( ) {
8585 Unsupported ( _) =>
8686 "unsupported operation" ,
8787 UndefinedBehavior ( _) =>
@@ -93,11 +93,11 @@ pub fn report_error<'tcx, 'mir>(
9393 _ =>
9494 bug ! ( "This error should be impossible in Miri: {}" , e) ,
9595 } ;
96- let helps = match e. kind {
96+ let helps = match e. kind ( ) {
9797 Unsupported ( UnsupportedOpInfo :: NoMirFor ( ..) ) =>
9898 vec ! [ format!( "make sure to use a Miri sysroot, which you can prepare with `cargo miri setup`" ) ] ,
9999 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( ) ) ,
101101 Unsupported ( _) =>
102102 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" ) ] ,
103103 UndefinedBehavior ( UndefinedBehaviorInfo :: AlignmentCheckFailed { .. } )
@@ -133,7 +133,7 @@ pub fn report_error<'tcx, 'mir>(
133133 }
134134
135135 // Extra output to help debug specific issues.
136- match e. kind {
136+ match e. kind ( ) {
137137 UndefinedBehavior ( UndefinedBehaviorInfo :: InvalidUninitBytes ( Some ( access) ) ) => {
138138 eprintln ! (
139139 "Uninitialized read occurred at offsets 0x{:x}..0x{:x} into this allocation:" ,
0 commit comments