Skip to content

Commit 4788c7a

Browse files
committed
Bump rustc-ap-rustc_lexer
1 parent f03fb26 commit 4788c7a

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

Cargo.lock

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/parser/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ doctest = false
1313

1414
[dependencies]
1515
drop_bomb = "0.1.5"
16-
rustc_lexer = { version = "725.0.0", package = "rustc-ap-rustc_lexer" }
16+
rustc_lexer = { version = "727.0.0", package = "rustc-ap-rustc_lexer" }
1717

1818
limit.workspace = true
1919

crates/parser/src/lexed_str.rs

+5
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ impl<'a> LexedStr<'a> {
8282
pub fn text(&self, i: usize) -> &str {
8383
self.range_text(i..i + 1)
8484
}
85+
8586
pub fn range_text(&self, r: ops::Range<usize>) -> &str {
8687
assert!(r.start < r.end && r.end <= self.len());
8788
let lo = self.start[r.start] as usize;
@@ -216,6 +217,10 @@ impl<'a> Converter<'a> {
216217
rustc_lexer::TokenKind::Caret => T![^],
217218
rustc_lexer::TokenKind::Percent => T![%],
218219
rustc_lexer::TokenKind::Unknown => ERROR,
220+
rustc_lexer::TokenKind::UnknownPrefix => {
221+
err = "unknown literal prefix";
222+
IDENT
223+
}
219224
}
220225
};
221226

crates/syntax/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ doctest = false
1616
cov-mark = "2.0.0-pre.1"
1717
itertools = "0.10.5"
1818
rowan = "0.15.10"
19-
rustc_lexer = { version = "725.0.0", package = "rustc-ap-rustc_lexer" }
19+
rustc_lexer = { version = "727.0.0", package = "rustc-ap-rustc_lexer" }
2020
rustc-hash = "1.1.0"
2121
once_cell = "1.17.0"
2222
indexmap = "1.9.1"

0 commit comments

Comments
 (0)