diff options
| author | Ilija Tovilo <ilija.tovilo@me.com> | 2019-08-11 23:37:05 +0200 |
|---|---|---|
| committer | Ilija Tovilo <ilija.tovilo@me.com> | 2019-08-12 10:46:34 +0200 |
| commit | 91af5c2daf950bd6f99e17dd2e0d23e7cd45e131 (patch) | |
| tree | 13fb64542b04e830c2efb178ede757abe0891a99 /src/libsyntax/util/parser.rs | |
| parent | 72f8043d44a8925e469daf5c10e2630c80c2a7d4 (diff) | |
| download | rust-91af5c2daf950bd6f99e17dd2e0d23e7cd45e131.tar.gz rust-91af5c2daf950bd6f99e17dd2e0d23e7cd45e131.zip | |
Bring back suggestion for splitting `<-` into `< -`
Closes #62632
Diffstat (limited to 'src/libsyntax/util/parser.rs')
| -rw-r--r-- | src/libsyntax/util/parser.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libsyntax/util/parser.rs b/src/libsyntax/util/parser.rs index d71358f45c4..a501541c959 100644 --- a/src/libsyntax/util/parser.rs +++ b/src/libsyntax/util/parser.rs @@ -97,6 +97,8 @@ impl AssocOp { // DotDotDot is no longer supported, but we need some way to display the error token::DotDotDot => Some(DotDotEq), token::Colon => Some(Colon), + // `<-` should probably be `< -` + token::LArrow => Some(Less), _ if t.is_keyword(kw::As) => Some(As), _ => None } |
