about summary refs log tree commit diff
path: root/compiler/rustc_const_eval/src
diff options
context:
space:
mode:
authorBoxy <supbscripter@gmail.com>2024-06-03 02:34:35 +0100
committerBoxy <supbscripter@gmail.com>2024-06-05 22:25:41 +0100
commita9702a66684f0e1f412d92a83761be2e461b69fb (patch)
treea0996c6eb298ce6f655671c36517f7dd44e501c4 /compiler/rustc_const_eval/src
parent58feec9b85a18d26507dfe6d075fd128a1265888 (diff)
Add `Ty` to `ConstKind::Value`
Diffstat (limited to 'compiler/rustc_const_eval/src')
-rw-r--r--compiler/rustc_const_eval/src/check_consts/qualifs.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_const_eval/src/check_consts/qualifs.rs b/compiler/rustc_const_eval/src/check_consts/qualifs.rs
index 5949444e599..32500914f06 100644
--- a/compiler/rustc_const_eval/src/check_consts/qualifs.rs
+++ b/compiler/rustc_const_eval/src/check_consts/qualifs.rs
@@ -360,7 +360,7 @@ where
         Const::Ty(ct)
             if matches!(
                 ct.kind(),
-                ty::ConstKind::Param(_) | ty::ConstKind::Error(_) | ty::ConstKind::Value(_)
+                ty::ConstKind::Param(_) | ty::ConstKind::Error(_) | ty::ConstKind::Value(_, _)
             ) =>
         {
             None