Improve miri's error reporting in check_in_alloc

This commit is contained in:
LooMaclin 2019-04-09 01:11:02 +03:00
parent 11464e714a
commit 32ba4bda7a

View file

@ -448,7 +448,7 @@ impl<'a, 'mir, 'tcx, M: Machine<'a, 'mir, 'tcx>> Memory<'a, 'mir, 'tcx, M> {
"allocation missing in dead_alloc_map"
))
},
_ => err!(DanglingPointerDeref),
InboundsCheck::Live => err!(DanglingPointerDeref),
},
}
}