Files
rust/tests
Jonathan Brouwer f056d893a6 Rollup merge of #158110 - pbkx:issue-147135-macro-attr-feature-gate-span, r=joshtriplett
fix macro attribute feature-gate span

Fixes rust-lang/rust#147135.

Issue rust-lang/rust#147135 reports a misleading feature-gate diagnostic for cross-crate `macro_rules!` macro attributes. This misleading  feature-gate diagnostic causes rustc to point at the macro definition instead of user’s attribute call site.

My PR makes sure externally defined `macro_rules!` attributes are gated at the invocation span. Regression test verifies that the primary error points at the downstream `#[foo::identity]` attribute use
2026-08-04 18:35:32 +02:00
..