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

Out of cycle Clippy update #93001

Merged
merged 28 commits into from
Jan 18, 2022
Merged

Out of cycle Clippy update #93001

merged 28 commits into from
Jan 18, 2022

Conversation

flip1995
Copy link
Member

I want to do an out-of-cycle sync for rust-lang/rust-clippy#8295, and possibly backport this to stable together with #92938. If this doesn't get backported to stable, then I at least want to backport it to beta.

r? @Manishearth

Jarcho and others added 23 commits January 12, 2022 13:03
…ef_to_type_aliases, r=llogiq

Apply `not_unsafe_ptr_arg_deref` to type aliases

changelog: Apply [`not_unsafe_ptr_arg_deref`] to type aliases
Fix `implicit_clone` for `&&T`

fixes rust-lang#8227

changelog: Don't lint `implicit_clone` on `&&T`
…5, r=Manishearth

Erase late bound regions in `iter_not_returning_iterator`

fixes rust-lang#8285

changelog: None
Update markdown-it version

Fixes improperly-escaped pipes in Markdown tables for the [documentation of bad_bit_mask](https://rust-lang.github.io/rust-clippy/master/index.html#bad_bit_mask) and [ineffective_bit_mask](https://rust-lang.github.io/rust-clippy/master/index.html#ineffective_bit_mask). A column pipe takes precedence over inline code markers, so some back ticks are displayed literally and the pipes need to be escaped. I found no other occurrences of the same problem when searching rust-clippy by ```\|.*`.*\|```.

changelog: Update markdown-it version
…am-procrastinating, r=giraffate

Update copyright year for Clippy (2022 edition)

At this point, I'm just searching for small things to do instead of sleeping or working on my bachelor thesis. 😅  Taking one day off will be fine 🙃

changelog: none
Handle implicit named arguments in `useless_format`

fixes rust-lang#8290

Ideally this would fix the macro parsing code to handle this, but this is a smaller change and easier to back port.

changelog: Handle implicit named arguments in `useless_format`
New lint: `iter_overeager_cloned`

Closes rust-lang#8202

changelog: New lint: [`iter_overeager_cloned`]
…hearth

Don't lint `if_same_then_else` with `if let` conditions

fixes rust-lang#7579

changelog: Don't lint `if_same_then_else` with `if let` conditions
rust-lang#8214 cmp_owned suggestion flips the comparison

changelog: ``[`cmp_owned`]`` fixes rust-lang#8214 so that the suggestion does not flip the comparison
@rust-highfive
Copy link
Collaborator

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 Jan 17, 2022
@flip1995 flip1995 changed the title Out of cycle Clippy update WIP: Out of cycle Clippy update Jan 17, 2022
@flip1995
Copy link
Member Author

Setting this to WIP, since we want to include one more PR.

bors and others added 2 commits January 17, 2022 12:08
issue rust-lang#8239: Printed hint for lint or_fun_call is cropped and does no…

fixes rust-lang/rust-clippy#8239

changelog: [`or_fun_call`]: if suggestion contains more lines than MAX_SUGGESTION_HIGHLIGHT_LINES it is stripped to one line
@flip1995 flip1995 changed the title WIP: Out of cycle Clippy update Out of cycle Clippy update Jan 17, 2022
@flip1995
Copy link
Member Author

Setting this to WIP, since we want to include one more PR.

Done!

@Manishearth
Copy link
Member

@bors r+ p=1

@bors
Copy link
Contributor

bors commented Jan 17, 2022

📌 Commit 0fc3fda 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 Jan 17, 2022
@bors
Copy link
Contributor

bors commented Jan 17, 2022

⌛ Testing commit 0fc3fda with merge 24917a3235171e072aa6a04598ae42bbd7d6b854...

@bors
Copy link
Contributor

bors commented Jan 17, 2022

💥 Test timed out

@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 Jan 17, 2022
@llogiq
Copy link
Contributor

llogiq commented Jan 17, 2022

@bors retry

@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 Jan 17, 2022
@rust-log-analyzer
Copy link
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
Copy link
Contributor

bors commented Jan 18, 2022

⌛ Testing commit 0fc3fda with merge e4ff903...

@bors
Copy link
Contributor

bors commented Jan 18, 2022

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

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Jan 18, 2022
@bors bors merged commit e4ff903 into rust-lang:master Jan 18, 2022
@rustbot rustbot added this to the 1.60.0 milestone Jan 18, 2022
@rust-timer
Copy link
Collaborator

Finished benchmarking commit (e4ff903): comparison url.

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

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

@rustbot label: -perf-regression

flip1995 pushed a commit to flip1995/rust that referenced this pull request Jan 27, 2022
Out of cycle Clippy update

I want to do an out-of-cycle sync for rust-lang/rust-clippy#8295, and possibly backport this to stable together with rust-lang#92938. If this doesn't get backported to stable, then I at least want to backport it to beta.

r? `@Manishearth`
bors added a commit to rust-lang-ci/rust that referenced this pull request Feb 23, 2022
…imulacrum

[stable] 1.59.0 artifacts (second round)

This backports (from 1.60, landed in rust-lang#93001):

*  Move return_self_not_must_use to pedantic rust-lang/rust-clippy#8302

Per a user report on the internals feedback thread, this lint is not behaving well in 1.59.

cc `@rust-lang/clippy` -- this is a stable backport of a patch, which we'll likely want to land in fairly short order to be in time for the release Thursday.

This PR also includes an adjustment to the release notes to reflect "Fix invalid special casing of the unreachable! macro rust-lang#93179".

r? `@Mark-Simulacrum`
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.