rust/compiler/rustc_expand/src
Matthias Krüger 6bd327374a
Rollup merge of #143607 - JonathanBrouwer:proc_macro_attrs, r=jdonszelmann,traviscross
Port the proc macro attributes to the new attribute parsing infrastructure

Ports `#[proc_macro]`, `#[proc_macro_attribute]`, `#[proc_macro_derive]` and `#[rustc_builtin_macro]` to the new attribute parsing infrastructure for https://github.com/rust-lang/rust/issues/131229#issuecomment-2971351163

I've split this PR into commits for reviewability, and left some comments to clarify things
I did 4 related attributes in one PR because they share a lot of their code and logic, and doing them separately is kind of annoying as I need to leave both the old and new parsing in place then.

r? ``@oli-obk``
cc ``@jdonszelmann``
2025-07-28 01:16:38 +02:00
..
mbe Stop compilation if macro expansion failed 2025-07-25 23:46:28 +02:00
base.rs Rollup merge of #143607 - JonathanBrouwer:proc_macro_attrs, r=jdonszelmann,traviscross 2025-07-28 01:16:38 +02:00
build.rs Make derive_const usable within libcore again 2025-07-17 15:42:54 +00:00
config.rs Fix ice for feature-gated cfg attributes applied to the crate 2025-07-15 23:28:15 +02:00
errors.rs Remove now un-used code 2025-07-26 20:26:16 +02:00
expand.rs Stop compilation if macro expansion failed 2025-07-25 23:46:28 +02:00
lib.rs mbe: Use concrete type for get_unused_rule 2025-07-22 00:36:10 -07:00
mbe.rs mbe: Clean up code with non-optional NonterminalKind 2025-06-24 04:37:36 -04:00
module.rs Reject macro calls inside of #![crate_name] 2025-02-15 16:47:30 +01:00
placeholders.rs completely deduplicate Visitor and MutVisitor 2025-06-19 17:50:44 +08:00
proc_macro.rs Do not get proc_macro from the sysroot in rustc 2025-05-27 15:49:28 +00:00
proc_macro_server.rs setup CI and tidy to use typos for spellchecking and fix few typos 2025-07-03 10:51:06 +03:00
stats.rs Tweak -Zmacro-stats measurement. 2025-06-24 08:42:14 +10:00