diff options
| author | Oli Scherer <github35764891676564198441@oli-obk.de> | 2021-03-15 11:23:44 +0000 |
|---|---|---|
| committer | Oli Scherer <github35764891676564198441@oli-obk.de> | 2021-03-15 12:06:52 +0000 |
| commit | c30c1be1e69a0cf37855b611fa0921e41e04016f (patch) | |
| tree | d3f35feb423a420dac4543dae9d4a97e7ad04901 /compiler/rustc_codegen_ssa/src | |
| parent | 11ddd2251061bd84408c6e098588c41f4f51370b (diff) | |
| download | rust-c30c1be1e69a0cf37855b611fa0921e41e04016f.tar.gz rust-c30c1be1e69a0cf37855b611fa0921e41e04016f.zip | |
s/ConstantSource/ConstantKind/
Diffstat (limited to 'compiler/rustc_codegen_ssa/src')
| -rw-r--r-- | compiler/rustc_codegen_ssa/src/mir/constant.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_codegen_ssa/src/mir/constant.rs b/compiler/rustc_codegen_ssa/src/mir/constant.rs index d73e2325a8b..aa41acc3578 100644 --- a/compiler/rustc_codegen_ssa/src/mir/constant.rs +++ b/compiler/rustc_codegen_ssa/src/mir/constant.rs @@ -26,8 +26,8 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> { ) -> Result<ConstValue<'tcx>, ErrorHandled> { let ct = self.monomorphize(constant.literal); let ct = match ct { - mir::ConstantSource::Ty(ct) => ct, - mir::ConstantSource::Val(val, _) => return Ok(val), + mir::ConstantKind::Ty(ct) => ct, + mir::ConstantKind::Val(val, _) => return Ok(val), }; match ct.val { ty::ConstKind::Unevaluated(def, substs, promoted) => self |
