Fix the visibility of extern crate declarations and stop warning on pub extern crate

This commit is contained in:
Jeffrey Seyfried 2016-02-02 20:21:24 +00:00
parent d3929b2c8a
commit 3358fb11da
9 changed files with 80 additions and 61 deletions

View file

@ -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,