about summary refs log tree commit diff
path: root/compiler/rustc_ty_utils/src
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2025-07-29 08:54:34 +0200
committerRalf Jung <post@ralfj.de>2025-08-14 09:44:22 +0200
commita171eaab4249f70d24904da7ed392476b516a0e6 (patch)
tree711de138a04a38b498c41b2d4ea777c38e892a1a /compiler/rustc_ty_utils/src
parentd61fdbf266cf25ddf8c4798fd86e21577c8664e8 (diff)
downloadrust-a171eaab4249f70d24904da7ed392476b516a0e6.tar.gz
rust-a171eaab4249f70d24904da7ed392476b516a0e6.zip
use ty::Value instead of manual pairs of types and valtrees
Diffstat (limited to 'compiler/rustc_ty_utils/src')
-rw-r--r--compiler/rustc_ty_utils/src/consts.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_ty_utils/src/consts.rs b/compiler/rustc_ty_utils/src/consts.rs
index 6d994a2b967..eb751da7c73 100644
--- a/compiler/rustc_ty_utils/src/consts.rs
+++ b/compiler/rustc_ty_utils/src/consts.rs
@@ -375,7 +375,7 @@ impl<'a, 'tcx> IsThirPolymorphic<'a, 'tcx> {
         }
 
         match pat.kind {
-            thir::PatKind::Constant { value, .. } => value.has_non_region_param(),
+            thir::PatKind::Constant { value } => value.has_non_region_param(),
             thir::PatKind::Range(ref range) => {
                 let &thir::PatRange { lo, hi, .. } = range.as_ref();
                 lo.has_non_region_param() || hi.has_non_region_param()