diff options
| author | Bastian Kauschke <bastian_kauschke@hotmail.de> | 2020-07-02 23:13:32 +0200 |
|---|---|---|
| committer | Bastian Kauschke <bastian_kauschke@hotmail.de> | 2020-07-15 12:58:32 +0200 |
| commit | 58031c7cb2352fb17f2c720a84f541c532ffdf09 (patch) | |
| tree | 7a90f44845fd76317160077e0d72d5efa871cb0d /src/librustc_codegen_ssa | |
| parent | 08865d94e5a3c2116eeb6ba3c5fd3c0b4e5a17d8 (diff) | |
ConstKind::Unevaluated
Diffstat (limited to 'src/librustc_codegen_ssa')
| -rw-r--r-- | src/librustc_codegen_ssa/mir/constant.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc_codegen_ssa/mir/constant.rs b/src/librustc_codegen_ssa/mir/constant.rs index 11ec62f96ed..007be7a62ae 100644 --- a/src/librustc_codegen_ssa/mir/constant.rs +++ b/src/librustc_codegen_ssa/mir/constant.rs @@ -25,10 +25,10 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> { constant: &mir::Constant<'tcx>, ) -> Result<ConstValue<'tcx>, ErrorHandled> { match self.monomorphize(&constant.literal).val { - ty::ConstKind::Unevaluated(def_id, substs, promoted) => self + ty::ConstKind::Unevaluated(def, substs, promoted) => self .cx .tcx() - .const_eval_resolve(ty::ParamEnv::reveal_all(), def_id, substs, promoted, None) + .const_eval_resolve(ty::ParamEnv::reveal_all(), def.did, substs, promoted, None) .map_err(|err| { if promoted.is_none() { self.cx |
