We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8762fc3 commit 48b048dCopy full SHA for 48b048d
src/librustc/front/map/mod.rs
@@ -581,14 +581,6 @@ impl<'ast> Map<'ast> {
581
}
582
583
584
- pub fn get_foreign_vis(&self, id: NodeId) -> Visibility {
585
- let vis = self.expect_foreign_item(id).vis; // read recorded by `expect_foreign_item`
586
- match self.find(self.get_parent(id)) { // read recorded by `find`
587
- Some(NodeItem(i)) => vis.inherit_from(i.vis),
588
- _ => vis
589
- }
590
591
-
592
pub fn expect_item(&self, id: NodeId) -> &'ast Item {
593
match self.find(id) { // read recorded by `find`
594
Some(NodeItem(item)) => item,
0 commit comments