diff options
| author | Mark Rousskov <mark.simulacrum@gmail.com> | 2019-07-23 12:51:15 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-07-23 12:51:15 -0400 |
| commit | 4cb3586db98ca67d976a1647f908ab5a287c68a1 (patch) | |
| tree | 5edf2bf325a48398fe525d7251d7fa33c8b7bddb /src/libsyntax/parse/lexer | |
| parent | 8afc53c195413c3bc785d134db79751434efd707 (diff) | |
| parent | e63fe150bfbce632dd7ff0a656a4180557128e4f (diff) | |
| download | rust-4cb3586db98ca67d976a1647f908ab5a287c68a1.tar.gz rust-4cb3586db98ca67d976a1647f908ab5a287c68a1.zip | |
Rollup merge of #62851 - matklad:unescape, r=petrochenkov
move unescape module to rustc_lexer It makes sense to keep the definition of escape sequences closer to the lexer itself, and it is also a bit of code that I would like to share with rust-analyzer. r? @petrochenkov
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 bfefd9adbfe..b97801a50d4 100644 --- a/src/libsyntax/parse/lexer/mod.rs +++ b/src/libsyntax/parse/lexer/mod.rs @@ -1,12 +1,12 @@ use crate::parse::ParseSess; use crate::parse::token::{self, Token, TokenKind}; use crate::symbol::{sym, Symbol}; -use crate::parse::unescape; use crate::parse::unescape_error_reporting::{emit_unescape_error, push_escaped_char}; use errors::{FatalError, Diagnostic, DiagnosticBuilder}; use syntax_pos::{BytePos, Pos, Span, NO_EXPANSION}; use rustc_lexer::Base; +use rustc_lexer::unescape; use std::borrow::Cow; use std::char; |
