Unnamed repository; edit this file 'description' to name the repository.
Auto merge of #104192 - Dylan-DPC:rollup-jjo1o80, r=Dylan-DPC
Rollup of 7 pull requests Successful merges: - #103570 (Stabilize integer logarithms) - #103694 (Add documentation examples for `pointer::mask`) - #103919 (Unescaping cleanups) - #103933 (Promote {aarch64,i686,x86_64}-unknown-uefi to Tier 2) - #103952 (Don't intra linkcheck reference) - #104111 (rustdoc: Add mutable to the description) - #104125 (Const Compare for Tuples) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
bors 2022-11-09
parent 0936f96 · parent 670db72 · commit d0274c6
-rw-r--r--crates/syntax/src/validation.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/crates/syntax/src/validation.rs b/crates/syntax/src/validation.rs
index b9f2b51323..1eea234645 100644
--- a/crates/syntax/src/validation.rs
+++ b/crates/syntax/src/validation.rs
@@ -5,9 +5,7 @@
mod block;
use rowan::Direction;
-use rustc_lexer::unescape::{
- self, unescape_byte, unescape_byte_literal, unescape_char, unescape_literal, Mode,
-};
+use rustc_lexer::unescape::{self, unescape_byte, unescape_char, unescape_literal, Mode};
use crate::{
algo,
@@ -143,7 +141,7 @@ fn validate_literal(literal: ast::Literal, acc: &mut Vec<SyntaxError>) {
ast::LiteralKind::ByteString(s) => {
if !s.is_raw() {
if let Some(without_quotes) = unquote(text, 2, '"') {
- unescape_byte_literal(without_quotes, Mode::ByteStr, &mut |range, char| {
+ unescape_literal(without_quotes, Mode::ByteStr, &mut |range, char| {
if let Err(err) = char {
push_err(2, (range.start, err));
}