@@ -272,26 +272,24 @@ pub fn report_error<'tcx, 'mir>(
272
272
} else {
273
273
let title = match e. kind ( ) {
274
274
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
+ ) =>
276
279
{
277
280
ecx. handle_ice ( ) ; // print interpreter backtrace
278
281
bug ! ( "This validation error should be impossible in Miri: {}" , ecx. format_error( e) ) ;
279
282
}
280
- UndefinedBehavior ( _) =>
281
- "Undefined Behavior" ,
282
- ResourceExhaustion ( _) =>
283
- "resource exhaustion" ,
283
+ UndefinedBehavior ( _) => "Undefined Behavior" ,
284
+ ResourceExhaustion ( _) => "resource exhaustion" ,
284
285
Unsupported (
285
286
// 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" ,
289
289
InvalidProgram (
290
290
// 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" ,
295
293
_ => {
296
294
ecx. handle_ice ( ) ; // print interpreter backtrace
297
295
bug ! ( "This error should be impossible in Miri: {}" , ecx. format_error( e) ) ;
@@ -346,7 +344,8 @@ pub fn report_error<'tcx, 'mir>(
346
344
extra,
347
345
"Uninitialized memory occurred at {alloc_id:?}{range:?}, in this allocation:" ,
348
346
range = access. bad,
349
- ) . unwrap ( ) ;
347
+ )
348
+ . unwrap ( ) ;
350
349
writeln ! ( extra, "{:?}" , ecx. dump_alloc( * alloc_id) ) . unwrap ( ) ;
351
350
}
352
351
_ => { }
0 commit comments