1
Fork 0
rust/compiler/rustc_parse/src/parser
Guillaume Gomez ed81e347f1
Rollup merge of #139367 - GuillaumeGomez:proc-macro-values, r=Urgau
Add `*_value` methods to proc_macro lib

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

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

It was originally done in https://github.com/rust-lang/rust/pull/136355 but it broke the artifacts build so we decided to move the crate to crates.io to go around this limitation.

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

Considering this is a copy-paste of the originally approved PR, no need to go through the whole process again. \o/

r? `@Urgau`
2025-04-06 18:08:10 +02:00
..
mut_visit Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
tokenstream update cfg(bootstrap) 2025-01-08 21:26:39 +01:00
attr.rs Provide helpful diagnostics for shebang lookalikes 2025-03-13 19:53:53 +05:30
attr_wrapper.rs Rustfmt 2025-02-08 22:12:13 +00:00
diagnostics.rs Remove now unreachable parse recovery code 2025-03-25 15:15:41 +01:00
expr.rs Replace rustc_lexer/unescape with rustc-literal-escaper crate 2025-04-04 14:44:45 +02:00
generics.rs Implment #[cfg] and #[cfg_attr] in where clauses 2025-03-01 22:02:46 +08:00
item.rs Fix two incorrect turbofish suggestions 2025-04-02 18:10:34 +02:00
mod.rs Apply Recovery::Forbidden when reparsing pasted macro fragments. 2025-04-04 13:24:26 +11:00
nonterminal.rs Remove NtExpr and NtLiteral. 2025-04-02 06:20:35 +11:00
pat.rs Remove NtExpr and NtLiteral. 2025-04-02 06:20:35 +11:00
path.rs Replace ast::TokenKind::BinOp{,Eq} and remove BinOpToken. 2025-03-03 09:26:11 +11:00
stmt.rs Add the feature gate for the super let experiment. 2025-03-28 19:06:18 +01:00
tests.rs Move ast::Item::ident into ast::ItemKind. 2025-04-01 14:08:57 +11:00
token_type.rs Add the feature gate for the super let experiment. 2025-03-28 19:06:18 +01:00
ty.rs Remove Token::uninterpolated_span. 2025-04-02 06:21:16 +11:00