@@ -430,13 +430,13 @@ impl fmt::Debug for UnsupportedOpInfo<'tcx> {
430430 match self {
431431 PointerOutOfBounds { ptr, msg, allocation_size } => {
432432 write ! ( f, "{} failed: pointer must be in-bounds at offset {}, \
433- but is outside bounds of allocation {} which has size {}",
433+ but is outside bounds of allocation {} which has size {}",
434434 msg, ptr. offset. bytes( ) , ptr. alloc_id, allocation_size. bytes( ) )
435435 } ,
436436 ValidationFailure ( ref err) => {
437437 write ! ( f, "type validation failed: {}" , err)
438438 }
439- NoMirFor ( ref func) => write ! ( f, "no mir for `{}`" , func) ,
439+ NoMirFor ( ref func) => write ! ( f, "no MIR for `{}`" , func) ,
440440 FunctionAbiMismatch ( caller_abi, callee_abi) =>
441441 write ! ( f, "tried to call a function with ABI {:?} using caller ABI {:?}" ,
442442 callee_abi, caller_abi) ,
@@ -451,9 +451,9 @@ impl fmt::Debug for UnsupportedOpInfo<'tcx> {
451451 FunctionArgCountMismatch =>
452452 write ! ( f, "tried to call a function with incorrect number of arguments" ) ,
453453 ReallocatedWrongMemoryKind ( ref old, ref new) =>
454- write ! ( f, "tried to reallocate memory from {} to {} " , old, new) ,
454+ write ! ( f, "tried to reallocate memory from `{}` to `{}` " , old, new) ,
455455 DeallocatedWrongMemoryKind ( ref old, ref new) =>
456- write ! ( f, "tried to deallocate {} memory but gave {} as the kind" , old, new) ,
456+ write ! ( f, "tried to deallocate `{}` memory but gave `{}` as the kind" , old, new) ,
457457 InvalidChar ( c) =>
458458 write ! ( f, "tried to interpret an invalid 32-bit value as a char: {}" , c) ,
459459 AlignmentCheckFailed { required, has } =>
@@ -462,7 +462,7 @@ impl fmt::Debug for UnsupportedOpInfo<'tcx> {
462462 TypeNotPrimitive ( ty) =>
463463 write ! ( f, "expected primitive type, got {}" , ty) ,
464464 PathNotFound ( ref path) =>
465- write ! ( f, "Cannot find path {:?}" , path) ,
465+ write ! ( f, "cannot find path {:?}" , path) ,
466466 IncorrectAllocationInformation ( size, size2, align, align2) =>
467467 write ! ( f, "incorrect alloc info: expected size {} and align {}, \
468468 got size {} and align {}",
@@ -525,7 +525,7 @@ impl fmt::Debug for UnsupportedOpInfo<'tcx> {
525525 InvalidBoolOp ( _) =>
526526 write ! ( f, "invalid boolean operation" ) ,
527527 UnterminatedCString ( _) =>
528- write ! ( f, "attempted to get length of a null terminated string, but no null \
528+ write ! ( f, "attempted to get length of a null- terminated string, but no null \
529529 found before end of allocation") ,
530530 ReadUndefBytes ( _) =>
531531 write ! ( f, "attempted to read undefined bytes" ) ,
0 commit comments