diff options
| author | Trevor Gross <t.gross35@gmail.com> | 2025-08-08 14:22:45 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-08 14:22:45 -0500 |
| commit | 804d1a194e8aafc4fbf3fc24250d77f2025f075e (patch) | |
| tree | fa603908157012890b785a7c4ce13c0655002850 /src | |
| parent | 18abf3aa44c53652c017752eda43f0405cd22c13 (diff) | |
| parent | f88839d2abc1c190c3072638518ff06b79686de1 (diff) | |
| download | rust-804d1a194e8aafc4fbf3fc24250d77f2025f075e.tar.gz rust-804d1a194e8aafc4fbf3fc24250d77f2025f075e.zip | |
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.
Diffstat (limited to 'src')
| -rw-r--r-- | src/tools/miri/tests/fail/alloc/alloc_error_handler_custom.stderr | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/miri/tests/fail/alloc/alloc_error_handler_custom.stderr b/src/tools/miri/tests/fail/alloc/alloc_error_handler_custom.stderr index 29c56ca81f7..a2a4be30eca 100644 --- a/src/tools/miri/tests/fail/alloc/alloc_error_handler_custom.stderr +++ b/src/tools/miri/tests/fail/alloc/alloc_error_handler_custom.stderr @@ -11,7 +11,7 @@ note: inside `_::__rg_oom` --> tests/fail/alloc/alloc_error_handler_custom.rs:LL:CC | LL | #[alloc_error_handler] - | ---------------------- in this procedural macro expansion + | ---------------------- in this attribute macro expansion LL | fn alloc_error_handler(layout: Layout) -> ! { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = note: inside `alloc::alloc::handle_alloc_error::rt_error` at RUSTLIB/alloc/src/alloc.rs:LL:CC |
