better name for AdjustForForeignAbiError error variant in InterpError
This commit is contained in:
parent
a97f41fd69
commit
56b7d5fc49
2 changed files with 8 additions and 5 deletions
|
@ -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()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue