better name for AdjustForForeignAbiError error variant in InterpError

This commit is contained in:
Ralf Jung 2021-12-11 18:45:03 -05:00
parent a97f41fd69
commit 56b7d5fc49
2 changed files with 8 additions and 5 deletions

View file

@ -347,7 +347,9 @@ impl<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> FnAbiOfHelpers<'tcx> for InterpCx
) -> InterpErrorInfo<'tcx> {
match err {
FnAbiError::Layout(err) => err_inval!(Layout(err)).into(),
FnAbiError::AdjustForForeignAbi(err) => err_inval!(FnAbi(err)).into(),
FnAbiError::AdjustForForeignAbi(err) => {
err_inval!(FnAbiAdjustForForeignAbi(err)).into()
}
}
}
}