@@ -274,8 +274,6 @@ pub enum TokenKind {
274
274
ModSep ,
275
275
/// `->`
276
276
RArrow ,
277
- /// `<-`
278
- LArrow ,
279
277
/// `=>`
280
278
FatArrow ,
281
279
/// `#`
@@ -376,7 +374,6 @@ impl TokenKind {
376
374
DotDotDot => ( Dot , DotDot ) ,
377
375
ModSep => ( Colon , Colon ) ,
378
376
RArrow => ( BinOp ( Minus ) , Gt ) ,
379
- LArrow => ( Lt , BinOp ( Minus ) ) ,
380
377
FatArrow => ( Eq , Gt ) ,
381
378
_ => return None ,
382
379
} )
@@ -435,7 +432,7 @@ impl Token {
435
432
match self . kind {
436
433
Eq | Lt | Le | EqEq | Ne | Ge | Gt | AndAnd | OrOr | Not | Tilde | BinOp ( _)
437
434
| BinOpEq ( _) | At | Dot | DotDot | DotDotDot | DotDotEq | Comma | Semi | Colon
438
- | ModSep | RArrow | LArrow | FatArrow | Pound | Dollar | Question | SingleQuote => true ,
435
+ | ModSep | RArrow | FatArrow | Pound | Dollar | Question | SingleQuote => true ,
439
436
440
437
OpenDelim ( ..) | CloseDelim ( ..) | Literal ( ..) | DocComment ( ..) | Ident ( ..)
441
438
| Lifetime ( ..) | Interpolated ( ..) | Eof => false ,
@@ -780,7 +777,6 @@ impl Token {
780
777
Eq => Le ,
781
778
Lt => BinOp ( Shl ) ,
782
779
Le => BinOpEq ( Shl ) ,
783
- BinOp ( Minus ) => LArrow ,
784
780
_ => return None ,
785
781
} ,
786
782
Gt => match joint. kind {
@@ -820,9 +816,9 @@ impl Token {
820
816
} ,
821
817
822
818
Le | EqEq | Ne | Ge | AndAnd | OrOr | Tilde | BinOpEq ( ..) | At | DotDotDot
823
- | DotDotEq | Comma | Semi | ModSep | RArrow | LArrow | FatArrow | Pound | Dollar
824
- | Question | OpenDelim ( ..) | CloseDelim ( ..) | Literal ( ..) | Ident ( ..)
825
- | Lifetime ( .. ) | Interpolated ( ..) | DocComment ( ..) | Eof => return None ,
819
+ | DotDotEq | Comma | Semi | ModSep | RArrow | FatArrow | Pound | Dollar | Question
820
+ | OpenDelim ( ..) | CloseDelim ( ..) | Literal ( ..) | Ident ( .. ) | Lifetime ( ..)
821
+ | Interpolated ( ..) | DocComment ( ..) | Eof => return None ,
826
822
} ;
827
823
828
824
Some ( Token :: new ( kind, self . span . to ( joint. span ) ) )
0 commit comments