diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2022-02-13 11:30:48 +0100 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2022-04-23 09:59:24 +0200 |
| commit | 4bbe078d9243ed1caa81925217dc198393403479 (patch) | |
| tree | bc75605bd25f7262dcbc6c6cc9c14378c2ce3368 /compiler/rustc_resolve/src | |
| parent | a6e3124d2c68908450dca5214cb2f513d02c222c (diff) | |
| download | rust-4bbe078d9243ed1caa81925217dc198393403479.tar.gz rust-4bbe078d9243ed1caa81925217dc198393403479.zip | |
Drop vis in Item.
Diffstat (limited to 'compiler/rustc_resolve/src')
| -rw-r--r-- | compiler/rustc_resolve/src/build_reduced_graph.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_resolve/src/build_reduced_graph.rs b/compiler/rustc_resolve/src/build_reduced_graph.rs index d97d9199b77..8dade5f87ee 100644 --- a/compiler/rustc_resolve/src/build_reduced_graph.rs +++ b/compiler/rustc_resolve/src/build_reduced_graph.rs @@ -564,6 +564,7 @@ impl<'a, 'b> BuildReducedGraphVisitor<'a, 'b> { additional_ids: (id1, id2), }; + self.r.visibilities.insert(self.r.local_def_id(id), vis); self.add_import( module_path, kind, @@ -580,6 +581,7 @@ impl<'a, 'b> BuildReducedGraphVisitor<'a, 'b> { is_prelude: self.r.session.contains_name(&item.attrs, sym::prelude_import), max_vis: Cell::new(ty::Visibility::Invisible), }; + self.r.visibilities.insert(self.r.local_def_id(id), vis); self.add_import(prefix, kind, use_tree.span, id, item, root_span, item.id, vis); } ast::UseTreeKind::Nested(ref items) => { |
