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

Merged
merged 126 commits into from
Jun 6, 2022
Merged

Update Clippy #97730

merged 126 commits into from
Jun 6, 2022

Conversation

flip1995
Copy link
Member

@flip1995 flip1995 commented Jun 4, 2022

r? @Manishearth

This includes a bit bigger Cargo.lock update.

cameron1024 and others added 30 commits February 1, 2022 11:21
Drop Tracking: Implement `fake_read` callback

This PR updates drop tracking's use of `ExprUseVisitor` so that we treat `fake_read` events as borrows. Without doing this, we were not handling match expressions correctly, which showed up as a breakage in the `addassign-yield.rs` test. We did not previously notice this because we still had rather large temporary scopes that we held borrows for, which changed in rust-lang#94309.

This PR also includes a variant of the `addassign-yield.rs` test case to make sure we continue to have correct behavior here with drop tracking.

r? `@nikomatsakis`
Auto-detect preferred colorscheme

changelog: none

This just sets the theme to coal by default if the user prefers dark color schemes.

r? `@xFrednet`
previously only vecs were supported
remove region_scope_tree from RegionCtxt

Apply suggestions from code review

Co-authored-by: Niko Matsakis <niko@alum.mit.edu>
Remove feature: `crate` visibility modifier

FCP completed in rust-lang#53120.
Strip `clippy::` prefix from search strings

changelog: none
closes: rust-lang#8865

r? `@xFrednet`
…rk-Simulacrum

Lifetime variance fixes for clippy

rust-lang#97287 migrates rustc to a `Ty` type that is invariant over its lifetime `'tcx`, so I need to fix a bunch of places that assume that `Ty<'a>` and `Ty<'b>` can be shortened to some common lifetime.

This is doable, since everything is already `'tcx`, so all this PR does is be a bit more explicit that elided lifetimes are actually `'tcx`.

Split out from rust-lang#97287 so the clippy team can review independently.
update dependencies

changelog: none

Updating some dependencies, but the biggest one is clap to v3, but without using the derive struct thingy.
…-obk

Refactor call terminator to always include destination place

In rust-lang#71117 people seemed to agree that call terminators should always have a destination place, even if the call was guaranteed to diverge. This implements that. Unsurprisingly, the diff touches a lot of code, but thankfully I had to do almost nothing interesting. The only interesting thing came up in const prop, where the stack frame having no return place was also used to indicate that the layout could not be computed (or similar). I replaced this with a ZST allocation, which should continue to do the right things.

cc `@RalfJung` `@eddyb` who were involved in the original conversation

r? rust-lang/mir-opt
Closes rust-lang#1595

changelog: Add no_effect_replace lint.
The import of `clippy_utils::is_type_diagnostic_item` would cause this
error:

```
error[E0432]: unresolved import `clippy_utils::is_type_diagnostic_item
```
New lint `no_effect_replace`

Closes rust-lang#1595

Signed-off-by: Federico Guerinoni <guerinoni.federico@gmail.com>

changelog: Add [`no_effect_replace`] lint.
@bors
Copy link
Contributor

bors commented Jun 4, 2022

⌛ Testing commit 586cbd0 with merge b69e546c2c8cd386ff25f08dde638f8b0944dbf6...

@bors
Copy link
Contributor

bors commented Jun 4, 2022

💔 Test failed - checks-actions

@bors bors added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Jun 4, 2022
@rust-log-analyzer

This comment has been minimized.

@flip1995
Copy link
Member Author

flip1995 commented Jun 6, 2022

Not sure if that is the correct fix or if it works. I don't have access to a windows machine to test it, so @bors try

@bors
Copy link
Contributor

bors commented Jun 6, 2022

⌛ Trying commit 9525e0c with merge 05b9818f249e102127c58ea7c35f640c5f696114...

@flip1995
Copy link
Member Author

flip1995 commented Jun 6, 2022

Oh a try run doesn't run the all of the runners. In that case, I'm just waiting on a review.

@bors
Copy link
Contributor

bors commented Jun 6, 2022

☀️ Try build successful - checks-actions
Build commit: 05b9818f249e102127c58ea7c35f640c5f696114 (05b9818f249e102127c58ea7c35f640c5f696114)

@matthiaskrgr
Copy link
Member

Hmm, I don't feel confident enough to r+ that last commit tbh, anyone else who has a better understanding of this stuff? 😅

@Manishearth
Copy link
Member

@bors r+

I think rustc is in general fine with parking_lot deps

@bors
Copy link
Contributor

bors commented Jun 6, 2022

📌 Commit 9525e0c 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-review Status: Awaiting review from the assignee but also interested parties. labels Jun 6, 2022
@bors
Copy link
Contributor

bors commented Jun 6, 2022

⌛ Testing commit 9525e0c with merge 50b0025...

@bors
Copy link
Contributor

bors commented Jun 6, 2022

☀️ Test successful - checks-actions
Approved by: Manishearth
Pushing 50b0025 to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Jun 6, 2022
@bors bors merged commit 50b0025 into rust-lang:master Jun 6, 2022
@rustbot rustbot added this to the 1.63.0 milestone Jun 6, 2022
@rust-timer
Copy link
Collaborator

Finished benchmarking commit (50b0025): comparison url.

Instruction count

  • Primary benchmarks: 🎉 relevant improvements found
  • Secondary benchmarks: no relevant changes found
mean1 max count2
Regressions 😿
(primary)
N/A N/A 0
Regressions 😿
(secondary)
N/A N/A 0
Improvements 🎉
(primary)
-0.3% -0.3% 6
Improvements 🎉
(secondary)
N/A N/A 0
All 😿🎉 (primary) -0.3% -0.3% 6

Max RSS (memory usage)

Results
  • Primary benchmarks: 😿 relevant regression found
  • Secondary benchmarks: mixed results
mean1 max count2
Regressions 😿
(primary)
2.5% 2.5% 1
Regressions 😿
(secondary)
3.2% 4.3% 2
Improvements 🎉
(primary)
N/A N/A 0
Improvements 🎉
(secondary)
-2.1% -2.1% 1
All 😿🎉 (primary) 2.5% 2.5% 1

Cycles

This benchmark run did not return any relevant results for this metric.

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

@rustbot label: -perf-regression

Footnotes

  1. the arithmetic mean of the percent change 2

  2. number of relevant changes 2

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.