diff options
| author | Ralf Jung <post@ralfj.de> | 2025-07-29 08:54:34 +0200 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2025-08-14 09:44:22 +0200 |
| commit | a171eaab4249f70d24904da7ed392476b516a0e6 (patch) | |
| tree | 711de138a04a38b498c41b2d4ea777c38e892a1a /compiler/rustc_ty_utils/src/consts.rs | |
| parent | d61fdbf266cf25ddf8c4798fd86e21577c8664e8 (diff) | |
| download | rust-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/consts.rs')
| -rw-r--r-- | compiler/rustc_ty_utils/src/consts.rs | 2 |
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() |
