Register new snapshots

This enables the parser error for `extern mod` => `extern crate` transitions.
This commit is contained in:
Alex Crichton
2014-02-14 10:03:53 -08:00
parent 3496e93d13
commit 359ac360a4
8 changed files with 18 additions and 39 deletions

View File

@@ -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);
}