From 3358fb11da258007d26cc27364455c610088d630 Mon Sep 17 00:00:00 2001 From: Jeffrey Seyfried Date: Tue, 2 Feb 2016 20:21:24 +0000 Subject: Fix the visibility of extern crate declarations and stop warning on pub extern crate --- src/libsyntax/parse/parser.rs | 7 ------- 1 file changed, 7 deletions(-) (limited to 'src/libsyntax/parse') 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, -- cgit 1.4.1-3-g733a5