E545 fix `unnecessary_semicolon`: FN on `#[feature(stmt_expr_attributes)]` by ada4a · Pull Request #15481 · rust-lang/rust-clippy · GitHub
[go: up one dir, main page]

Skip to content

Conversation

ada4a
Copy link
Contributor
@ada4a ada4a commented Aug 13, 2025

inspired by #15476

changelog: [unnecessary_semicolon]: FN on #[feature(stmt_expr_attributes)]

Summary Notes

Managed by @rustbot—see help for details

@rustbot
Copy link
Collaborator
rustbot commented Aug 13, 2025

r? @blyxyas

rustbot has assigned @blyxyas.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Aug 13, 2025
@ada4a ada4a force-pushed the unnecessary-semicolon-with-attrs branch from 1e0155e to a8320b3 Compare August 22, 2025 13:34
@ada4a ada4a closed this Aug 22, 2025
@ada4a ada4a deleted the unnecessary-semicolon-with-attrs branch August 22, 2025 13:38
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Aug 22, 2025
@blyxyas
Copy link
Member
blyxyas commented Aug 22, 2025

@ada4a is there a reason why you closed this, or are you just over-capacity and this one wasn't that high up in the list of priorities? =^w^=

@ada4a ada4a restored the unnecessary-semicolon-with-attrs branch August 22, 2025 16:35
@ada4a
Copy link
Contributor Author
ada4a commented Aug 22, 2025

Oops, thanks for letting me know -- I just messed up this particular branch when rebasing all the bajillion of them that I have onto the latest master (for the rust sync). Reopened it^^

@ada4a ada4a reopened this Aug 22, 2025
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Aug 22, 2025
@ada4a ada4a force-pushed the unnecessary-semicolon-with-attrs branch from a8320b3 to 2aff1b7 Compare August 22, 2025 16:39
@ada4a
Copy link
Contributor Author
ada4a commented Aug 22, 2025

Oh, and I just noticed that I've been spamming @profetia everytime I rebased, because my commit included a link to one of her PRs. Sorry @profetia, I removed the link now^^

But isn't rustbot supposed to complain in such cases?.. I'm pretty sure I've seen such warnings in the past

@blyxyas
Copy link
Member
blyxyas commented Aug 22, 2025

Hmmm weird, the [issue-links] table is defined in our triagebot.toml, so it's supposed to warn about that. Weird.

Copy link
Member
@blyxyas blyxyas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks! ❤️
I'll mark this as blocked to be reviewed after the feature freeze, because it still creates a new environment for things to fail, but thanks a lot for the fix. When the feature freeze is over, I'll merge it.

@rustbot blocked
@rustbot note Feature freeze
@rustbot label +C-enhancement

@rustbot rustbot added S-blocked Status: marked as blocked ❌ on something else such as an RFC or other implementation work C-enhancement Category: Enhancement of lints, like adding more cases or adding help messages and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties labels Aug 24, 2025
@samueltardieu samueltardieu added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties and removed S-blocked Status: marked as blocked ❌ on something else such as an RFC or other implementation work labels Sep 17, 2025
Copy link
Member
@blyxyas blyxyas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great bugfix, just a nit for better understandability of the test file, and everything should be ready to go!

View changes since this review


fn main() {
// removing the `;` would turn the stmt into an expr, but attrs aren't allowed on exprs
// -- but not with the feature enabled
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This wording is a bit strange

Suggested change
// -- but not with the feature enabled
// unless the feature `stmt_expr_attributes` is enabled

@rustbot rustbot added S-waiting-on-author Status: This is awaiting some action from the author. (Use `@rustbot ready` to update this status) and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties labels Sep 21, 2025
@ada4a ada4a force-pushed the unnecessary-semicolon-with-attrs branch from 2aff1b7 to 6992a8e Compare September 21, 2025 19:41
@rustbot
Copy link
Collaborator
rustbot commented Sep 21, 2025

This PR was rebased onto a different master commit. Here's a range-diff highlighting what actually changed.

Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers.

@ada4a ada4a force-pushed the unnecessary-semicolon-with-attrs branch from 6992a8e to 27cad5a Compare September 21, 2025 19:43
@ada4a
Copy link
Contributor Author
ada4a commented Sep 21, 2025

@rustbot ready

@rustbot rustbot removed the S-waiting-on-author Status: This is awaiting some action from the author. (Use `@rustbot ready` to update this status) label Sep 21, 2025
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Sep 21, 2025
Copy link
Member
@blyxyas blyxyas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks! ❤️

View changes since this review

@blyxyas blyxyas added this pull request to the merge queue Sep 22, 2025
Merged via the queue into rust-lang:master with commit 507a7ec Sep 22, 2025
11 checks passed
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Sep 22, 2025
@ada4a ada4a deleted the unnecessary-semicolon-with-attrs branch September 22, 2025 19:48
Sign up for free to join this conversation on GitHub. Already have an account? 67FD Sign in to comment
Labels
C-enhancement Category: Enhancement of lints, like adding more cases or adding help messages
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
0