-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Port #[must_use]
to new attribute parsing infrastructure
#142780
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Port #[must_use]
to new attribute parsing infrastructure
#142780
Conversation
|
Some changes occurred in compiler/rustc_attr_parsing Some changes occurred in compiler/rustc_passes/src/check_attr.rs Some changes occurred in src/tools/clippy cc @rust-lang/clippy Some changes occurred in compiler/rustc_attr_data_structures |
@@ -686,7 +688,8 @@ impl<'tcx> CheckAttrVisitor<'tcx> { | |||
Attribute::Parsed( | |||
AttributeKind::Deprecation { .. } | |||
| AttributeKind::Repr { .. } | |||
| AttributeKind::Align { .. }, | |||
| AttributeKind::Align { .. } | |||
| AttributeKind::MustUse { .. }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've added MustUse
here but not removed it from the ALLOW_LIST
above, because you also seem to not have done this for the other attributes. Is this correct?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've just rewritten the naked attribute, so this shouldn't be necessary anymore. but dw, I'll do the rebase on there
74be5fa
to
49cf486
Compare
Rebased to solve merge conflicts |
This comment has been minimized.
This comment has been minimized.
49cf486
to
7eb1d5c
Compare
These commits modify Please ensure that if you've changed the output:
cc @aDotInTheVoid, @obi1kenobi rustdoc-json-types is a public (although nightly-only) API. If possible, consider changing |
b17cbe2
to
f549f43
Compare
☔ The latest upstream changes (presumably #142794) made this pull request unmergeable. Please resolve the merge conflicts. |
f549f43
to
e4b7167
Compare
Rebased to solve merge conflicts |
f031214
to
eeb53ac
Compare
Rebased to solve merge conflicts |
This comment has been minimized.
This comment has been minimized.
Signed-off-by: Jonathan Brouwer <jonathantbrouwer@gmail.com>
eeb53ac
to
0d04ef3
Compare
Ports
must_use
to the new attribute parsing infrastructure for #131229 (comment)r? @jdonszelmann