Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit f86a30d

Browse files
committedJan 31, 2025
Reexport literal-escaper from rustc_lexer to allow rust-analyzer to compile
1 parent 27ab932 commit f86a30d

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed
 

‎Cargo.lock

+1
Original file line numberDiff line numberDiff line change
@@ -4021,6 +4021,7 @@ name = "rustc_lexer"
40214021
version = "0.0.0"
40224022
dependencies = [
40234023
"expect-test",
4024+
"literal-escaper",
40244025
"unicode-properties",
40254026
"unicode-xid",
40264027
]

‎compiler/rustc_lexer/Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ Rust lexer used by rustc. No stability guarantees are provided.
1515
# Note that this crate purposefully does not depend on other rustc crates
1616
[dependencies]
1717
unicode-xid = "0.2.0"
18+
literal-escaper = { path = "../../library/literal-escaper" }
1819

1920
[dependencies.unicode-properties]
2021
version = "0.1.0"

‎compiler/rustc_lexer/src/lib.rs

+3
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ mod cursor;
3131
#[cfg(test)]
3232
mod tests;
3333

34+
// FIXME: This is needed for rust-analyzer. Remove this dependency once rust-analyzer uses
35+
// `literal-escaper`.
36+
pub use literal_escaper as unescape;
3437
use unicode_properties::UnicodeEmoji;
3538
pub use unicode_xid::UNICODE_VERSION as UNICODE_XID_VERSION;
3639

0 commit comments

Comments
 (0)
Failed to load comments.