diff options
| author | yui-knk <spiketeika@gmail.com> | 2018-12-02 22:15:50 +0900 |
|---|---|---|
| committer | yui-knk <spiketeika@gmail.com> | 2018-12-02 23:11:08 +0900 |
| commit | 96bf06baf308e5cd2ad43962895f626724395e7d (patch) | |
| tree | 8072f59545b68fa32d70a48b2472406b1f03f28b /src/libsyntax/parse | |
| parent | 0765eb95b5e9e15fc29aa7725a01621dfeca2649 (diff) | |
| download | rust-96bf06baf308e5cd2ad43962895f626724395e7d.tar.gz rust-96bf06baf308e5cd2ad43962895f626724395e7d.zip | |
Remove not used `DotEq` token
Currently libproc_macro does not use `DotEq` token. https://github.com/rust-lang/rust/pull/49545 changed libproc_macro to not generate `DotEq` token.
Diffstat (limited to 'src/libsyntax/parse')
| -rw-r--r-- | src/libsyntax/parse/token.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/libsyntax/parse/token.rs b/src/libsyntax/parse/token.rs index 46fc6454d1c..4a5f3e240da 100644 --- a/src/libsyntax/parse/token.rs +++ b/src/libsyntax/parse/token.rs @@ -163,7 +163,6 @@ pub enum Token { DotDot, DotDotDot, DotDotEq, - DotEq, // HACK(durka42) never produced by the parser, only used for libproc_macro Comma, Semi, Colon, @@ -454,7 +453,6 @@ impl Token { Dot => match joint { Dot => DotDot, DotDot => DotDotDot, - DotEq => DotDotEq, _ => return None, }, DotDot => match joint { @@ -477,7 +475,7 @@ impl Token { _ => return None, }, - Le | EqEq | Ne | Ge | AndAnd | OrOr | Tilde | BinOpEq(..) | At | DotDotDot | DotEq | + Le | EqEq | Ne | Ge | AndAnd | OrOr | Tilde | BinOpEq(..) | At | DotDotDot | DotDotEq | Comma | Semi | ModSep | RArrow | LArrow | FatArrow | Pound | Dollar | Question | OpenDelim(..) | CloseDelim(..) => return None, @@ -606,7 +604,6 @@ impl Token { (&DotDot, &DotDot) | (&DotDotDot, &DotDotDot) | (&DotDotEq, &DotDotEq) | - (&DotEq, &DotEq) | (&Comma, &Comma) | (&Semi, &Semi) | (&Colon, &Colon) | |
