rust/compiler/rustc_errors/src
Trevor Gross 804d1a194e
Rollup merge of #144579 - joshtriplett:mbe-attr, r=petrochenkov
Implement declarative (`macro_rules!`) attribute macros (RFC 3697)

This implements [RFC 3697](https://github.com/rust-lang/rust/issues/143547), "Declarative (`macro_rules!`) attribute macros".

I would suggest reading this commit-by-commit. This first introduces the
feature gate, then adds parsing for attribute rules (doing nothing with them),
then adds the ability to look up and apply `macro_rules!` attributes by path,
then adds support for local attributes, then adds a test, and finally makes
various improvements to errors.
2025-08-08 14:22:45 -05:00
..
json Extract Translator struct 2025-06-19 13:02:04 -05:00
markdown Use LocalKey<Cell> methods more 2025-07-24 13:21:25 -05:00
annotate_snippet_emitter_writer.rs Extract Translator struct 2025-06-19 13:02:04 -05:00
codes.rs Stop using String for error codes. 2024-01-29 07:41:41 +11:00
diagnostic.rs Use tcx.short_string() in more diagnostics 2025-08-07 21:18:00 +00:00
diagnostic_impls.rs remove rustc_attr_data_structures 2025-07-31 14:19:27 +02:00
emitter.rs mbe: In error messages, don't assume attributes are always proc macros 2025-08-08 10:35:47 -07:00
error.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
json.rs refactor: Make -Ztrack-diagnostics emit like a note 2025-07-03 07:19:25 -06:00
lib.rs Extend is_case_difference to handle digit-letter confusables 2025-07-31 13:55:59 +08:00
lock.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
registry.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
snippet.rs Use abs_diff where applicable 2025-03-27 18:29:06 +00:00
styled_buffer.rs use let chains in ast, borrowck, codegen, const_eval 2025-07-28 06:08:48 +05:00
tests.rs Extract Translator struct 2025-06-19 13:02:04 -05:00
timings.rs Add codegen timing section 2025-06-23 08:50:17 +02:00
translation.rs Extract Translator struct 2025-06-19 13:02:04 -05:00