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

Merged
merged 66 commits into from
Jun 24, 2020
Merged

Update Clippy #73660

merged 66 commits into from
Jun 24, 2020

Conversation

flip1995
Copy link
Member

No description provided.

DevinR528 and others added 30 commits June 8, 2020 15:59
cargo dev update lints

use if_chain

clean up alot, span_lint_and_sugg

find imported macros for sugg
how to compare macro to import path

add more imports to test
remove stdout, fix clippy warnings, fmtcar
Macro use sugg

changelog: Add auto applicable suggstion to macro_use_imports

fixes rust-lang#5275

<s>Where exactly is the `wildcard_imports_helper` I haven't been able to import anything ex.
`use lazy_static;` or something like for that I get version/compiler conflicts?</s>
Found it.

Should we also check for `#[macro_use] extern crate`, although this is still depended on for stuff like `rustc_private`?
if_same_then_else: don't assume multiplication is always commutative

changelog: Don't assume multiplication is always commutative in [`if_same_then_else`]

Fixes rust-lang#5698
They're unused now.
…, r=dtolnay

Migrate to numeric associated consts

The deprecation PR is rust-lang#72885

cc rust-lang#68490
cc rust-lang/rfcs#2700
flip1995 and others added 7 commits June 23, 2020 14:39
Fix typo

changelog: extending it's lifetime -> extending its lifetime
Rollup of 9 pull requests

Successful merges:

 - rust-lang#5178 (clippy-driver: pass all args to rustc if --rustc is present)
 - rust-lang#5705 (Downgrade unnested_or_patterns to pedantic)
 - rust-lang#5709 (Fix ICE in consts::binop)
 - rust-lang#5710 (typo)
 - rust-lang#5712 (Remove `bar` from blacklisted names)
 - rust-lang#5713 (Use lints in Clippy that are enabled in rustc bootstrap)
 - rust-lang#5716 (Fix typo in wildcard_imports)
 - rust-lang#5724 (redundant_pattern_matching: avoid non-`const fn` calls in const contexts)
 - rust-lang#5726 (Fix typo)

Failed merges:

r? @ghost

changelog: rollup
Add more specific GitHub issue templates

changelog: Make it easier to create feature request and bug reports with issue templates.
Improve end of expression check in for loop lints

changelog: none
Remove unused allowed unused attributes

changelog: none
@rust-highfive
Copy link
Collaborator

r? @nikomatsakis

(rust_highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jun 23, 2020
@nikomatsakis
Copy link
Contributor

r=me but the CI seems unhappy (maybe transient?)

@flip1995
Copy link
Member Author

This looks like a timeout or something? 🤔

@flip1995 flip1995 closed this Jun 23, 2020
@flip1995 flip1995 reopened this Jun 23, 2020
@flip1995
Copy link
Member Author

@nikomatsakis CI passed now. Seems that it was just a hickup.

@nikomatsakis
Copy link
Contributor

@bors r+

@bors
Copy link
Contributor

bors commented Jun 24, 2020

📌 Commit a2c0499 has been approved by nikomatsakis

@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 24, 2020
@Dylan-DPC-zz
Copy link

@bors p=1

@bors
Copy link
Contributor

bors commented Jun 24, 2020

⌛ Testing commit a2c0499 with merge 67100f6...

@bors
Copy link
Contributor

bors commented Jun 24, 2020

☀️ Test successful - checks-azure
Approved by: nikomatsakis
Pushing 67100f6 to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Jun 24, 2020
@bors bors merged commit 67100f6 into rust-lang:master Jun 24, 2020
@flip1995 flip1995 deleted the clippyup branch June 24, 2020 23:21
@flip1995 flip1995 mentioned this pull request Jul 14, 2020
Manishearth added a commit to Manishearth/rust that referenced this pull request Jul 14, 2020
Update Clippy

~~I'm not sure, if we can/should land this before beta is branched.~~ (Nvm, beta is already branched) The last Clippy update was 3 weeks ago: rust-lang#73660

This includes, besides other minor things:

- New lints
- One lint deprecation
- One lint was moved to pedantic
- Some FP fixes
- I think an ICE fix?

cc @Mark-Simulacrum

r? @Manishearth

---

We probably should also think of some process when and how often we should sync Clippy to the rust repo, so that we don't end up with those huge updates. Maybe every 2 weeks? Or even every week? cc @rust-lang/clippy
Manishearth added a commit to Manishearth/rust that referenced this pull request Jul 14, 2020
Update Clippy

~~I'm not sure, if we can/should land this before beta is branched.~~ (Nvm, beta is already branched) The last Clippy update was 3 weeks ago: rust-lang#73660

This includes, besides other minor things:

- New lints
- One lint deprecation
- One lint was moved to pedantic
- Some FP fixes
- I think an ICE fix?

cc @Mark-Simulacrum

r? @Manishearth

---

We probably should also think of some process when and how often we should sync Clippy to the rust repo, so that we don't end up with those huge updates. Maybe every 2 weeks? Or even every week? cc @rust-lang/clippy
@cuviper cuviper added this to the 1.46 milestone May 2, 2024
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.