rust/compiler/rustc_ast/src
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
..
attr Allow boolean literals in check-cfg 2025-04-03 09:54:23 +00:00
expand add the autodiff batch mode frontend 2025-04-03 17:19:11 -04:00
util Replace rustc_lexer/unescape with rustc-literal-escaper crate 2025-04-04 14:44:45 +02:00
ast.rs Tighten up assignment operator representations. 2025-04-03 10:23:03 +11:00
ast_traits.rs Remove NtExpr and NtLiteral. 2025-04-02 06:20:35 +11:00
entry.rs remove support for the #[start] attribute 2025-01-21 06:59:15 -07:00
format.rs Limit formatting width and precision to 16 bits. 2025-03-10 12:20:05 +01:00
lib.rs Auto merge of #138414 - matthiaskrgr:rollup-9ablqdb, r=matthiaskrgr 2025-03-12 17:27:43 +00:00
mut_visit.rs Remove NtExpr and NtLiteral. 2025-04-02 06:20:35 +11:00
node_id.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
ptr.rs Convert some Into impls into From impls 2024-12-31 01:56:33 +00:00
token.rs Remove Token::uninterpolated_span. 2025-04-02 06:21:16 +11:00
tokenstream.rs Fix a problem with metavars and inner attributes. 2025-04-02 06:21:18 +11:00
visit.rs Move ast::Item::ident into ast::ItemKind. 2025-04-01 14:08:57 +11:00