diff options
| author | Jeffrey Seyfried <jeffrey.seyfried@gmail.com> | 2016-02-02 20:21:24 +0000 |
|---|---|---|
| committer | Jeffrey Seyfried <jeffrey.seyfried@gmail.com> | 2016-02-24 01:34:14 +0000 |
| commit | 3358fb11da258007d26cc27364455c610088d630 (patch) | |
| tree | e9259eecae9f108c6abcdbc015ae82fcd936eaaf /src/libsyntax/parse/parser.rs | |
| parent | d3929b2c8a472244d448feb24f52bf91246d3e82 (diff) | |
| download | rust-3358fb11da258007d26cc27364455c610088d630.tar.gz rust-3358fb11da258007d26cc27364455c610088d630.zip | |
Fix the visibility of extern crate declarations and stop warning on pub extern crate
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index a5f998b318e..999ae036ebb 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -5487,13 +5487,6 @@ impl<'a> Parser<'a> { try!(self.expect(&token::Semi)); let last_span = self.last_span; - - if visibility == ast::Visibility::Public { - self.span_warn(mk_sp(lo, last_span.hi), - "`pub extern crate` does not work as expected and should not be used. \ - Likely to become an error. Prefer `extern crate` and `pub use`."); - } - Ok(self.mk_item(lo, last_span.hi, ident, |
