From 359ac360a453b31494d18bf838f6620032a663e5 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Fri, 14 Feb 2014 10:03:53 -0800 Subject: Register new snapshots This enables the parser error for `extern mod` => `extern crate` transitions. --- src/libsyntax/parse/parser.rs | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'src/libsyntax/parse') diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index a02971ae8ea..f602925140b 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -4566,13 +4566,12 @@ impl Parser { let next_is_mod = self.eat_keyword(keywords::Mod); if next_is_mod || self.eat_keyword(keywords::Crate) { - // NOTE(flaper87): Uncomment this when this changes gets into stage0 - // - // if next_is_mod { - // self.span_err(self.span, - // format!("`extern mod` is obsolete, use `extern crate` instead \ - // to refer to external crates.")) - // } + if next_is_mod { + self.span_err(self.span, + format!("`extern mod` is obsolete, use \ + `extern crate` instead \ + to refer to external crates.")) + } return self.parse_item_extern_crate(lo, visibility, attrs); } -- cgit 1.4.1-3-g733a5