diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2025-07-03 09:32:11 +0000 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2025-07-13 13:50:00 +0000 |
| commit | 5bd3841668f43626b89c9295de960cc7e2a3c2aa (patch) | |
| tree | 2bf18d93915fec9a004fe323e4fed58fe7bc1817 /compiler/rustc_ast_lowering/src/index.rs | |
| parent | 36bc0948e0a67f5aeb2a1d997acf4cd94d948fa9 (diff) | |
| download | rust-5bd3841668f43626b89c9295de960cc7e2a3c2aa.tar.gz rust-5bd3841668f43626b89c9295de960cc7e2a3c2aa.zip | |
Retire hir::ForeignItemRef.
Diffstat (limited to 'compiler/rustc_ast_lowering/src/index.rs')
| -rw-r--r-- | compiler/rustc_ast_lowering/src/index.rs | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/compiler/rustc_ast_lowering/src/index.rs b/compiler/rustc_ast_lowering/src/index.rs index a86fa49755b..2fc8f95689f 100644 --- a/compiler/rustc_ast_lowering/src/index.rs +++ b/compiler/rustc_ast_lowering/src/index.rs @@ -397,12 +397,8 @@ impl<'a, 'hir> Visitor<'hir> for NodeCollector<'a, 'hir> { self.visit_nested_impl_item(id); } - fn visit_foreign_item_ref(&mut self, fi: &'hir ForeignItemRef) { - // Do not visit the duplicate information in ForeignItemRef. We want to - // map the actual nodes, not the duplicate ones in the *Ref. - let ForeignItemRef { id, ident: _, span: _ } = *fi; - - self.visit_nested_foreign_item(id); + fn visit_foreign_item_ref(&mut self, id: &'hir ForeignItemId) { + self.visit_nested_foreign_item(*id); } fn visit_where_predicate(&mut self, predicate: &'hir WherePredicate<'hir>) { |
