-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
Make empty-line-after an early clippy lint #136657
Conversation
Some changes occurred in src/tools/clippy cc @rust-lang/clippy |
In the past, I've mostly seen such additions added in isolation to |
so in this case it was the other way around, 3 months ago we started with some changes in clippy so they'd be done in time for a PR on rust-lang/rust. In the end things ended up going differently and that PR was still open and now also needed some changes in rust-lang/rust so that'd have meant a sync both ways before the change landed. This'd shortcut that :) |
☔ The latest upstream changes (presumably #136658) made this pull request unmergeable. Please resolve the merge conflicts. |
0a9401f
to
a96c556
Compare
…R` lint into early lints
Co-authored-by: Guillaume Gomez <[email protected]>
a96c556
to
cd52a95
Compare
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.
LGTM
Nice, thanks to both of you! |
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.
Looks also good to me, thank you. Sorry for taking longer with the review and blocking your HIR attribute refactor. This technically touches compiler code though and I don't know if I'm allowed to r+ those PRs even if just adding two lint context methods?
So, taking the safe route, for the small compiler change that adds the two lint context methods that this lint needs: r? compiler r=me and flip1995 if it looks good. |
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.
The compiler changes look good to me:3
r? WaffleLapkin @bors r=y21,flip1995,WaffleLapkin |
…21,flip1995,WaffleLapkin Make empty-line-after an early clippy lint r? `@y21` 95% a refiling of rust-lang/rust-clippy#13658 but for correctness it needed 2 extra methods in `rust_lint` which made it much easier to apply on `rust-lang/rust` than `rust-lang/rust-clippy`. Commits have been thoroughly reviewed on `rust-lang/clippy already`. The last two review comments there (about using `Option` and popping for assoc items have been applied here.
…iaskrgr Rollup of 8 pull requests Successful merges: - rust-lang#131282 (std: detect stack overflows in TLS destructors on UNIX) - rust-lang#135696 (std: move `io` module out of `pal`, get rid of `sys_common::io`) - rust-lang#136099 (Optimize `Rc::<str>::default()` implementation) - rust-lang#136200 (Generate correct terminate block under Wasm EH) - rust-lang#136626 (create `initial_rustdoc` field in `Build`) - rust-lang#136657 (Make empty-line-after an early clippy lint) - rust-lang#136679 (ci: Use largedisk for loongarch) - rust-lang#136715 (Subtree sync for rustc_codegen_cranelift) r? `@ghost` `@rustbot` modify labels: rollup
…21,flip1995,WaffleLapkin Make empty-line-after an early clippy lint r? ``@y21`` 95% a refiling of rust-lang/rust-clippy#13658 but for correctness it needed 2 extra methods in `rust_lint` which made it much easier to apply on `rust-lang/rust` than `rust-lang/rust-clippy`. Commits have been thoroughly reviewed on `rust-lang/clippy already`. The last two review comments there (about using `Option` and popping for assoc items have been applied here.
…iaskrgr Rollup of 7 pull requests Successful merges: - rust-lang#135696 (std: move `io` module out of `pal`, get rid of `sys_common::io`) - rust-lang#136099 (Optimize `Rc::<str>::default()` implementation) - rust-lang#136200 (Generate correct terminate block under Wasm EH) - rust-lang#136626 (create `initial_rustdoc` field in `Build`) - rust-lang#136657 (Make empty-line-after an early clippy lint) - rust-lang#136679 (ci: Use largedisk for loongarch) - rust-lang#136715 (Subtree sync for rustc_codegen_cranelift) r? `@ghost` `@rustbot` modify labels: rollup
…iaskrgr Rollup of 6 pull requests Successful merges: - rust-lang#135696 (std: move `io` module out of `pal`, get rid of `sys_common::io`) - rust-lang#136099 (Optimize `Rc::<str>::default()` implementation) - rust-lang#136200 (Generate correct terminate block under Wasm EH) - rust-lang#136626 (create `initial_rustdoc` field in `Build`) - rust-lang#136657 (Make empty-line-after an early clippy lint) - rust-lang#136679 (ci: Use largedisk for loongarch) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of rust-lang#136657 - jdonszelmann:empty-line-after, r=y21,flip1995,WaffleLapkin Make empty-line-after an early clippy lint r? ```@y21``` 95% a refiling of rust-lang/rust-clippy#13658 but for correctness it needed 2 extra methods in `rust_lint` which made it much easier to apply on `rust-lang/rust` than `rust-lang/rust-clippy`. Commits have been thoroughly reviewed on `rust-lang/clippy already`. The last two review comments there (about using `Option` and popping for assoc items have been applied here.
r? @y21
95% a refiling of rust-lang/rust-clippy#13658 but for correctness it needed 2 extra methods in
rust_lint
which made it much easier to apply onrust-lang/rust
thanrust-lang/rust-clippy
.Commits have been thoroughly reviewed on
rust-lang/clippy already
. The last two review comments there (about usingOption
and popping for assoc items have been applied here.