mirror of
https://github.com/allankoechke/rust.git
synced 2026-11-30 11:05:36 +00:00
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