Files
rust/compiler/rustc_expand
Jacob Pratt f5196ef8be Rollup merge of #161003 - GuillaumeGomez:doc-attr-macro-invoc, r=mejrs
Also warn if an invalid `doc` attribute is used on a macro invocation

Fixes rust-lang/rust#160880.

So about this: I think the error message is good enough, but I can specialize it in case it's not a doc comment but a doc attribute.

Also: currently the ignored attributes are not kept in the AST, so when we reach `rustc_attr_parsing`, the attribute is not present and there won't trigger an error. I don't think it's worth changing this logic but in case someone thinks otherwise, it's mentioned. :)

r? @JonathanBrouwer
2026-08-12 20:17:37 -04:00
..