diff options
| author | Masaki Hara <ackie.h.gmai@gmail.com> | 2017-05-14 21:37:50 +0900 |
|---|---|---|
| committer | Masaki Hara <ackie.h.gmai@gmail.com> | 2017-05-14 21:37:50 +0900 |
| commit | ed6c6c9a11f7deddbd1f209c5e7de12bc420c550 (patch) | |
| tree | a7ff90423a21ac2802e5a7a09c321a72a379622b /src/libsyntax/parse/lexer | |
| parent | 94497b73a70c7062be0ad81d843c6aa88da0c71b (diff) | |
| download | rust-ed6c6c9a11f7deddbd1f209c5e7de12bc420c550.tar.gz rust-ed6c6c9a11f7deddbd1f209c5e7de12bc420c550.zip | |
Disallow underscore suffix for string-like literals.
Diffstat (limited to 'src/libsyntax/parse/lexer')
| -rw-r--r-- | src/libsyntax/parse/lexer/mod.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/libsyntax/parse/lexer/mod.rs b/src/libsyntax/parse/lexer/mod.rs index a83b19c7334..480049f845c 100644 --- a/src/libsyntax/parse/lexer/mod.rs +++ b/src/libsyntax/parse/lexer/mod.rs @@ -479,11 +479,7 @@ impl<'a> StringReader<'a> { } self.with_str_from(start, |string| { - if string == "_" { - None - } else { - Some(Symbol::intern(string)) - } + Some(Symbol::intern(string)) }) } |
