about summary refs log tree commit diff
path: root/src/libsyntax/parse/lexer
diff options
context:
space:
mode:
authorMark Rousskov <mark.simulacrum@gmail.com>2019-07-23 12:51:15 -0400
committerGitHub <noreply@github.com>2019-07-23 12:51:15 -0400
commit4cb3586db98ca67d976a1647f908ab5a287c68a1 (patch)
tree5edf2bf325a48398fe525d7251d7fa33c8b7bddb /src/libsyntax/parse/lexer
parent8afc53c195413c3bc785d134db79751434efd707 (diff)
parente63fe150bfbce632dd7ff0a656a4180557128e4f (diff)
downloadrust-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.rs2
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;