From b1c829b6379568b4355e9759981b6ad96d08c9c7 Mon Sep 17 00:00:00 2001 From: Loo Maclin Date: Tue, 23 Apr 2019 12:12:16 +0300 Subject: [PATCH] Improve miri's error reporting in check_in_alloc --- 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 bc2dbfcbf38..2910deadb9e 100644 --- a/src/librustc/mir/interpret/allocation.rs +++ b/src/librustc/mir/interpret/allocation.rs @@ -32,7 +32,7 @@ pub enum CheckInAllocMsg { } impl Display for CheckInAllocMsg { - /// When this printed as an error the context looks like this + /// When this is printed as an error the context looks like this /// "{test name} test failed: pointer must be in-bounds at offset..." fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { write!(f, "{} test", match *self {