interpret errors: add map_err_kind, rename InterpError -> InterpErrorKind
This commit is contained in:
parent
b27f33a4d9
commit
eea74be5c1
17 changed files with 108 additions and 95 deletions
|
@ -232,7 +232,7 @@ impl<'mir, 'tcx> ConstPropagator<'mir, 'tcx> {
|
|||
F: FnOnce(&mut Self) -> InterpResult<'tcx, T>,
|
||||
{
|
||||
f(self)
|
||||
.map_err(|err| {
|
||||
.map_err_info(|err| {
|
||||
trace!("InterpCx operation failed: {:?}", err);
|
||||
// Some errors shouldn't come up because creating them causes
|
||||
// an allocation, which we should avoid. When that happens,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue