diff options
| author | bors <bors@rust-lang.org> | 2025-01-29 19:16:29 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2025-01-29 19:16:29 +0000 |
| commit | ae5de6c759cd337ecdb2de4e94f47eaafb5d4606 (patch) | |
| tree | c3ba73cdd365225357b6803009a52fa1ea341433 /compiler/rustc_hir/src/intravisit.rs | |
| parent | 0cc4f4f7b81f88df6bdd54b41d4a0b1703fd014d (diff) | |
| parent | 559648a0a4c942993c321d999f708e64f169b245 (diff) | |
| download | rust-ae5de6c759cd337ecdb2de4e94f47eaafb5d4606.tar.gz rust-ae5de6c759cd337ecdb2de4e94f47eaafb5d4606.zip | |
Auto merge of #134248 - oli-obk:patkind-path-removal, r=BoxyUwU
Merge `PatKind::Path` into `PatKind::Expr` Follow-up to #134228 We always had a duplication where `Path`s could be represented as `PatKind::Path` or `PatKind::Lit(ExprKind::Path)`. We had to handle both everywhere, and still do after #134228, so I'm removing it now.
Diffstat (limited to 'compiler/rustc_hir/src/intravisit.rs')
| -rw-r--r-- | compiler/rustc_hir/src/intravisit.rs | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/compiler/rustc_hir/src/intravisit.rs b/compiler/rustc_hir/src/intravisit.rs index b0d80d0f809..31764ab1209 100644 --- a/compiler/rustc_hir/src/intravisit.rs +++ b/compiler/rustc_hir/src/intravisit.rs @@ -709,9 +709,6 @@ pub fn walk_pat<'v, V: Visitor<'v>>(visitor: &mut V, pattern: &'v Pat<'v>) -> V: try_visit!(visitor.visit_qpath(qpath, pattern.hir_id, pattern.span)); walk_list!(visitor, visit_pat, children); } - PatKind::Path(ref qpath) => { - try_visit!(visitor.visit_qpath(qpath, pattern.hir_id, pattern.span)); - } PatKind::Struct(ref qpath, fields, _) => { try_visit!(visitor.visit_qpath(qpath, pattern.hir_id, pattern.span)); walk_list!(visitor, visit_pat_field, fields); |
