libsyntax: Remove the use foo = bar
syntax from the language in favor
of `use bar as foo`. Change all uses of `use foo = bar` to `use bar as foo`. Implements RFC #47. Closes #16461. [breaking-change]
This commit is contained in:
parent
7074592ee1
commit
67deb2e65e
62 changed files with 140 additions and 136 deletions
|
@ -5385,7 +5385,6 @@ impl<'a> Parser<'a> {
|
|||
match self.token {
|
||||
token::EQ => {
|
||||
// x = foo::bar
|
||||
// NOTE(stage0, #16461, pcwalton): Deprecate after snapshot.
|
||||
self.bump();
|
||||
let path_lo = self.span.lo;
|
||||
path = vec!(self.parse_ident());
|
||||
|
@ -5394,8 +5393,10 @@ impl<'a> Parser<'a> {
|
|||
let id = self.parse_ident();
|
||||
path.push(id);
|
||||
}
|
||||
let span = mk_sp(path_lo, self.span.hi);
|
||||
self.obsolete(span, ObsoleteImportRenaming);
|
||||
let path = ast::Path {
|
||||
span: mk_sp(path_lo, self.span.hi),
|
||||
span: span,
|
||||
global: false,
|
||||
segments: path.move_iter().map(|identifier| {
|
||||
ast::PathSegment {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue