Purge !resolve_unexported
This commit is contained in:
parent
d27918ac7c
commit
6531d02b79
1 changed files with 0 additions and 7 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue