about summary refs log tree commit diff
path: root/src/libsyntax/parse
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2016-02-25 09:38:51 +0000
committerbors <bors@rust-lang.org>2016-02-25 09:38:51 +0000
commitc9852e2e550306a738653a5d4d16cab43454776f (patch)
tree544a36b22415f5c81da44d6fc5963dbed8e916af /src/libsyntax/parse
parentf6f050d09003a4c7895f44fed3a7c6cdce8f2949 (diff)
parente584a492f340a73b6d9e546b9708fcb48315bfc8 (diff)
downloadrust-c9852e2e550306a738653a5d4d16cab43454776f.tar.gz
rust-c9852e2e550306a738653a5d4d16cab43454776f.zip
Auto merge of #31882 - Manishearth:rollup, r=Manishearth
- Successful merges: #31362, #31793, #31800, #31809, #31818, #31827, #31831, #31835, #31837, #31846
- Failed merges:
Diffstat (limited to 'src/libsyntax/parse')
-rw-r--r--src/libsyntax/parse/parser.rs7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs
index d65a5e56b90..b5d29a0d6db 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,