Improve miri's error reporting in check_in_alloc

This commit is contained in:
Loo Maclin 2019-04-23 12:12:16 +03:00 committed by GitHub
parent fc7ffa670c
commit b1c829b637
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 {