Rustc reports errors for macro_rule
s that have attribute tags ([rustfmt::skip]
)
#121219
Labels
A-attributes
Area: Attributes (`#[…]`, `#![…]`)
A-macros
Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..)
A-resolve
Area: Name/path resolution done by `rustc_resolve` specifically
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I tried this code:
This does work if there's no
[rustfmt::skip]
.However, if this attribute is added, the following compilation error occurs:
And other commonly-used attributes do not fail, like
feature
orcfg
.Playground here: Rust Playground.
Meta
Stable(1.76.0), beta(1.77.0-beta.4 2/16) and nightly(1.78.0-nightly 2/15) all failed to compile this.
The text was updated successfully, but these errors were encountered: