From 9e643e6792474cb0ae49873feb3ca65243469506 Mon Sep 17 00:00:00 2001 From: Rust Date: Sun, 26 May 2019 14:44:58 +0300 Subject: [PATCH] Improve miri's error reporting in check_in_alloc Co-Authored-By: Ralf Jung --- src/librustc/mir/interpret/allocation.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librustc/mir/interpret/allocation.rs b/src/librustc/mir/interpret/allocation.rs index 718d9046f924..6b48db2cf85f 100644 --- a/src/librustc/mir/interpret/allocation.rs +++ b/src/librustc/mir/interpret/allocation.rs @@ -38,7 +38,7 @@ impl Display for CheckInAllocMsg { write!(f, "{}", match *self { CheckInAllocMsg::MemoryAccessTest => "Memory access", CheckInAllocMsg::NullPointerTest => "Null pointer test", - CheckInAllocMsg::PointerArithmeticTest => "Pointer arithmetic test", + CheckInAllocMsg::PointerArithmeticTest => "Pointer arithmetic", CheckInAllocMsg::InboundsTest => "Inbounds test", }) }