Skip to content

Update Clippy - #90564

Merged
bors merged 108 commits into
rust-lang:masterfrom
flip1995:clippyup
Nov 4, 2021
Merged

Update Clippy#90564
bors merged 108 commits into
rust-lang:masterfrom
flip1995:clippyup

Conversation

@flip1995

Copy link
Copy Markdown
Member

dswijand others added 30 commits October 4, 2021 11:02
The bug was dues to the constant bytes being compared instead of their
values. This meant that negative values were being treated as larger
than some positive values.
Fixesrust-lang#7829
I broke this script in rust-lang#7502, so that the stable symlink isn't generated
anymore. This reverts this change.
…amsteffen
Fix FP: no lint when cast is coming from `signum` method call for `cast_possible_truncation` lint
Fixes a FP when cast is coming from `signum` method call
fixes: rust-lang#5395
changelog: [`cast_possible_truncation`] Fix FP when cast is coming from `signum` method call
Make useless_format recognize format!("")
Closesrust-lang#7796
changelog: [`useless_format`] Fix for false negitive for `format!("")`
Fix deploy script
I broke this script in rust-lang#7502, so that the stable symlink isn't generated
anymore. This reverts this change.
changelog: none
missing_safety_doc: Handle 'implementation safety' headers as well
We hit some FPs on this in `yoke`, it's somewhat normal to mark trait impl safety with "implementation safety". We could also broaden the check for headers which contain the word "safety" somehow, or split out impl safety stuff to only apply to traits.
changelog: handle 'implementation safety' headers in `missing_safety_doc`
…vidtwco
Don't mark for loop iter expression as desugared
We typically don't mark spans of lowered things as desugared. This helps Clippy rightly discern when code is (not) from expansion. This was discovered by ``@flip1995`` at rust-lang/rust-clippy#7789 (comment).
Properly consider uncased and titlecased characters.
Fixesrust-lang#7863.
Fix typo on utils/lib
Found some typo when looking through `clippy_utils/src/lib.rs` 🙂
changelog: none
Update rustfmt
changelog: none
Something changed with `rustup update nightly`
…=flip1995
recommend new branch or deleting branch when synching from rust
changelog: none
r? `@flip1995` - thanks again for your assistance in zulip earlier, figured I'd take a pass at incorporating your recommendation to delete or use a new branch into the excellent docs here
Update CHANGELOG
r? `@xFrednet` (you showed to be a reliable reviewer for this :) )
[Rendered](https://github.com/flip1995/rust-clippy/blob/changelog/CHANGELOG.md)
changelog: none
Also updated one configuration for nicer formatting
borsand others added 12 commits November 2, 2021 17:02
…Frednet
Advise to put a :: prefix inside the ticks
Fixesrust-lang#7914.
changelog: Keep an initial `::` when [`doc_markdown`] suggests to use ticks
…Frednet
Add suggestion to missing backticks error
changelog: Add a machine applicable suggestion for the [`doc_markdown`] missing backticks lint
closes: rust-lang#7737
…r=flip1995
Update Clippy dependencies
Clippy has two outdated dependencies, where one indirect dependency has been flagged by rustsec for dropping a lifetime. See [RUSTSEC-2020-0146](https://rustsec.org/advisories/RUSTSEC-2020-0146). This PR updates these dependencies.
With previous dependency updates, it was tried to prevent duplicates in the `Cargo.lock` file of rust-lang/rust. I've tried to keep this in mind with this update.
* Dependency `semver`
* Used in `src/tools/cargo/Cargo.toml` as version `1.0.3`
* Used in `src/tools/rust-analyzer/crates/project_model/Cargo.toml` as version `1`
* Updated in Clippy from `0.11` to `1.0` (Clippy usually defines the major and minor patch version). The `Cargo.lock` file lists `1.0.3` which is one patch version behind the most recent one but prevents a duplicate with cargo's pinned version.
* Dependency `cargo_metadata`
* Used in several tools as `0.14`
* Used in `src/tools/tidy` and `src/tools/rls` as `0.12`
* Updated in Clippy from `0.12` to `0.14`
All updates to the `Cargo.lock` have been done automatically by `x.py`.
There are still some tools with these outdated dependencies. Clippy didn't require any changes, and it would be likely that the others could also be updated without any problem. Let me know if I should try to update them as well 🙃.
Keep up the good work, whoever is reading this 🦀
---
For Clippy:
changelog: none
lower_case in span_lint_and_help document
changelog: none
@rust-highfive

Copy link
Copy Markdown
Contributor

Some changes occurred in src/tools/clippy.

cc @rust-lang/clippy

@rust-highfiverust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Nov 4, 2021
@Manishearth

Copy link
Copy Markdown
Member

@bors r+

@bors

bors commented Nov 4, 2021

Copy link
Copy Markdown
Collaborator

📌 Commit 4e5319b has been approved by Manishearth

@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 Nov 4, 2021
@Manishearth

Copy link
Copy Markdown
Member

@bors p=1

@bors

bors commented Nov 4, 2021

Copy link
Copy Markdown
Collaborator

⌛ Testing commit 4e5319b with merge 4961b10...

@bors

bors commented Nov 4, 2021

Copy link
Copy Markdown
Collaborator

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

@borsbors added the merged-by-bors This PR was explicitly merged by bors. label Nov 4, 2021
@bors
bors merged commit 4961b10 into rust-lang:masterNov 4, 2021
@rustbotrustbot added this to the 1.58.0 milestone Nov 4, 2021
@rust-timer

Copy link
Copy Markdown
Collaborator

Finished benchmarking commit (4961b10): 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

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@rust-highfive@Manishearth@bors@rust-timer@rustbot@dswij@camsteffen@ThibsG@aDotInTheVoid@JohnTitor@Herschel@xFrednet@calebcartwright@estebank@llogiq@devonhollowood@Alexendoo@giraffate@mbStavola