about summary refs log tree commit diff
path: root/compiler/rustc_interface/src
diff options
context:
space:
mode:
authorCamille GILLOT <gillot.camille@gmail.com>2020-11-11 21:57:54 +0100
committerCamille GILLOT <gillot.camille@gmail.com>2020-11-26 21:29:27 +0100
commit419a9186a4c8aeb2157298ea084a54c87ee2a653 (patch)
treecbf5966066cc08039bdfd485ec43b1a3cb7d542b /compiler/rustc_interface/src
parent65ecc481fac7ceced57d973a580d0a7ccbdcb192 (diff)
downloadrust-419a9186a4c8aeb2157298ea084a54c87ee2a653.tar.gz
rust-419a9186a4c8aeb2157298ea084a54c87ee2a653.zip
Store ForeignItem in a side table.
Diffstat (limited to 'compiler/rustc_interface/src')
-rw-r--r--compiler/rustc_interface/src/proc_macro_decls.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_interface/src/proc_macro_decls.rs b/compiler/rustc_interface/src/proc_macro_decls.rs
index d56115fd6ac..de08a4c8242 100644
--- a/compiler/rustc_interface/src/proc_macro_decls.rs
+++ b/compiler/rustc_interface/src/proc_macro_decls.rs
@@ -33,6 +33,8 @@ impl<'v> ItemLikeVisitor<'v> for Finder<'_> {
     fn visit_trait_item(&mut self, _trait_item: &hir::TraitItem<'_>) {}
 
     fn visit_impl_item(&mut self, _impl_item: &hir::ImplItem<'_>) {}
+
+    fn visit_foreign_item(&mut self, _foreign_item: &hir::ForeignItem<'_>) {}
 }
 
 pub(crate) fn provide(providers: &mut Providers) {