diff options
| author | lcnr <rust@lcnr.de> | 2021-03-12 00:01:34 +0100 |
|---|---|---|
| committer | lcnr <rust@lcnr.de> | 2021-03-20 17:21:44 +0100 |
| commit | 43ebac119b853de626fcc9afb49c5b0544731141 (patch) | |
| tree | 6daf3bc9f9a34652a593d85af57253d5c2fe7d8a /compiler/rustc_codegen_ssa/src | |
| parent | 41b315a470d583f6446599984ff9ad3bd61012b2 (diff) | |
| download | rust-43ebac119b853de626fcc9afb49c5b0544731141.tar.gz rust-43ebac119b853de626fcc9afb49c5b0544731141.zip | |
extract `ConstKind::Unevaluated` into a struct
Diffstat (limited to 'compiler/rustc_codegen_ssa/src')
| -rw-r--r-- | compiler/rustc_codegen_ssa/src/mir/constant.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_ssa/src/mir/constant.rs b/compiler/rustc_codegen_ssa/src/mir/constant.rs index aa41acc3578..d1425523275 100644 --- a/compiler/rustc_codegen_ssa/src/mir/constant.rs +++ b/compiler/rustc_codegen_ssa/src/mir/constant.rs @@ -30,7 +30,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> { mir::ConstantKind::Val(val, _) => return Ok(val), }; match ct.val { - ty::ConstKind::Unevaluated(def, substs, promoted) => self + ty::ConstKind::Unevaluated(ty::Unevaluated { def, substs, promoted }) => self .cx .tcx() .const_eval_resolve(ty::ParamEnv::reveal_all(), def, substs, promoted, None) |
