Uh oh!
There was an error while loading. Please reload this page.
Mark attributes consumed by check_mod_attrs as normal - #69412
Conversation
Take advantage of the fact that `check_mod_attrs` marks attributes as used and change their type to normal, so that any remaining uses will be warned about by the unused attribute lint.
rust-highfive
commented
Feb 23, 2020
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @cramertj (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
rust-highfive
commented
Feb 23, 2020
The job Click to expand the log.I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
cramertj
commented
Feb 24, 2020
r? @Centril |
Centril
commented
Feb 24, 2020
Mark-Simulacrum
commented
Feb 25, 2020
I guess this feels fine to me, but I don't know why this wasn't already the case? Are we in a transition period or something like that? Without that knowledge (and I don't have time to hunt it down), I can't confidently approve this. r? @petrochenkov, I guess, though I'm not sure why @Centril thought that'd be reasonable. |
The codegen attributes are generally consumed too late for the unused attribute |
petrochenkov
commented
Feb 25, 2020
@bors r+ |
bors
commented
Feb 25, 2020
📌 Commit d78b22f has been approved by |
Rollup of 7 pull requests Successful merges: - #67637 (Add primitive module to libcore) - #69387 (Deduplicate identifier printing a bit) - #69412 (Mark attributes consumed by `check_mod_attrs` as normal) - #69423 (syntax: Remove `Nt(Impl,Trait,Foreign)Item`) - #69429 (remove redundant clones and import) - #69457 (Clean up e0370 e0371) - #69468 ([master] Backport release notes of 1.41.1) Failed merges: r? @ghost
Take advantage of the fact that
check_mod_attrsmarks attributes asused and change their type to normal, so that any remaining uses will be
warned about by the unused attribute lint.