From 6531d02b79b8ecb39055f5464451ef144827870b Mon Sep 17 00:00:00 2001 From: Steven Fackler Date: Sun, 20 Jul 2014 22:11:43 -0700 Subject: [PATCH] Purge !resolve_unexported --- src/librustc/middle/privacy.rs | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/librustc/middle/privacy.rs b/src/librustc/middle/privacy.rs index bad6a288294f..910f4ad212ae 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;