Skip to content

Update Clippy - #98706

Merged
bors merged 174 commits into
rust-lang:masterfrom
flip1995:clippyup
Jul 1, 2022
Merged

Update Clippy#98706
bors merged 174 commits into
rust-lang:masterfrom
flip1995:clippyup

Conversation

@flip1995

Copy link
Copy Markdown
Member

ebobrowand others added 30 commits May 16, 2022 20:20
…that_are_quite_far_away_from_each_other, r=estebank
Hide irrelevant lines in suggestions to allow for suggestions that are far from each other to be shown
This is an attempt to fix suggestions one part of which is 6 lines or more far from the first. I've noticed "the problem" (of not showing some parts of the suggestion) here: rust-lang#97759 (comment).
I'm not sure about the implementation (this big closure is just bad and makes already complicated code even more so), but I want to at least discuss the result.
Here is an example of how this changes the output:
Before:
```text
help: consider enclosing expression in a block
|
3 ~ 'l: { match () { () => break 'l,
4 |
5 |
6 |
7 |
8 |
...
```
After:
```text
help: consider enclosing expression in a block
|
3 ~ 'l: { match () { () => break 'l,
4 |
...
31|
32~ } };
|
```
r? `@estebank`
`@rustbot` label +A-diagnostics +A-suggestion-diagnostics
…to-string, r=Dylan-DPC
Remove the rest of unnecessary `to_string`
I removed most of unnecessary `to_string` in rust-lang#98043. This patch removes the rest of them I missed.
Update description in clippy_lints/src/default_iter_empty.rs
Co-authored-by: Fridtjof Stoldt <xFrednet@gmail.com>
Update clippy_lints/src/default_iter_empty.rs
Co-authored-by: Alex Macleod <alex@macleod.io>
Update clippy_lints/src/default_iter_empty.rs
Co-authored-by: Alex Macleod <alex@macleod.io>
renamed default_iter_empty to default_instead_of_iter_empty
Avoid duplicate messages
add tests for regression
rewrite 'Why is this bad?'
cargo dev fmt
delete default_iter_empty lint in renamed_lint.rs
rewrite a message in the suggestion
cargo dev update_lints --check
diagnostics: remove trailing spaces
Remove few occurrences of trailing spaces and drive by fix of needless alloc of const string.
feat(lint): add default_iter_empty
closerust-lang#8915
This PR adds `default_iter_empty` lint.
This lint checks `std::iter::Empty::default()` and replace with `std::iter::empty()`.
Thank you in advance.
---
changelog: add `default_instead_of_iter_empty` lint.
… r=m-ou-se
once cell renamings
This PR does the renamings proposed in rust-lang#74465 (comment)
- Move/rename `lazy::{OnceCell, Lazy}` to `cell::{OnceCell, LazyCell}`
- Move/rename `lazy::{SyncOnceCell, SyncLazy}` to `sync::{OnceLock, LazyLock}`
(I used `Lazy...` instead of `...Lazy` as it seems to be more consistent, easier to pronounce, etc)
```@rustbot``` label +T-libs-api -T-libs
@matthiaskrgr

Copy link
Copy Markdown
Member

Nevermind, can't merge this and #98639 at the same time 😆

matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request Jun 30, 2022
@matthiaskrgr

Copy link
Copy Markdown
Member

let's try this again 🙃 @bors retry

@bors

bors commented Jun 30, 2022

Copy link
Copy Markdown
Collaborator

⌛ Testing commit 5fead7a with merge 8494840af3938fb3a3434aae0c4de5069fa31f81...

@rust-log-analyzer

Copy link
Copy Markdown
Collaborator

A job failed! Check out the build log: (web)(plain)

Click to see the possible cause of the failure (guessed by this bot)

@bors

bors commented Jun 30, 2022

Copy link
Copy Markdown
Collaborator

💥 Test timed out

@borsbors 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 30, 2022
@matthiaskrgr

Copy link
Copy Markdown
Member

@bors retry timeout

@borsbors 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 30, 2022
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request Jun 30, 2022
@rust-log-analyzer

Copy link
Copy Markdown
Collaborator

A job failed! Check out the build log: (web)(plain)

Click to see the possible cause of the failure (guessed by this bot)

@bors

bors commented Jul 1, 2022

Copy link
Copy Markdown
Collaborator

⌛ Testing commit 5fead7a with merge acdcdfb...

@bors

bors commented Jul 1, 2022

Copy link
Copy Markdown
Collaborator

☀️ Test successful - checks-actions
Approved by: Dylan-DPC
Pushing acdcdfb to master...

@borsbors added the merged-by-bors This PR was explicitly merged by bors. label Jul 1, 2022
@bors
bors merged commit acdcdfb into rust-lang:masterJul 1, 2022
@rustbotrustbot added this to the 1.64.0 milestone Jul 1, 2022
@rust-timer

Copy link
Copy Markdown
Collaborator

Finished benchmarking commit (acdcdfb): comparison url.

Instruction count

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

Max RSS (memory usage)

Results
  • Primary benchmarks: mixed results
  • Secondary benchmarks: 😿 relevant regressions found
mean1maxcount2
Regressions 😿
(primary)
2.1%2.1%1
Regressions 😿
(secondary)
2.7%2.8%2
Improvements 🎉
(primary)
-1.7%-1.7%1
Improvements 🎉
(secondary)
N/AN/A0
All 😿🎉 (primary)0.2%2.1%2

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. number of relevant changes

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merged-by-borsThis PR was explicitly merged by bors.S-waiting-on-borsStatus: 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.

20 participants

@flip1995@rustbot@Dylan-DPC@bors@matthiaskrgr@rust-log-analyzer@rust-timer@Manishearth@rust-highfive@ebobrow@DevAccentor@botahamec@kyoto7250@klensy@WaffleLapkin@TaKO8Ki@Alexendoo@unvalley@hellow554@PrestonFrom