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

Merged
merged 141 commits into from
Sep 9, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
141 commits
Select commit Hold shift + click to select a range
ede977c
Update suggestion in case of index for unnecessary_operation lint
F3real Aug 9, 2021
8e563b5
Bless clippy tests.
m-ou-se Aug 12, 2021
1ad5464
Merge commit '7bfc26ec8e7a454786668e7e52ffe527fc649735' into clippyup
flip1995 Aug 12, 2021
fd5427b
Rollup merge of #87885 - m-ou-se:edition-guide-links, r=rylev
GuillaumeGomez Aug 12, 2021
09b7745
Updated lint message for `rc_mutex`
xFrednet Aug 12, 2021
206741b
Use `avoid_breaking_exported_api` for `types` module lints
xFrednet Aug 12, 2021
c02dcd5
Update type UI tests to use private items
xFrednet Aug 12, 2021
b4d76b4
Auto merge of #7560 - xFrednet:7289-configuration-for-every-type-lint…
bors Aug 12, 2021
456e48f
Auto merge of #87954 - flip1995:clippyup, r=Manishearth
bors Aug 13, 2021
e9f56f9
Add false positive test for iterator method
dswij Aug 13, 2021
91b598a
Fix false positive on `filter_next`
dswij Aug 13, 2021
7c5487d
Auto merge of #7562 - dswij:filter-next-false-positive, r=xFrednet
bors Aug 13, 2021
80bff87
move Constness into TraitPredicate
fee1-dead Jul 22, 2021
3c8eaa8
Downgrade option_if_let_else to nursery
dtolnay Aug 14, 2021
4838c78
Improve `manual_map` and `map_entry`
Jarcho Aug 1, 2021
251dd30
Improve `manual_map`
Jarcho Aug 4, 2021
9500974
Fix tracking of which locals would need to be captured in a closure.
Jarcho Aug 9, 2021
5e4d8b4
Improve doc for `can_move_expr_to_closure_no_visit`
Jarcho Aug 9, 2021
10c0460
update stderr messages
Jarcho Aug 14, 2021
5449e23
Auto merge of #7568 - dtolnay-contrib:ifletelse, r=llogiq
bors Aug 15, 2021
b97d4c0
Introduce hir::ExprKind::Let - Take 2
c410-f3r Aug 8, 2021
997ddbb
Lintcheck always copies in a fresh crate when provided with a crate path
rukai Jul 31, 2021
d4e2fca
Auto merge of #7521 - rukai:fix_lintcheck_local_path_handling, r=cams…
bors Aug 16, 2021
f0444d7
Use `each_binding_or_first` in `capture_local_usage`
Jarcho Aug 16, 2021
3f0c977
Auto merge of #7531 - Jarcho:manual_map_7413, r=camsteffen
bors Aug 16, 2021
295225b
Uplift the `invalid_atomic_ordering` lint from clippy to rustc
thomcc Dec 2, 2020
d9c3f0d
Auto merge of #84039 - jyn514:uplift-atomic-ordering, r=wesleywiser
bors Aug 16, 2021
711c5cb
Add false positive test for `manual_flatten`
dswij Aug 14, 2021
a09bc1b
Check `if let` expr usage in `manual_flatten`
dswij Aug 14, 2021
983e5b8
Auto merge of #7566 - dswij:manual-flatten-use, r=xFrednet
bors Aug 16, 2021
8cf6dae
Add `for_each_local_usage`. Switch `LocalUsedVisitor` to a function.
Jarcho Jun 7, 2021
a7f376f
Add lint `manual_split_once`
Jarcho Jul 17, 2021
aab3267
Update docs for `manual_split_once`
Jarcho Aug 15, 2021
d5e51db
clippy: Fix format_args expansion parsing
camsteffen Jul 16, 2021
8b3ca9a
Fix `option_if_let_else`
Jarcho Aug 16, 2021
3c6c7d5
Update docs for `expl_impl_clone_on_copy`. Bug was fixed in 879fa5c97…
Jarcho Aug 16, 2021
c50e6e4
Auto merge of #7574 - Jarcho:expl_impl_clone_on_copy_doc, r=giraffate
bors Aug 17, 2021
c01aa64
Small documentation update for the new metadata_collector
xFrednet Aug 17, 2021
cde7e6b
Auto merge of #7578 - xFrednet:7172-update-some-docs, r=camsteffen
bors Aug 17, 2021
1fc1aee
Auto merge of #7565 - Jarcho:manual_split_once, r=llogiq
bors Aug 17, 2021
4123fed
remove box_syntax uses from cranelift and tools
hellow554 Aug 6, 2021
ae02282
Fix clippy let expressions fallout
camsteffen Aug 19, 2021
5fec618
introduce a Coerce predicate
nikomatsakis Nov 21, 2020
cd4bf7f
cleanup: `Span::new` -> `Span::with_lo`
petrochenkov Aug 21, 2021
e5fe462
Auto merge of #88163 - camsteffen:collapsible-match-fix, r=Manishearth
bors Aug 22, 2021
c860718
Fix typos “a”→“an”
steffahn Aug 22, 2021
21da42c
Fix more “a”/“an” typos
steffahn Aug 22, 2021
8b6529e
Fix typos “an”→“a” and a few different ones that appeared in the same…
steffahn Aug 22, 2021
5868e28
Rollup merge of #88211 - petrochenkov:withhilo, r=jyn514
GuillaumeGomez Aug 22, 2021
0a021d5
Add new lints `negative_feature_names` and `redundant_feature_names`
Labelray Aug 6, 2021
22606e7
Auto merge of #7539 - Labelray:master, r=camsteffen
bors Aug 23, 2021
68b4a43
Remove stderr limit
camsteffen Aug 23, 2021
6ca0007
Auto merge of #7593 - camsteffen:remove-stderr-limit, r=Manishearth
bors Aug 23, 2021
2f73776
Move branches_sharing_code to nursery
camsteffen Aug 23, 2021
4c847c0
Rollup merge of #88230 - steffahn:a_an, r=oli-obk
m-ou-se Aug 23, 2021
15b1c6f
Auto merge of #7595 - camsteffen:branches-sharing-nursery, r=Manishearth
bors Aug 23, 2021
72df99a
Auto merge of #83302 - camsteffen:write-piece-unchecked, r=dtolnay
bors Aug 23, 2021
641be55
redundant_allocation: fix 7487
lengyijun Aug 22, 2021
87c6f32
Auto merge of #7592 - lengyijun:redundant_allocation, r=camsteffen
bors Aug 24, 2021
31738b1
Add module_style lint to restriction
DevinR528 Jul 30, 2021
3051773
Auto merge of #7453 - F3real:assume_function_calls_have_side_effect, …
bors Aug 25, 2021
10909ae
Updated issue templates(formatting and rustbot label reference)
xFrednet Aug 25, 2021
de80188
Auto merge of #7543 - DevinR528:disallowed-mod, r=Manishearth
bors Aug 25, 2021
4d627fc
require a `tcx` for `TypeVisitor`
lcnr Mar 13, 2021
19d1fe2
make unevaluated const substs optional
lcnr Mar 15, 2021
b1786f6
add `tcx` to `fn walk`
lcnr Jul 17, 2021
afd892a
update `TypeFlags` to deal with missing ct substs
lcnr Jul 17, 2021
c6e4202
Set applicability of needless_collect to MaybeIncorrect
flip1995 Aug 26, 2021
86e92c0
Update common tool docs on type implement trait check
dswij Aug 18, 2021
f0cb8a7
Update doc/common_tools_writing_lints.md
dswij Aug 26, 2021
387dbd7
Auto merge of #7583 - dswij:match-trait-docs, r=xFrednet
bors Aug 26, 2021
a4a3f61
Auto merge of #7602 - flip1995:needless_collect_appl, r=xFrednet
bors Aug 26, 2021
3e5dcba
Small cleanup of `option_if_let_else` and additional tests.
Jarcho Aug 26, 2021
c6c1f32
Path remapping: Make behavior of diagnostics output dependent on pres…
michaelwoerister Aug 26, 2021
5e1e9b0
Auto merge of #7600 - xFrednet:0000-update-issue-templates, r=camsteffen
bors Aug 27, 2021
8c4056f
Treat macros as HIR items
inquisitivecrystal Jul 31, 2021
c8262ad
Teach tools that macros are now HIR items
inquisitivecrystal Aug 5, 2021
0b526fd
rename const_evaluatable_checked to generic_const_exprs
BoxyUwU Aug 25, 2021
fd8b150
`feature(const_generics)` -> `feature(const_param_types)`
lcnr Aug 27, 2021
fd30241
Auto merge of #7573 - Jarcho:option_if_let_else, r=giraffate
bors Aug 30, 2021
78bf4ac
Fix clippy for let-else
camsteffen Jul 25, 2021
f75d1b2
Check for Not trait implementation
xordi Aug 26, 2021
abbcea8
Add new ui tests
xordi Aug 26, 2021
aee4f1f
Fix CI errors
xordi Aug 26, 2021
83f1454
Fix function and variable names
xordi Aug 31, 2021
87c375f
Auto merge of #7605 - xordi:issue-7548-fix, r=giraffate
bors Aug 31, 2021
0fa9bf4
Reference new diagnostic item docs in our docs :)
xFrednet Sep 1, 2021
6a9549c
Update README.md
unrealapex Sep 1, 2021
8f7c249
rustc_target: move `LayoutOf` to `ty::layout`.
eddyb Aug 30, 2021
95d91d6
Auto merge of #7617 - xFrednet:0000-link-diag-item-docs, r=giraffate
bors Sep 2, 2021
849f0a1
Auto merge of #7619 - UnrealApex:patch-1, r=flip1995
bors Sep 2, 2021
61bb967
Merge remote-tracking branch 'upstream/master' into rustup2
flip1995 Sep 2, 2021
5722a7d
Fix manual_match with let-expressions
camsteffen Aug 26, 2021
588367b
Fix dogfood
camsteffen Aug 26, 2021
c7c2036
Fix remaining dogfood errors
flip1995 Aug 26, 2021
c2bb313
Add higher docs and remove some unneeded fields
camsteffen Aug 27, 2021
8bf2940
Fix matadata collection configuration formatting
xFrednet Aug 28, 2021
fb6839d
Bump nightly version -> 2021-09-02
flip1995 Sep 2, 2021
01b17af
Fix fallout from re-applying patches
flip1995 Sep 2, 2021
a8c2c7b
Auto merge of #7604 - flip1995:rustup, r=Manishearth
bors Sep 2, 2021
a0152da
Auto merge of #88363 - michaelwoerister:remapped-diagnostics, r=estebank
bors Sep 3, 2021
03d3131
Extend unnecessary_unwrap to look for expect in addition to unwrap
shepmaster Aug 18, 2021
b477543
Adjust the output of unnecessary_unwrap and provide a suggestion
shepmaster Aug 18, 2021
265b8ec
Reorder approx_consts constant to match rust docs
Sep 3, 2021
a23af89
Make `approx_const` MSRV aware
Sep 3, 2021
9ebd012
Updating issue templates again for rustbot
xFrednet Sep 3, 2021
169aea6
Correct link in documentation for the file `clippy_lints::utils::conf`
xFrednet Sep 3, 2021
6764fde
Fix #88256, remove duplicated diagnostic
chenyukang Sep 4, 2021
b2f01ef
Fix documentation of eval_order_dependence
chansuke Sep 4, 2021
4184cc3
needless_option_as_deref
lengyijun Aug 24, 2021
8221f9e
add derivable impls lint
HKalbasi Aug 16, 2021
f771927
Auto merge of #7584 - shepmaster:unnecessary_expect, r=camsteffen
bors Sep 4, 2021
a8c269a
Auto merge of #7570 - HKalbasi:derivable-impls, r=camsteffen
bors Sep 4, 2021
37af742
Update clippy_lints/src/needless_option_as_deref.rs
lengyijun Sep 5, 2021
4ee9ec9
Add MSRV to `approx_constant` documentation
Sep 5, 2021
19d8a3e
Improve `approx_constant` output
Sep 5, 2021
62b4612
Avoid slice indexing in Clippy (down with the ICEs)
xFrednet Sep 4, 2021
e5ae3f5
Auto merge of #7629 - mikerite:fix-7623-2, r=xFrednet
bors Sep 5, 2021
df7e63b
Auto merge of #7627 - xFrednet:0000-updating-issue-templates-again, r…
bors Sep 5, 2021
ad8610d
Auto merge of #88499 - eddyb:layout-off, r=nagisa
bors Sep 5, 2021
051286d
Auto merge of #7638 - xFrednet:7569-avoid-indexing-in-clippy, r=Manis…
bors Sep 5, 2021
7a0d7d8
Auto merge of #7596 - lengyijun:option_needless_deref, r=llogiq
bors Sep 5, 2021
f7aaa2a
Auto merge of #88493 - chenyukang:fix-duplicated-diagnostic, r=estebank
bors Sep 6, 2021
17294b8
Auto merge of #7634 - chansuke:update-eval-order-depends-docs, r=Mani…
bors Sep 6, 2021
a7a5a5d
Add `TAU` to `approx_constant`
Sep 7, 2021
b7c25e1
Auto merge of #7642 - mikerite:fix-7641, r=flip1995
bors Sep 7, 2021
290fb8d
Add additional test for broken loop in `mut_range_bound`
dswij Aug 26, 2021
8fbf75e
`mut_range_bound` to check for immediate break from loop
dswij Sep 2, 2021
7515d9c
Update test output for `mut_range_bound`
dswij Sep 3, 2021
dc6f7dc
Add known problems to `mut_range_bound` docs
dswij Sep 6, 2021
f356784
Auto merge of #7607 - dswij:mut-range-bound-break, r=flip1995
bors Sep 8, 2021
4962608
Merge remote-tracking branch 'upstream/master' into rustup
flip1995 Sep 8, 2021
3cb1d28
Bump nightly version -> 2021-09-08
flip1995 Sep 8, 2021
563a00b
Bump Clippy Version -> 0.1.57
flip1995 Sep 8, 2021
5458358
Auto merge of #7644 - flip1995:rustup, r=flip1995
bors Sep 8, 2021
ffe21e5
Remove unused dependencies
camsteffen Sep 3, 2021
8c05a15
Use binary-dep-depinfo to resolve UI dependencies
camsteffen Sep 3, 2021
5d3fc6f
Deny warnings in test modules
camsteffen Sep 8, 2021
27afd6a
Auto merge of #7631 - camsteffen:depinfo, r=flip1995
bors Sep 8, 2021
7636fbc
Merge commit '27afd6ade4bb1123a8bf82001629b69d23d62aff' into clippyup
flip1995 Sep 8, 2021
fe247b4
Update Cargo.lock
flip1995 Sep 8, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 10 additions & 11 deletions Cargo.lock
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ dependencies = [
"humantime 2.0.1",
"ignore",
"im-rc",
"itertools 0.10.0",
"itertools 0.10.1",
"jobserver",
"lazy_static",
"lazycell",
Expand Down Expand Up @@ -388,7 +388,7 @@ dependencies = [
"flate2",
"git2",
"glob",
"itertools 0.10.0",
"itertools 0.10.1",
"lazy_static",
"remove_dir_all",
"serde_json",
Expand Down Expand Up @@ -554,13 +554,16 @@ dependencies = [

[[package]]
name = "clippy"
version = "0.1.56"
version = "0.1.57"
dependencies = [
"cargo_metadata 0.12.0",
"clippy_lints",
"clippy_utils",
"compiletest_rs 0.6.0",
"derive-new",
"filetime",
"if_chain",
"itertools 0.10.1",
"quote",
"regex",
"rustc-workspace-hack",
Expand All @@ -587,7 +590,7 @@ dependencies = [

[[package]]
name = "clippy_lints"
version = "0.1.56"
version = "0.1.57"
dependencies = [
"cargo_metadata 0.12.0",
"clippy_utils",
Expand All @@ -608,14 +611,10 @@ dependencies = [

[[package]]
name = "clippy_utils"
version = "0.1.56"
version = "0.1.57"
dependencies = [
"if_chain",
"itertools 0.9.0",
"regex-syntax",
"rustc-semver",
"serde",
"unicode-normalization",
]

[[package]]
Expand Down Expand Up @@ -1744,9 +1743,9 @@ dependencies = [

[[package]]
name = "itertools"
version = "0.10.0"
version = "0.10.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "37d572918e350e82412fe766d24b15e6682fb2ed2bbe018280caa810397cb319"
checksum = "69ddb889f9d0d08a67338271fa9b62996bc788c7796a5c18cf057420aaed5eaf"
dependencies = [
"either",
]
Expand Down
3 changes: 2 additions & 1 deletion src/tools/clippy/.cargo/config
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ lintcheck = "run --target-dir lintcheck/target --package lintcheck --bin lintche
collect-metadata = "test --test dogfood --features metadata-collector-lint -- run_metadata_collection_lint --ignored"

[build]
rustflags = ["-Zunstable-options"]
# -Zbinary-dep-depinfo allows us to track which rlib files to use for compiling UI tests
rustflags = ["-Zunstable-options", "-Zbinary-dep-depinfo"]
14 changes: 14 additions & 0 deletions src/tools/clippy/.github/ISSUE_TEMPLATE/blank_issue.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,17 @@
name: Blank Issue
about: Create a blank issue.
---


<!--
Additional labels can be added to this issue by including the following command
(without the space after the @ symbol):

`@rustbot label +<label>`

Common labels for this issue type are:
* C-an-interesting-project
* C-enhancement
* C-question
* C-tracking-issue
-->
40 changes: 18 additions & 22 deletions src/tools/clippy/.github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,28 +20,24 @@ Instead, this happened: *explanation*

### Meta

- `cargo clippy -V`: e.g. clippy 0.0.212 (f455e46 2020-06-20)
- `rustc -Vv`:
```
rustc 1.46.0-nightly (f455e46ea 2020-06-20)
binary: rustc
commit-hash: f455e46eae1a227d735091091144601b467e1565
commit-date: 2020-06-20
host: x86_64-unknown-linux-gnu
release: 1.46.0-nightly
LLVM version: 10.0
```
**Rust version (`rustc -Vv`):**

```
rustc 1.46.0-nightly (f455e46ea 2020-06-20)
binary: rustc
commit-hash: f455e46eae1a227d735091091144601b467e1565
commit-date: 2020-06-20
host: x86_64-unknown-linux-gnu
release: 1.46.0-nightly
LLVM version: 10.0
```

<!--
Include a backtrace in the code block by setting `RUST_BACKTRACE=1` in your
environment. E.g. `RUST_BACKTRACE=1 cargo clippy`.
Additional labels can be added to this issue by including the following command
(without the space after the @ symbol):

`@rustbot label +<label>`

Common labels for this issue type are:
* `I-suggestion-causes-error`
-->
<details><summary>Backtrace</summary>
<p>

```
<backtrace>
```

</p>
</details>
22 changes: 11 additions & 11 deletions src/tools/clippy/.github/ISSUE_TEMPLATE/false_negative.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ Instead, this happened: *explanation*

### Meta

- `cargo clippy -V`: e.g. clippy 0.0.212 (f455e46 2020-06-20)
- `rustc -Vv`:
```
rustc 1.46.0-nightly (f455e46ea 2020-06-20)
binary: rustc
commit-hash: f455e46eae1a227d735091091144601b467e1565
commit-date: 2020-06-20
host: x86_64-unknown-linux-gnu
release: 1.46.0-nightly
LLVM version: 10.0
```
**Rust version (`rustc -Vv`):**

```
rustc 1.46.0-nightly (f455e46ea 2020-06-20)
binary: rustc
commit-hash: f455e46eae1a227d735091091144601b467e1565
commit-date: 2020-06-20
host: x86_64-unknown-linux-gnu
release: 1.46.0-nightly
LLVM version: 10.0
```
31 changes: 20 additions & 11 deletions src/tools/clippy/.github/ISSUE_TEMPLATE/false_positive.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,23 @@ Instead, this happened: *explanation*

### Meta

- `cargo clippy -V`: e.g. clippy 0.0.212 (f455e46 2020-06-20)
- `rustc -Vv`:
```
rustc 1.46.0-nightly (f455e46ea 2020-06-20)
binary: rustc
commit-hash: f455e46eae1a227d735091091144601b467e1565
commit-date: 2020-06-20
host: x86_64-unknown-linux-gnu
release: 1.46.0-nightly
LLVM version: 10.0
```
**Rust version (`rustc -Vv`):**
```
rustc 1.46.0-nightly (f455e46ea 2020-06-20)
binary: rustc
commit-hash: f455e46eae1a227d735091091144601b467e1565
commit-date: 2020-06-20
host: x86_64-unknown-linux-gnu
release: 1.46.0-nightly
LLVM version: 10.0
```

<!--
Additional labels can be added to this issue by including the following command
(without the space after the @ symbol):

`@rustbot label +<label>`

Common labels for this issue type are:
* I-suggestion-causes-error
-->
21 changes: 10 additions & 11 deletions src/tools/clippy/.github/ISSUE_TEMPLATE/ice.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,16 @@ http://blog.pnkfx.org/blog/2019/11/18/rust-bug-minimization-patterns/

### Meta

- `cargo clippy -V`: e.g. clippy 0.0.212 (f455e46 2020-06-20)
- `rustc -Vv`:
```
rustc 1.46.0-nightly (f455e46ea 2020-06-20)
binary: rustc
commit-hash: f455e46eae1a227d735091091144601b467e1565
commit-date: 2020-06-20
host: x86_64-unknown-linux-gnu
release: 1.46.0-nightly
LLVM version: 10.0
```
**Rust version (`rustc -Vv`):**
```
rustc 1.46.0-nightly (f455e46ea 2020-06-20)
binary: rustc
commit-hash: f455e46eae1a227d735091091144601b467e1565
commit-date: 2020-06-20
host: x86_64-unknown-linux-gnu
release: 1.46.0-nightly
LLVM version: 10.0
```

### Error output

Expand Down
3 changes: 0 additions & 3 deletions src/tools/clippy/.github/workflows/clippy_dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,6 @@ jobs:
run: cargo build --features deny-warnings
working-directory: clippy_dev

- name: Test limit_stderr_length
run: cargo dev limit_stderr_length

- name: Test update_lints
run: cargo dev update_lints --check

Expand Down
12 changes: 9 additions & 3 deletions src/tools/clippy/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -964,7 +964,7 @@ Released 2020-11-19
[#5907](https://github.com/rust-lang/rust-clippy/pull/5907)
* [`suspicious_arithmetic_impl`]: extend to implementations of `BitAnd`, `BitOr`, `BitXor`, `Rem`, `Shl`, and `Shr`
[#5884](https://github.com/rust-lang/rust-clippy/pull/5884)
* [`invalid_atomic_ordering`]: detect misuse of `compare_exchange`, `compare_exchange_weak`, and `fetch_update`
* `invalid_atomic_ordering`: detect misuse of `compare_exchange`, `compare_exchange_weak`, and `fetch_update`
[#6025](https://github.com/rust-lang/rust-clippy/pull/6025)
* Avoid [`redundant_pattern_matching`] triggering in macros
[#6069](https://github.com/rust-lang/rust-clippy/pull/6069)
Expand Down Expand Up @@ -1451,7 +1451,7 @@ Released 2020-03-12
* [`option_as_ref_deref`] [#4945](https://github.com/rust-lang/rust-clippy/pull/4945)
* [`wildcard_in_or_patterns`] [#4960](https://github.com/rust-lang/rust-clippy/pull/4960)
* [`iter_nth_zero`] [#4966](https://github.com/rust-lang/rust-clippy/pull/4966)
* [`invalid_atomic_ordering`] [#4999](https://github.com/rust-lang/rust-clippy/pull/4999)
* `invalid_atomic_ordering` [#4999](https://github.com/rust-lang/rust-clippy/pull/4999)
* [`skip_while_next`] [#5067](https://github.com/rust-lang/rust-clippy/pull/5067)

### Moves and Deprecations
Expand Down Expand Up @@ -2613,6 +2613,7 @@ Released 2018-09-13
[`deprecated_cfg_attr`]: https://rust-lang.github.io/rust-clippy/master/index.html#deprecated_cfg_attr
[`deprecated_semver`]: https://rust-lang.github.io/rust-clippy/master/index.html#deprecated_semver
[`deref_addrof`]: https://rust-lang.github.io/rust-clippy/master/index.html#deref_addrof
[`derivable_impls`]: https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls
[`derive_hash_xor_eq`]: https://rust-lang.github.io/rust-clippy/master/index.html#derive_hash_xor_eq
[`derive_ord_xor_partial_ord`]: https://rust-lang.github.io/rust-clippy/master/index.html#derive_ord_xor_partial_ord
[`disallowed_method`]: https://rust-lang.github.io/rust-clippy/master/index.html#disallowed_method
Expand Down Expand Up @@ -2712,7 +2713,6 @@ Released 2018-09-13
[`integer_arithmetic`]: https://rust-lang.github.io/rust-clippy/master/index.html#integer_arithmetic
[`integer_division`]: https://rust-lang.github.io/rust-clippy/master/index.html#integer_division
[`into_iter_on_ref`]: https://rust-lang.github.io/rust-clippy/master/index.html#into_iter_on_ref
[`invalid_atomic_ordering`]: https://rust-lang.github.io/rust-clippy/master/index.html#invalid_atomic_ordering
[`invalid_null_ptr_usage`]: https://rust-lang.github.io/rust-clippy/master/index.html#invalid_null_ptr_usage
[`invalid_regex`]: https://rust-lang.github.io/rust-clippy/master/index.html#invalid_regex
[`invalid_upcast_comparisons`]: https://rust-lang.github.io/rust-clippy/master/index.html#invalid_upcast_comparisons
Expand Down Expand Up @@ -2754,6 +2754,7 @@ Released 2018-09-13
[`manual_ok_or`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_ok_or
[`manual_range_contains`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains
[`manual_saturating_arithmetic`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_saturating_arithmetic
[`manual_split_once`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_split_once
[`manual_str_repeat`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_str_repeat
[`manual_strip`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_strip
[`manual_swap`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_swap
Expand Down Expand Up @@ -2795,6 +2796,7 @@ Released 2018-09-13
[`missing_safety_doc`]: https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
[`mistyped_literal_suffixes`]: https://rust-lang.github.io/rust-clippy/master/index.html#mistyped_literal_suffixes
[`mixed_case_hex_literals`]: https://rust-lang.github.io/rust-clippy/master/index.html#mixed_case_hex_literals
[`mod_module_files`]: https://rust-lang.github.io/rust-clippy/master/index.html#mod_module_files
[`module_inception`]: https://rust-lang.github.io/rust-clippy/master/index.html#module_inception
[`module_name_repetitions`]: https://rust-lang.github.io/rust-clippy/master/index.html#module_name_repetitions
[`modulo_arithmetic`]: https://rust-lang.github.io/rust-clippy/master/index.html#modulo_arithmetic
Expand All @@ -2821,13 +2823,15 @@ Released 2018-09-13
[`needless_doctest_main`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
[`needless_for_each`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_for_each
[`needless_lifetimes`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
[`needless_option_as_deref`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_option_as_deref
[`needless_pass_by_value`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_value
[`needless_question_mark`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
[`needless_range_loop`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop
[`needless_return`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_return
[`needless_update`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_update
[`neg_cmp_op_on_partial_ord`]: https://rust-lang.github.io/rust-clippy/master/index.html#neg_cmp_op_on_partial_ord
[`neg_multiply`]: https://rust-lang.github.io/rust-clippy/master/index.html#neg_multiply
[`negative_feature_names`]: https://rust-lang.github.io/rust-clippy/master/index.html#negative_feature_names
[`never_loop`]: https://rust-lang.github.io/rust-clippy/master/index.html#never_loop
[`new_ret_no_self`]: https://rust-lang.github.io/rust-clippy/master/index.html#new_ret_no_self
[`new_without_default`]: https://rust-lang.github.io/rust-clippy/master/index.html#new_without_default
Expand Down Expand Up @@ -2881,6 +2885,7 @@ Released 2018-09-13
[`redundant_closure_call`]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure_call
[`redundant_closure_for_method_calls`]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure_for_method_calls
[`redundant_else`]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_else
[`redundant_feature_names`]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_feature_names
[`redundant_field_names`]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names
[`redundant_pattern`]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_pattern
[`redundant_pattern_matching`]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_pattern_matching
Expand All @@ -2903,6 +2908,7 @@ Released 2018-09-13
[`search_is_some`]: https://rust-lang.github.io/rust-clippy/master/index.html#search_is_some
[`self_assignment`]: https://rust-lang.github.io/rust-clippy/master/index.html#self_assignment
[`self_named_constructors`]: https://rust-lang.github.io/rust-clippy/master/index.html#self_named_constructors
[`self_named_module_files`]: https://rust-lang.github.io/rust-clippy/master/index.html#self_named_module_files
[`semicolon_if_nothing_returned`]: https://rust-lang.github.io/rust-clippy/master/index.html#semicolon_if_nothing_returned
[`serde_api_misuse`]: https://rust-lang.github.io/rust-clippy/master/index.html#serde_api_misuse
[`shadow_reuse`]: https://rust-lang.github.io/rust-clippy/master/index.html#shadow_reuse
Expand Down
15 changes: 10 additions & 5 deletions src/tools/clippy/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "clippy"
version = "0.1.56"
version = "0.1.57"
description = "A bunch of helpful lints to avoid common pitfalls in Rust"
repository = "https://github.com/rust-lang/rust-clippy"
readme = "README.md"
Expand Down Expand Up @@ -32,11 +32,7 @@ tempfile = { version = "3.1.0", optional = true }
cargo_metadata = "0.12"
compiletest_rs = { version = "0.6.0", features = ["tmp"] }
tester = "0.9"
serde = { version = "1.0", features = ["derive"] }
derive-new = "0.5"
regex = "1.4"
quote = "1"
syn = { version = "1", features = ["full"] }
# This is used by the `collect-metadata` alias.
filetime = "0.2"

Expand All @@ -45,6 +41,15 @@ filetime = "0.2"
# for more information.
rustc-workspace-hack = "1.0.0"

# UI test dependencies
clippy_utils = { path = "clippy_utils" }
derive-new = "0.5"
if_chain = "1.0"
itertools = "0.10.1"
quote = "1"
serde = { version = "1.0", features = ["derive"] }
syn = { version = "1", features = ["full"] }

[build-dependencies]
rustc_tools_util = { version = "0.2.0", path = "rustc_tools_util" }

Expand Down
8 changes: 4 additions & 4 deletions src/tools/clippy/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@ or in Travis CI.
One way to use Clippy is by installing Clippy through rustup as a cargo
subcommand.

#### Step 1: Install rustup
#### Step 1: Install Rustup

You can install [rustup](https://rustup.rs/) on supported platforms. This will help
You can install [Rustup](https://rustup.rs/) on supported platforms. This will help
us install Clippy and its dependencies.

If you already have rustup installed, update to ensure you have the latest
rustup and compiler:
If you already have Rustup installed, update to ensure you have the latest
Rustup and compiler:

```terminal
rustup update
Expand Down
1 change: 0 additions & 1 deletion src/tools/clippy/clippy_dev/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ pub mod fmt;
pub mod new_lint;
pub mod serve;
pub mod setup;
pub mod stderr_length_check;
pub mod update_lints;

static DEC_CLIPPY_LINT_RE: SyncLazy<Regex> = SyncLazy::new(|| {
Expand Down
Loading