Skip to content

Commit f50349b

Browse files
sfackleralexcrichton
authored andcommitted
---
yaml --- r: 132047 b: refs/heads/dist-snap c: 6531d02 h: refs/heads/master i: 132045: c269b81 132043: 104c8b3 132039: 1f1e812 132031: 85d35a8 v: v3
1 parent 84408df commit f50349b

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ refs/heads/try: 457a3c991d79b971be07fce75f9d0c12848fb37c
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
9-
refs/heads/dist-snap: d27918ac7c56cd3ddb89a188c389df9ed7f9689b
9+
refs/heads/dist-snap: 6531d02b79b8ecb39055f5464451ef144827870b
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1212
refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0

branches/dist-snap/src/librustc/middle/privacy.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ use util::nodemap::{NodeMap, NodeSet};
2727
use syntax::ast;
2828
use syntax::ast_map;
2929
use syntax::ast_util::{is_local, local_def, PostExpansionMethod};
30-
use syntax::attr;
3130
use syntax::codemap::Span;
3231
use syntax::parse::token;
3332
use syntax::owned_slice::OwnedSlice;
@@ -786,12 +785,6 @@ impl<'a> PrivacyVisitor<'a> {
786785

787786
impl<'a> Visitor<()> for PrivacyVisitor<'a> {
788787
fn visit_item(&mut self, item: &ast::Item, _: ()) {
789-
// Do not check privacy inside items with the resolve_unexported
790-
// attribute. This is used for the test runner.
791-
if attr::contains_name(item.attrs.as_slice(), "!resolve_unexported") {
792-
return;
793-
}
794-
795788
let orig_curitem = replace(&mut self.curitem, item.id);
796789
visit::walk_item(self, item, ());
797790
self.curitem = orig_curitem;

0 commit comments

Comments
 (0)