@@ -272,26 +272,24 @@ pub fn report_error<'tcx, 'mir>(
272272 } else {
273273 let title = match e. kind ( ) {
274274 UndefinedBehavior ( UndefinedBehaviorInfo :: ValidationError ( validation_err) )
275- if matches ! ( validation_err. kind, ValidationErrorKind :: PointerAsInt { .. } | ValidationErrorKind :: PartialPointer ) =>
275+ if matches ! (
276+ validation_err. kind,
277+ ValidationErrorKind :: PointerAsInt { .. } | ValidationErrorKind :: PartialPointer
278+ ) =>
276279 {
277280 ecx. handle_ice ( ) ; // print interpreter backtrace
278281 bug ! ( "This validation error should be impossible in Miri: {}" , ecx. format_error( e) ) ;
279282 }
280- UndefinedBehavior ( _) =>
281- "Undefined Behavior" ,
282- ResourceExhaustion ( _) =>
283- "resource exhaustion" ,
283+ UndefinedBehavior ( _) => "Undefined Behavior" ,
284+ ResourceExhaustion ( _) => "resource exhaustion" ,
284285 Unsupported (
285286 // We list only the ones that can actually happen.
286- UnsupportedOpInfo :: Unsupported ( _) | UnsupportedOpInfo :: UnsizedLocal
287- ) =>
288- "unsupported operation" ,
287+ UnsupportedOpInfo :: Unsupported ( _) | UnsupportedOpInfo :: UnsizedLocal ,
288+ ) => "unsupported operation" ,
289289 InvalidProgram (
290290 // We list only the ones that can actually happen.
291- InvalidProgramInfo :: AlreadyReported ( _) |
292- InvalidProgramInfo :: Layout ( ..)
293- ) =>
294- "post-monomorphization error" ,
291+ InvalidProgramInfo :: AlreadyReported ( _) | InvalidProgramInfo :: Layout ( ..) ,
292+ ) => "post-monomorphization error" ,
295293 _ => {
296294 ecx. handle_ice ( ) ; // print interpreter backtrace
297295 bug ! ( "This error should be impossible in Miri: {}" , ecx. format_error( e) ) ;
@@ -346,7 +344,8 @@ pub fn report_error<'tcx, 'mir>(
346344 extra,
347345 "Uninitialized memory occurred at {alloc_id:?}{range:?}, in this allocation:" ,
348346 range = access. bad,
349- ) . unwrap ( ) ;
347+ )
348+ . unwrap ( ) ;
350349 writeln ! ( extra, "{:?}" , ecx. dump_alloc( * alloc_id) ) . unwrap ( ) ;
351350 }
352351 _ => { }
0 commit comments