Skip to content
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

Don't explicitly warn against semicolon_in_expressions_from_macros #3212

Merged
merged 2 commits into from
Dec 5, 2023

Conversation

Xanewok
Copy link
Member

@Xanewok Xanewok commented Dec 5, 2023

This warns-by-default since 2 years and already has been added to the future-incompat group since Rust 1.68.

See rust-lang/rust#79813 for the tracking issue.

Just something I noticed when trying to wrap my head around lints warned against in the rust-lang/rust and noticed it's not warned against anymore; let me know if the change makes sense 🙏

Xanewok and others added 2 commits December 5, 2023 12:05
This warns-by-default since 2 years and already has been added to the future-incompat group since Rust 1.68.

See rust-lang/rust#79813 for the tracking issue.
@RalfJung
Copy link
Member

RalfJung commented Dec 5, 2023

Thanks for the PR! Funny that it insists on formatting only after the line got shorter... that makes no sense, does it? Looks like a rustfmt bug to me.
@bors r+

This is taken directly from bootstrap, I guess they don't need this flag any more either then?

@bors
Copy link
Contributor

bors commented Dec 5, 2023

📌 Commit dc32d58 has been approved by RalfJung

It is now in the queue for this repository.

@bors
Copy link
Contributor

bors commented Dec 5, 2023

⌛ Testing commit dc32d58 with merge f330f36...

@bors
Copy link
Contributor

bors commented Dec 5, 2023

☀️ Test successful - checks-actions
Approved by: RalfJung
Pushing f330f36 to master...

@bors bors merged commit f330f36 into rust-lang:master Dec 5, 2023
8 checks passed
@Xanewok Xanewok deleted the patch-1 branch December 5, 2023 18:08
@Xanewok
Copy link
Member Author

Xanewok commented Dec 5, 2023

It was weird, indeed! Maybe it only checks for the modified lines? In any case, didn't want to wrestle Rustfmt here 😄

I've also opened rust-lang/rust#118642 to remove the warning argument in bootstrap.

@RalfJung
Copy link
Member

RalfJung commented Dec 5, 2023

No, rustfmt will always check the entire file. 🤷

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants