about summary refs log tree commit diff
path: root/compiler/rustc_middle/src/thir
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2024-11-06 21:10:31 +0000
committerEsteban Küber <esteban@kuber.com.ar>2024-11-17 23:39:59 +0000
commitc25b44bee96e4489dab8f44409ba347bfeb328b9 (patch)
treedbba1316368f803b9edf0887e0842631bcab66d1 /compiler/rustc_middle/src/thir
parentff2f7a7a834843ea74b1e7d6511eb4ad06f43981 (diff)
downloadrust-c25b44bee96e4489dab8f44409ba347bfeb328b9.tar.gz
rust-c25b44bee96e4489dab8f44409ba347bfeb328b9.zip
Fold `PatKind::NamedConstant` into `PatKind::Constant`
Diffstat (limited to 'compiler/rustc_middle/src/thir')
-rw-r--r--compiler/rustc_middle/src/thir/visit.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_middle/src/thir/visit.rs b/compiler/rustc_middle/src/thir/visit.rs
index 759ed77dbcb..92c0add65ba 100644
--- a/compiler/rustc_middle/src/thir/visit.rs
+++ b/compiler/rustc_middle/src/thir/visit.rs
@@ -246,7 +246,7 @@ pub fn walk_pat<'thir, 'tcx: 'thir, V: Visitor<'thir, 'tcx>>(
                 visitor.visit_pat(&subpattern.pattern);
             }
         }
-        Constant { value: _ } | NamedConstant { value: _, span: _ } => {}
+        Constant { value: _, opt_def: _ } => {}
         InlineConstant { def: _, subpattern } => visitor.visit_pat(subpattern),
         Range(_) => {}
         Slice { prefix, slice, suffix } | Array { prefix, slice, suffix } => {