Skip to content

Commit 2050358

Browse files
committed
Revert "Bump rustc-literal-escaper"
This reverts commit 9f3adc540b51a4c2d0472d94033f6d9147b36f6e.
1 parent f263364 commit 2050358

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

src/tools/rust-analyzer/Cargo.lock

Lines changed: 9 additions & 3 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",
1508+
"rustc-literal-escaper 0.0.4",
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",
1817+
"rustc-literal-escaper 0.0.5",
18181818
]
18191819

18201820
[[package]]
@@ -1966,6 +1966,12 @@ 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+
19691975
[[package]]
19701976
name = "rustc-literal-escaper"
19711977
version = "0.0.5"
@@ -2259,7 +2265,7 @@ dependencies = [
22592265
"rayon",
22602266
"rowan",
22612267
"rustc-hash 2.1.1",
2262-
"rustc-literal-escaper",
2268+
"rustc-literal-escaper 0.0.4",
22632269
"rustc_apfloat",
22642270
"smol_str",
22652271
"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.5"
152+
rustc-literal-escaper = "0.0.4"
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.get().encode_utf8(&mut [0; 4]).as_bytes()),
313-
MixedUnit::HighByte(b) => buf.push(b.get()),
312+
MixedUnit::Char(c) => buf.extend(c.encode_utf8(&mut [0; 4]).as_bytes()),
313+
MixedUnit::HighByte(b) => buf.push(b),
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)