mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
Purge !resolve_unexported
This commit is contained in:
parent
d27918ac7c
commit
6531d02b79
@ -27,7 +27,6 @@ use util::nodemap::{NodeMap, NodeSet};
|
||||
use syntax::ast;
|
||||
use syntax::ast_map;
|
||||
use syntax::ast_util::{is_local, local_def, PostExpansionMethod};
|
||||
use syntax::attr;
|
||||
use syntax::codemap::Span;
|
||||
use syntax::parse::token;
|
||||
use syntax::owned_slice::OwnedSlice;
|
||||
@ -786,12 +785,6 @@ impl<'a> PrivacyVisitor<'a> {
|
||||
|
||||
impl<'a> Visitor<()> for PrivacyVisitor<'a> {
|
||||
fn visit_item(&mut self, item: &ast::Item, _: ()) {
|
||||
// Do not check privacy inside items with the resolve_unexported
|
||||
// attribute. This is used for the test runner.
|
||||
if attr::contains_name(item.attrs.as_slice(), "!resolve_unexported") {
|
||||
return;
|
||||
}
|
||||
|
||||
let orig_curitem = replace(&mut self.curitem, item.id);
|
||||
visit::walk_item(self, item, ());
|
||||
self.curitem = orig_curitem;
|
||||
|
Loading…
Reference in New Issue
Block a user