Skip to content

Commit f263364

Browse files
committed
Bump rustc-literal-escaper
1 parent 1482809 commit f263364

File tree

3 files changed

+6
-12
lines changed

3 files changed

+6
-12
lines changed

src/tools/rust-analyzer/Cargo.lock

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1505,7 +1505,7 @@ dependencies = [
15051505
"edition",
15061506
"expect-test",
15071507
"ra-ap-rustc_lexer",
1508-
"rustc-literal-escaper 0.0.4",
1508+
"rustc-literal-escaper",
15091509
"stdx",
15101510
"tracing",
15111511
]
@@ -1814,7 +1814,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
18141814
checksum = "18d2c4b48fa26e031b1cca0c8ca7433770f5e35e33da56da8636dae2cd45d4e1"
18151815
dependencies = [
18161816
"ra-ap-rustc_lexer",
1817-
"rustc-literal-escaper 0.0.5",
1817+
"rustc-literal-escaper",
18181818
]
18191819

18201820
[[package]]
@@ -1966,12 +1966,6 @@ version = "2.1.1"
19661966
source = "registry+https://github.com/rust-lang/crates.io-index"
19671967
checksum = "357703d41365b4b27c590e3ed91eabb1b663f07c4c084095e60cbed4362dff0d"
19681968

1969-
[[package]]
1970-
name = "rustc-literal-escaper"
1971-
version = "0.0.4"
1972-
source = "registry+https://github.com/rust-lang/crates.io-index"
1973-
checksum = "ab03008eb631b703dd16978282ae36c73282e7922fe101a4bd072a40ecea7b8b"
1974-
19751969
[[package]]
19761970
name = "rustc-literal-escaper"
19771971
version = "0.0.5"
@@ -2265,7 +2259,7 @@ dependencies = [
22652259
"rayon",
22662260
"rowan",
22672261
"rustc-hash 2.1.1",
2268-
"rustc-literal-escaper 0.0.4",
2262+
"rustc-literal-escaper",
22692263
"rustc_apfloat",
22702264
"smol_str",
22712265
"stdx",

src/tools/rust-analyzer/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ serde = { version = "1.0.219" }
149149
serde_derive = { version = "1.0.219" }
150150
serde_json = "1.0.140"
151151
rustc-hash = "2.1.1"
152-
rustc-literal-escaper = "0.0.4"
152+
rustc-literal-escaper = "0.0.5"
153153
smallvec = { version = "1.15.1", features = [
154154
"const_new",
155155
"union",

src/tools/rust-analyzer/crates/syntax/src/ast/token_ext.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -309,8 +309,8 @@ impl ast::CString {
309309
let mut prev_end = 0;
310310
let mut has_error = None;
311311
let extend_unit = |buf: &mut Vec<u8>, unit: MixedUnit| match unit {
312-
MixedUnit::Char(c) => buf.extend(c.encode_utf8(&mut [0; 4]).as_bytes()),
313-
MixedUnit::HighByte(b) => buf.push(b),
312+
MixedUnit::Char(c) => buf.extend(c.get().encode_utf8(&mut [0; 4]).as_bytes()),
313+
MixedUnit::HighByte(b) => buf.push(b.get()),
314314
};
315315
unescape_c_str(text, |char_range, unescaped| match (unescaped, buf.capacity() == 0) {
316316
(Ok(u), false) => extend_unit(&mut buf, u),

0 commit comments

Comments
 (0)