about summary refs log tree commit diff
path: root/compiler/rustc_lexer/src/lib.rs
diff options
context:
space:
mode:
authorJacob Pratt <jacob@jhpratt.dev>2025-03-17 05:47:48 -0400
committerGitHub <noreply@github.com>2025-03-17 05:47:48 -0400
commit08dfbf49e30d917c89e49eb14cb3f1e8b8a1c9ef (patch)
tree5b9eb8b49cbc7fb2f7ad05ac4974b36721cef839 /compiler/rustc_lexer/src/lib.rs
parent10bcdad7df0de3cfb95c7bdb7b16908e73cafc09 (diff)
parent4394f94023526f81b1c45f6e74a17360f31522e4 (diff)
downloadrust-08dfbf49e30d917c89e49eb14cb3f1e8b8a1c9ef.tar.gz
rust-08dfbf49e30d917c89e49eb14cb3f1e8b8a1c9ef.zip
Rollup merge of #136355 - GuillaumeGomez:proc-macro_add_value_retrieval_methods, r=Amanieu
Add `*_value` methods to proc_macro lib

This is the implementation of https://github.com/rust-lang/libs-team/issues/459.

It allows to get the actual value (unescaped) of the different string literals.

Part of https://github.com/rust-lang/rust/issues/136652.

r? libs-api
Diffstat (limited to 'compiler/rustc_lexer/src/lib.rs')
-rw-r--r--compiler/rustc_lexer/src/lib.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler/rustc_lexer/src/lib.rs b/compiler/rustc_lexer/src/lib.rs
index 61638e45253..c45dd33982b 100644
--- a/compiler/rustc_lexer/src/lib.rs
+++ b/compiler/rustc_lexer/src/lib.rs
@@ -26,11 +26,13 @@
 // tidy-alphabetical-end
 
 mod cursor;
-pub mod unescape;
 
 #[cfg(test)]
 mod tests;
 
+// FIXME: This is needed for rust-analyzer. Remove this dependency once rust-analyzer uses
+// `literal-escaper`.
+pub use literal_escaper as unescape;
 use unicode_properties::UnicodeEmoji;
 pub use unicode_xid::UNICODE_VERSION as UNICODE_XID_VERSION;