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

Update Clippy #83012

Merged
merged 273 commits into from
Mar 13, 2021
Merged

Update Clippy #83012

merged 273 commits into from
Mar 13, 2021

Conversation

flip1995
Copy link
Member

Bi-weekly Clippy sync.

r? @Manishearth

anall and others added 30 commits February 26, 2021 19:13
…r=camsteffen

added new lint `owned_to_owned`

Adding new lint `owned_to_owned`

Creating draft PR to have this looked over.
I think this takes all advice I received into account.

I did have to update the `redundant_clone` test to ignore this lint -- I felt that was the safest action.

closes: rust-lang#6715
changelog: added new lint `implicit_clone`
Fix ICEs 6792 and 6793

fixes rust-lang#6792, fixes rust-lang#6793.
r? `@matthiaskrgr`

Fixes the ICEs by replacing `TyCtxt::type_of` with `TypeckResults::expr_ty`.

changelog: none
Remove workspace and fix dogfood (again)

changelog: none

In response to rust-lang/rust-clippy#6733 (comment)
…ith the diagnostics convention of the rustc dev guide

lint message should not start with uppercase letters
lint messages should not have punctuation at the end of the last line

https://rustc-dev-guide.rust-lang.org/diagnostics.html#diagnostic-structure

The test reads through all the .stderr files in the testsuit and checks lint messages that start with "help: ", "error: " etc.
There is also an exception list for special messages that are deemed acceptable.

changelog: make sure lint messages conform with the rustc dev guide and add test
tests: add test that roughly ensures that our lint messages conform with the diagnostics convention of the rustc dev guide

lint message should not start with uppercase letters
lint messages should not have punctuation at the end of the last line

https://rustc-dev-guide.rust-lang.org/diagnostics.html#diagnostic-structure

The test reads through all the .stderr files in the testsuit and checks lint messages that start with "help: ", "error: " etc.
There is also an exception list for special messages that are deemed acceptable.

changelog: make sure lint messages conform with the rustc dev guide and add test
…olds the job limit and paths to the sources and log files
…o the source files of a warning into the lintcheck log

This is more convenient when reviewing new lint warnings that popped up in the logs
JohnTitor added a commit to JohnTitor/rust that referenced this pull request Mar 11, 2021
Update Clippy

Bi-weekly Clippy sync.

r? `@Manishearth`
@JohnTitor
Copy link
Member

Failed in rollup: #83038 (comment)
Looks like GHA wasn't triggered on this PR?
@bors r-

@bors bors added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Mar 11, 2021
@flip1995 flip1995 closed this Mar 11, 2021
@flip1995 flip1995 reopened this Mar 11, 2021
@flip1995
Copy link
Member Author

@bors rollup=iffy

@flip1995
Copy link
Member Author

    Checking clippy_lints v0.1.52 (/checkout/src/tools/clippy/clippy_lints)
error: unnecessary parentheses around pattern
   --> src/tools/clippy/clippy_lints/src/loops/manual_memcpy.rs:206:13
    |
206 |         let (Sugg::NonParen(s) | Sugg::MaybeParen(s) | Sugg::BinOp(_, s)) = &self.0;
    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses
    |
    = note: `-D unused-parens` implied by `-D warnings`
error: aborting due to previous error

error: could not compile `clippy_lints`

Uh that looks weird. In the rust->Clippy sync direction, I was told to add them. Seems like something changed here and those parentheses aren't necessary anymore? Just seems like unfortunate timing. I will fix this tomorrow.

@rust-log-analyzer

This comment has been minimized.

This will be removed in the next sync, once beta is at 1.52. Until then
this hack avoids to put `cfg(bootstrap)` into Clippy.
@flip1995
Copy link
Member Author

@Manishearth This should now be ready. 99d0519 fixed the issue. I could've also fixed it by putting #[cfg(bootstrap)] in the code, but I wanted to avoid this in Clippy.

@Manishearth
Copy link
Member

@bors r+

Good call

@bors
Copy link
Contributor

bors commented Mar 12, 2021

📌 Commit 99d0519 has been approved by Manishearth

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Mar 12, 2021
Dylan-DPC-zz pushed a commit to Dylan-DPC-zz/rust that referenced this pull request Mar 12, 2021
Update Clippy

Bi-weekly Clippy sync.

r? `@Manishearth`
bors added a commit to rust-lang-ci/rust that referenced this pull request Mar 13, 2021
Rollup of 6 pull requests

Successful merges:

 - rust-lang#82984 (Simplify ast block lowering)
 - rust-lang#83012 (Update Clippy)
 - rust-lang#83020 (Emit the enum range assumption if the range only contains one element)
 - rust-lang#83037 (Support merge_functions option in NewPM since LLVM >= 12)
 - rust-lang#83052 (updated vulnerable deps)
 - rust-lang#83059 (Allow configuring `rustdoc --disable-minification` in config.toml)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup
@bors
Copy link
Contributor

bors commented Mar 13, 2021

⌛ Testing commit 99d0519 with merge 4d76b4c...

@bors bors merged commit 7f319c7 into rust-lang:master Mar 13, 2021
@rustbot rustbot added this to the 1.52.0 milestone Mar 13, 2021
@flip1995 flip1995 deleted the clippyup branch March 13, 2021 12:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.