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

Merged
merged 71 commits into from
Mar 25, 2022
Merged

Update Clippy #95273

merged 71 commits into from
Mar 25, 2022

Conversation

flip1995
Copy link
Member

smoelius and others added 30 commits March 5, 2022 18:35
…some, r=camsteffen

Make `search_is_some`s suggestion `MachineApplicable`

My biggest PR to date, about 0.3 Lines have been changed!

Closes rust-lang/rust-clippy#8062

The suggestion seems to work well, as we've received no error reports since the implementation in December. This PR therefore promotes the suggestion to `MachineApplicable`. The tests already include `.fixed` files :)

changelog: [`search_is_some`]: Make more suggestions `MachineApplicable`
…ports-for-macros, r=llogiq

Allow `single_component_path_imports` for all macros

Closes: rust-lang/rust-clippy#7923

It can be useful to have `use macro_name` regardless of the visibility. This removes the visibility filter.

changelog: [`single_component_path_imports`]: no longer triggers on macros
Fix `unncessary_to_owned` false positive

Fix rust-lang#8507

changelog: none
…giraffate

Move iter_with_drain to nursery

cc rust-lang#8538 rust-lang#8539

r? `@giraffate`

changelog: Move [`iter_with_drain`] to nursery
[`collapsible_if`] fix typo in code-block kind specifier

*Please write a short comment explaining your change (or "none" for internal only changes)*

changelog: [`collapsible_if`] fix typo in code-block kind specifier
More `transmute_undefined_repr` fixes

fixes: rust-lang#8498
fixes: rust-lang#8501
fixes: rust-lang#8503

changelog: Allow `transumte_undefined_repr` between fat pointers and `(usize, usize)`
changelog: Allow `transumte_undefined_repr` when one side is a union
changelog: Fix `transumte_undefined_repr` on tuples with one non-zero-sized type.
Moved ``[try_err]`` to restriction

Fixes rust-lang#5757

changelog: Moved try_err lint to rescrition for rust-lang#5757
Signed-off-by: codehorseman <cricis@yeah.net>
FoseFx and others added 11 commits March 21, 2022 00:04
add new function `span_lint_and_sugg_` for edges in `clippy_utils::diagnostics`
fix suggestion on `[map_flatten]` being cropped causing possible information loss

fixes rust-lang#8506

Multi-line suggestion given by the lint is missing its bottom part, which could potentially contains useful information about the fix.

---

changelog: [`map_flatten`]: Long suggestions will now be splitup into two help messages
add `or_then_unwrap`

Closes rust-lang#8557

changelog: New lint [`or_then_unwrap`]
`match_same_arms` fix

fixes rust-lang#860
fixes rust-lang#1140

changelog: Don't lint `match_same_arms` when an interposing arm's pattern would overlap
`unnecessary_join` lint

changelog: Adds a lint called ``[`unnecessary_join`]`` that detects cases of `.collect::<Vec<String>>.join("")` or `.collect::<Vec<_>>.join("")` on an iterator, suggesting `.collect::<String>()` instead

Fixes: rust-lang/rust-clippy#8570

This is a reopen of rust-lang/rust-clippy#8573

changelog: add lint [`unnecessary_join`]
Rustup

r? `@ghost`

Nice small sync with only typo fixes

changelog: none
@rust-highfive
Copy link
Contributor

Some changes occurred in src/tools/clippy.

cc @rust-lang/clippy

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Mar 24, 2022
@Manishearth
Copy link
Member

@bors r+ p=2 rollup=never

@Dylan-DPC
Copy link
Member

@bors r=manishearth rollup=never p=2

@bors
Copy link
Collaborator

bors commented Mar 24, 2022

📌 Commit 3365e9a 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 Mar 24, 2022
@Dylan-DPC
Copy link
Member

@bors r=manishearth rollup=never p=2

@bors
Copy link
Collaborator

bors commented Mar 24, 2022

📌 Commit 3365e9a has been approved by manishearth

@bors
Copy link
Collaborator

bors commented Mar 24, 2022

⌛ Testing commit 3365e9a with merge 7941b3f...

@bors
Copy link
Collaborator

bors commented Mar 25, 2022

☀️ Test successful - checks-actions
Approved by: manishearth
Pushing 7941b3f to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Mar 25, 2022
@bors bors merged commit 7941b3f into rust-lang:master Mar 25, 2022
@rustbot rustbot added this to the 1.61.0 milestone Mar 25, 2022
@rust-timer
Copy link
Collaborator

Finished benchmarking commit (7941b3f): comparison url.

Summary: This benchmark run did not return any relevant results.

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

@rustbot label: -perf-regression

@flip1995 flip1995 deleted the clippyup branch March 25, 2022 10:27
flip1995 pushed a commit to flip1995/rust that referenced this pull request Apr 7, 2022
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.