diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2014-02-14 10:03:53 -0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-02-14 22:55:20 -0800 |
| commit | 359ac360a453b31494d18bf838f6620032a663e5 (patch) | |
| tree | d4103a6de21ec37365bc1327f5f52ab21559f909 /src/libsyntax/parse | |
| parent | 3496e93d13590140242f862c905dc2d591d2e2ea (diff) | |
| download | rust-359ac360a453b31494d18bf838f6620032a663e5.tar.gz rust-359ac360a453b31494d18bf838f6620032a663e5.zip | |
Register new snapshots
This enables the parser error for `extern mod` => `extern crate` transitions.
Diffstat (limited to 'src/libsyntax/parse')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 13 |
1 files changed, 6 insertions, 7 deletions
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); } |
