diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2018-05-13 16:14:43 +0300 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2018-05-17 23:13:09 +0300 |
| commit | c4352ff198e4725393f4f6fbadab7312b30b538c (patch) | |
| tree | 598a4b72559449ade1a86bd37dce70558fc1de7c /src/libsyntax/parse/lexer | |
| parent | f4cbc2388f6a7abace3df9bf97b7758f0dfc0d4d (diff) | |
| download | rust-c4352ff198e4725393f4f6fbadab7312b30b538c.tar.gz rust-c4352ff198e4725393f4f6fbadab7312b30b538c.zip | |
Turn some functions from `token.rs` into methods on `Ident`
Diffstat (limited to 'src/libsyntax/parse/lexer')
| -rw-r--r-- | src/libsyntax/parse/lexer/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/parse/lexer/mod.rs b/src/libsyntax/parse/lexer/mod.rs index 3e22598043a..7bef9e34d5a 100644 --- a/src/libsyntax/parse/lexer/mod.rs +++ b/src/libsyntax/parse/lexer/mod.rs @@ -1149,7 +1149,7 @@ impl<'a> StringReader<'a> { return Ok(self.with_str_from(start, |string| { // FIXME: perform NFKC normalization here. (Issue #2253) let ident = self.mk_ident(string); - if is_raw_ident && (token::is_path_segment_keyword(ident) || + if is_raw_ident && (ident.is_path_segment_keyword() || ident.name == keywords::Underscore.name()) { self.fatal_span_(raw_start, self.pos, &format!("`r#{}` is not currently supported.", ident.name) |
