about summary refs log tree commit diff
path: root/compiler/rustc_codegen_ssa/src
diff options
context:
space:
mode:
authorBoxy <supbscripter@gmail.com>2024-06-03 04:46:24 +0100
committerBoxy <supbscripter@gmail.com>2024-06-05 22:25:41 +0100
commit60a5bebbe591f228bf83f3c48f5f60fe87dedaad (patch)
treed3128a0145a3eccf78ca641585cc094d320bbadf /compiler/rustc_codegen_ssa/src
parent8d6705cdb8e6da72c61dfd0feb80ec4061d448bd (diff)
downloadrust-60a5bebbe591f228bf83f3c48f5f60fe87dedaad.tar.gz
rust-60a5bebbe591f228bf83f3c48f5f60fe87dedaad.zip
Add `Ty` to `mir::Const::Ty`
Diffstat (limited to 'compiler/rustc_codegen_ssa/src')
-rw-r--r--compiler/rustc_codegen_ssa/src/mir/constant.rs2
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 81eb44132dd..822f5c2c44a 100644
--- a/compiler/rustc_codegen_ssa/src/mir/constant.rs
+++ b/compiler/rustc_codegen_ssa/src/mir/constant.rs
@@ -40,7 +40,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
     ) -> Result<Option<ty::ValTree<'tcx>>, ErrorHandled> {
         let uv = match self.monomorphize(constant.const_) {
             mir::Const::Unevaluated(uv, _) => uv.shrink(),
-            mir::Const::Ty(c) => match c.kind() {
+            mir::Const::Ty(_, c) => match c.kind() {
                 // A constant that came from a const generic but was then used as an argument to old-style
                 // simd_shuffle (passing as argument instead of as a generic param).
                 rustc_type_ir::ConstKind::Value(_, valtree) => return Ok(Some(valtree)),