Skip to content

Commit d0274c6

Browse files
committed
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
2 parents 0936f96 + 670db72 commit d0274c6

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

crates/syntax/src/validation.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@
55
mod block;
66

77
use rowan::Direction;
8-
use rustc_lexer::unescape::{
9-
self, unescape_byte, unescape_byte_literal, unescape_char, unescape_literal, Mode,
10-
};
8+
use rustc_lexer::unescape::{self, unescape_byte, unescape_char, unescape_literal, Mode};
119

1210
use crate::{
1311
algo,
@@ -143,7 +141,7 @@ fn validate_literal(literal: ast::Literal, acc: &mut Vec<SyntaxError>) {
143141
ast::LiteralKind::ByteString(s) => {
144142
if !s.is_raw() {
145143
if let Some(without_quotes) = unquote(text, 2, '"') {
146-
unescape_byte_literal(without_quotes, Mode::ByteStr, &mut |range, char| {
144+
unescape_literal(without_quotes, Mode::ByteStr, &mut |range, char| {
147145
if let Err(err) = char {
148146
push_err(2, (range.start, err));
149147
}

0 commit comments

Comments
 (0)