@@ -274,8 +274,6 @@ pub enum TokenKind {
274274 ModSep ,
275275 /// `->`
276276 RArrow ,
277- /// `<-`
278- LArrow ,
279277 /// `=>`
280278 FatArrow ,
281279 /// `#`
@@ -376,7 +374,6 @@ impl TokenKind {
376374 DotDotDot => ( Dot , DotDot ) ,
377375 ModSep => ( Colon , Colon ) ,
378376 RArrow => ( BinOp ( Minus ) , Gt ) ,
379- LArrow => ( Lt , BinOp ( Minus ) ) ,
380377 FatArrow => ( Eq , Gt ) ,
381378 _ => return None ,
382379 } )
@@ -435,7 +432,7 @@ impl Token {
435432 match self . kind {
436433 Eq | Lt | Le | EqEq | Ne | Ge | Gt | AndAnd | OrOr | Not | Tilde | BinOp ( _)
437434 | 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 ,
439436
440437 OpenDelim ( ..) | CloseDelim ( ..) | Literal ( ..) | DocComment ( ..) | Ident ( ..)
441438 | Lifetime ( ..) | Interpolated ( ..) | Eof => false ,
@@ -780,7 +777,6 @@ impl Token {
780777 Eq => Le ,
781778 Lt => BinOp ( Shl ) ,
782779 Le => BinOpEq ( Shl ) ,
783- BinOp ( Minus ) => LArrow ,
784780 _ => return None ,
785781 } ,
786782 Gt => match joint. kind {
@@ -820,9 +816,9 @@ impl Token {
820816 } ,
821817
822818 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 ,
826822 } ;
827823
828824 Some ( Token :: new ( kind, self . span . to ( joint. span ) ) )
0 commit comments