Improve miri's error reporting in check_in_alloc
This commit is contained in:
parent
11464e714a
commit
32ba4bda7a
1 changed files with 1 additions and 1 deletions
|
|
@ -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),
|
||||
},
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue