]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_hir/intravisit.rs
Rollup merge of #67791 - Zoxc:lift-interning, r=eddyb
[rust.git] / src / librustc_hir / intravisit.rs
index 4664340b15fb7d6222ebd74f7942f324adbe2671..3dbc5253a9abf5ce3fc6b68fb05ce37fce256d50 100644 (file)
@@ -766,8 +766,8 @@ pub fn walk_pat<'v, V: Visitor<'v>>(visitor: &mut V, pattern: &'v Pat<'v>) {
         }
         PatKind::Lit(ref expression) => visitor.visit_expr(expression),
         PatKind::Range(ref lower_bound, ref upper_bound, _) => {
-            visitor.visit_expr(lower_bound);
-            visitor.visit_expr(upper_bound)
+            walk_list!(visitor, visit_expr, lower_bound);
+            walk_list!(visitor, visit_expr, upper_bound);
         }
         PatKind::Wild => (),
         PatKind::Slice(prepatterns, ref slice_pattern, postpatterns) => {