about summary refs log tree commit diff
path: root/src/libsyntax/parse/token.rs
diff options
context:
space:
mode:
authorYuki Okushi <huyuumi.dev@gmail.com>2019-01-20 14:51:54 +0900
committerYuki Okushi <huyuumi.dev@gmail.com>2019-01-20 14:51:54 +0900
commita4ff1dcc534e9ae132e5b201a8f6e7dd06fbd9ee (patch)
treeb0a215286a480d863d5d9ac6b295f52b0386bc58 /src/libsyntax/parse/token.rs
parente9af312932baee90d260b41711f7ea95ad51bc07 (diff)
downloadrust-a4ff1dcc534e9ae132e5b201a8f6e7dd06fbd9ee.tar.gz
rust-a4ff1dcc534e9ae132e5b201a8f6e7dd06fbd9ee.zip
Mark incorrect recovered `char` literals as `TyErr` to avoid type errors
Diffstat (limited to 'src/libsyntax/parse/token.rs')
-rw-r--r--src/libsyntax/parse/token.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libsyntax/parse/token.rs b/src/libsyntax/parse/token.rs
index 99041fd7cd6..f06e975a6d9 100644
--- a/src/libsyntax/parse/token.rs
+++ b/src/libsyntax/parse/token.rs
@@ -473,8 +473,7 @@ impl Token {
 
             Le | EqEq | Ne | Ge | AndAnd | OrOr | Tilde | BinOpEq(..) | At | DotDotDot |
             DotDotEq | Comma | Semi | ModSep | RArrow | LArrow | FatArrow | Pound | Dollar |
-            Question | OpenDelim(..) | CloseDelim(..) => return None,
-
+            Question | OpenDelim(..) | CloseDelim(..) |
             Literal(..) | Ident(..) | Lifetime(..) | Interpolated(..) | DocComment(..) |
             Whitespace | Comment | Shebang(..) | Eof => return None,
         })