diff options
| author | Steven Fackler <sfackler@gmail.com> | 2014-07-20 22:11:43 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-07-21 09:54:55 -0700 |
| commit | 6531d02b79b8ecb39055f5464451ef144827870b (patch) | |
| tree | 012d35622843a023079a827ada9e3c8345495a0f | |
| parent | d27918ac7c56cd3ddb89a188c389df9ed7f9689b (diff) | |
| download | rust-6531d02b79b8ecb39055f5464451ef144827870b.tar.gz rust-6531d02b79b8ecb39055f5464451ef144827870b.zip | |
Purge !resolve_unexported
| -rw-r--r-- | src/librustc/middle/privacy.rs | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/librustc/middle/privacy.rs b/src/librustc/middle/privacy.rs index bad6a288294..910f4ad212a 100644 --- a/src/librustc/middle/privacy.rs +++ b/src/librustc/middle/privacy.rs @@ -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; |
