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 #95772

Merged
merged 123 commits into from
Apr 8, 2022
Merged

Update Clippy #95772

merged 123 commits into from
Apr 8, 2022

Conversation

flip1995
Copy link
Member

@flip1995 flip1995 commented Apr 7, 2022

dswij and others added 30 commits March 1, 2022 12:47
Taking a Diagnostic by move would break the usual pattern
`diag.label(..).emit()`.
…earth

Changelog for Rust 1.60.0 🦀 (Kudos to everyone who contributed!)

As always, I'm impressed by how much stuff happened in just one release. Seriously, kudos to everyone who contributed.

changelog: none
Remove `Session::one_time_diagnostic`

This is untracked mutable state, which modified the behaviour of queries.
It was used for 2 things: some full-blown errors, but mostly for lint declaration notes ("the lint level is defined here" notes).

It is replaced by the diagnostic deduplication infra which already exists in the diagnostic emitter.
A new diagnostic level `OnceNote` is introduced specifically for lint notes, to deduplicate subdiagnostics.

As a drive-by, diagnostic emission takes a `&mut` to allow dropping the `SubDiagnostic`s.
- should not fire if indexing with a constant block
- should not fire if indexing within a constant context
(const statement or const block)
add #[must_use] to functions of slice and its iterators.

Continuation of rust-lang#92853.

Tracking issue: rust-lang#89692.
Check if lhs < rhs in modulos in `identity_op`

Fixes rust-lang#8508

changelog: [`identity_op`] now checks for modulos, e.g. `1 % 3`
[`map_identity`] checks for needless `map_err`

Closes rust-lang#8478

changelog: [`map_identity`] checks for needless `map_err`
@flip1995
Copy link
Member Author

flip1995 commented Apr 7, 2022

@bors r- (fixing CI in a minute)

@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 Apr 7, 2022
@flip1995
Copy link
Member Author

flip1995 commented Apr 7, 2022

Wait, I don't understand this error. The .sf is a Lrc<SourceFile>, which is an Rc<SourceFile> IIUC. I also can't reproduce this locally. 🤔

flip1995 and others added 2 commits April 7, 2022 18:05
update_lints now understands raw strings in declare_clippy_lint
descriptions.

Co-authored-by: Alex Macleod <[email protected]>
Allow raw lint descriptions

update_lints now understands raw strings in declare_clippy_lint descriptions.

Supersedes  rust-lang#8655

cc `@Alexendoo` thanks for addressing this so quickly. I build a little bit simpler version of your patch. I don't think it really matters what `Literal` we're trying to tokenize, since we assume later, that it is some sort of `str`.

changelog: none
@Manishearth
Copy link
Member

@bors r+

@bors
Copy link
Contributor

bors commented Apr 7, 2022

📌 Commit 1390d014303fd52faad9424a7e801df0ea6c70e9 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 Apr 7, 2022
@rust-log-analyzer

This comment has been minimized.

@flip1995
Copy link
Member Author

flip1995 commented Apr 7, 2022

That didn't fix it.... I'm out of ideas here and already spent 5 hours with syncing and releasing Clippy today. I try to get back to this tomorrow or over the weekend.

@flip1995
Copy link
Member Author

flip1995 commented Apr 7, 2022

@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 Apr 7, 2022
@flip1995
Copy link
Member Author

flip1995 commented Apr 8, 2022

That should work now

@bors r=Manishearth,flip1995

@bors
Copy link
Contributor

bors commented Apr 8, 2022

📌 Commit b590d5c has been approved by Manishearth,flip1995

@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 Apr 8, 2022
@bors
Copy link
Contributor

bors commented Apr 8, 2022

⌛ Testing commit b590d5c with merge 2d5a21f...

@bors
Copy link
Contributor

bors commented Apr 8, 2022

☀️ Test successful - checks-actions
Approved by: Manishearth,flip1995
Pushing 2d5a21f to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Apr 8, 2022
@bors bors merged commit 2d5a21f into rust-lang:master Apr 8, 2022
@rustbot rustbot added this to the 1.62.0 milestone Apr 8, 2022
@rust-timer
Copy link
Collaborator

Finished benchmarking commit (2d5a21f): comparison url.

Summary:

  • Primary benchmarks: no relevant changes found
  • Secondary benchmarks: mixed results
Regressions 😿
(primary)
Regressions 😿
(secondary)
Improvements 🎉
(primary)
Improvements 🎉
(secondary)
All 😿 🎉
(primary)
count1 0 2 0 1 0
mean2 N/A 1.1% N/A -0.3% N/A
max N/A 1.9% N/A -0.3% N/A

If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf.

@rustbot label: -perf-regression

Footnotes

  1. number of relevant changes

  2. the arithmetic mean of the percent change

@flip1995 flip1995 deleted the clippyup branch April 10, 2022 21:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merged-by-bors This PR was explicitly merged by bors. 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.