Port #[must_use] to new attribute parsing infrastructure#142780
Port #[must_use] to new attribute parsing infrastructure#142780bors merged 1 commit intorust-lang:masterfrom
#[must_use] to new attribute parsing infrastructure#142780Conversation
|
|
|
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 |
| | AttributeKind::Repr { .. } | ||
| | AttributeKind::Align { .. }, | ||
| | AttributeKind::Align { .. } | ||
| | AttributeKind::MustUse { .. }, |
There was a problem hiding this comment.
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.
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.
eeb53ac to
0d04ef3
Compare
|
☔ The latest upstream changes (presumably #142826) made this pull request unmergeable. Please resolve the merge conflicts. |
0d04ef3 to
11d9029
Compare
|
@bors r+ rollup |
|
The commit message is wrong |
|
Woops sorry, fixed! Working on a few too many PRs at the same time :P |
11d9029 to
f42da01
Compare
Signed-off-by: Jonathan Brouwer <jonathantbrouwer@gmail.com>
|
Rebased to solve merge conflicts |
f42da01 to
b24df42
Compare
|
@bors r+ rollup |
Rollup of 10 pull requests Successful merges: - #142458 (Merge unboxed trait object error suggestion into regular dyn incompat error) - #142593 (Add a warning to LateContext::get_def_path) - #142594 (Add DesugaringKind::FormatLiteral) - #142740 (Clean-up `FnCtxt::is_destruct_assignment_desugaring`) - #142780 (Port `#[must_use]` to new attribute parsing infrastructure) - #142798 (Don't fail to parse a struct if a semicolon is used to separate fields) - #142856 (Add a few inline directives in rustc_serialize.) - #142868 (remove few allow(dead_code)) - #142874 (cranelift: fix target feature name typo: "fxsr") - #142877 (Document why tidy checks if `eslint` is installed via `npm`) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of #142780 - JonathanBrouwer:must_use_new_attr, r=jdonszelmann Port `#[must_use]` to new attribute parsing infrastructure Ports `must_use` to the new attribute parsing infrastructure for #131229 (comment) r? `@jdonszelmann`
Rollup of 10 pull requests Successful merges: - rust-lang/rust#142458 (Merge unboxed trait object error suggestion into regular dyn incompat error) - rust-lang/rust#142593 (Add a warning to LateContext::get_def_path) - rust-lang/rust#142594 (Add DesugaringKind::FormatLiteral) - rust-lang/rust#142740 (Clean-up `FnCtxt::is_destruct_assignment_desugaring`) - rust-lang/rust#142780 (Port `#[must_use]` to new attribute parsing infrastructure) - rust-lang/rust#142798 (Don't fail to parse a struct if a semicolon is used to separate fields) - rust-lang/rust#142856 (Add a few inline directives in rustc_serialize.) - rust-lang/rust#142868 (remove few allow(dead_code)) - rust-lang/rust#142874 (cranelift: fix target feature name typo: "fxsr") - rust-lang/rust#142877 (Document why tidy checks if `eslint` is installed via `npm`) r? `@ghost` `@rustbot` modify labels: rollup
Rollup of 10 pull requests Successful merges: - rust-lang/rust#142458 (Merge unboxed trait object error suggestion into regular dyn incompat error) - rust-lang/rust#142593 (Add a warning to LateContext::get_def_path) - rust-lang/rust#142594 (Add DesugaringKind::FormatLiteral) - rust-lang/rust#142740 (Clean-up `FnCtxt::is_destruct_assignment_desugaring`) - rust-lang/rust#142780 (Port `#[must_use]` to new attribute parsing infrastructure) - rust-lang/rust#142798 (Don't fail to parse a struct if a semicolon is used to separate fields) - rust-lang/rust#142856 (Add a few inline directives in rustc_serialize.) - rust-lang/rust#142868 (remove few allow(dead_code)) - rust-lang/rust#142874 (cranelift: fix target feature name typo: "fxsr") - rust-lang/rust#142877 (Document why tidy checks if `eslint` is installed via `npm`) r? `@ghost` `@rustbot` modify labels: rollup
Ports
must_useto the new attribute parsing infrastructure for #131229 (comment)r? @jdonszelmann