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 /compiler/rustc_errors | |
| 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 'compiler/rustc_errors')
| -rw-r--r-- | compiler/rustc_errors/src/emitter.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_errors/src/emitter.rs b/compiler/rustc_errors/src/emitter.rs index 84970e7c162..0c839f94f7f 100644 --- a/compiler/rustc_errors/src/emitter.rs +++ b/compiler/rustc_errors/src/emitter.rs @@ -409,7 +409,7 @@ pub trait Emitter { if !redundant_span || always_backtrace { let msg: Cow<'static, _> = match trace.kind { ExpnKind::Macro(MacroKind::Attr, _) => { - "this procedural macro expansion".into() + "this attribute macro expansion".into() } ExpnKind::Macro(MacroKind::Derive, _) => { "this derive macro expansion".into() |
