diff options
| author | Ralf Jung <post@ralfj.de> | 2021-12-11 18:45:03 -0500 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2021-12-20 22:37:15 +0100 |
| commit | 56b7d5fc494639ad58111a73028dcee965df7246 (patch) | |
| tree | b78f409e06dec010a016415f12a55aa846a72926 /compiler/rustc_const_eval/src/interpret | |
| parent | a97f41fd693d93d3afc91e8955ec308f9f157f73 (diff) | |
| download | rust-56b7d5fc494639ad58111a73028dcee965df7246.tar.gz rust-56b7d5fc494639ad58111a73028dcee965df7246.zip | |
better name for AdjustForForeignAbiError error variant in InterpError
Diffstat (limited to 'compiler/rustc_const_eval/src/interpret')
| -rw-r--r-- | compiler/rustc_const_eval/src/interpret/eval_context.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler/rustc_const_eval/src/interpret/eval_context.rs b/compiler/rustc_const_eval/src/interpret/eval_context.rs index eb562dc1e56..246807a112a 100644 --- a/compiler/rustc_const_eval/src/interpret/eval_context.rs +++ b/compiler/rustc_const_eval/src/interpret/eval_context.rs @@ -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() + } } } } |
