Skip to content

Update Clippy #96735

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

Merged
merged 199 commits into from
May 5, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
199 commits
Select commit Hold shift + click to select a range
c70f1e0
ignore `&x | &y` in unnested_or_patterns
pitaj Apr 2, 2022
bca346b
rebase and use ty::Const in patterns again
b-naber Mar 25, 2022
4227411
Generate deprecated lints test
Jarcho Apr 2, 2022
d5ef542
Generate renamed lint test
Jarcho Apr 3, 2022
2f78075
get rid of visit_constant in thir visitor
b-naber Apr 6, 2022
6e20a63
Don't lint `manual_non_exhaustive` when the enum variant is used
Jarcho Apr 6, 2022
b0f8a31
Cleanup `manual_non_exhaustive`
Jarcho Apr 6, 2022
ddd3af2
Only lint `mut_from_ref` when unsafe code is used
Jarcho Apr 6, 2022
d5e887c
Better check size and alignment requirements in `unsound_collection_t…
Jarcho Apr 6, 2022
06cfeb9
New lint `is_digit_ascii_radix`
pitaj Apr 2, 2022
a63308b
Auto merge of #8619 - pitaj:fix-6973, r=giraffate
bors Apr 8, 2022
1905425
Update documentation for `mut_from_ref`
Jarcho Apr 8, 2022
7113135
Merge commit '984330a6ee3c4d15626685d6dc8b7b759ff630bd' into clippyup
flip1995 Apr 7, 2022
da26623
Update Cargo.lock
flip1995 Apr 8, 2022
b79f13e
Avoid looking at the internals of Interned directly
oli-obk Apr 8, 2022
2249168
Refactor HIR item-like traversal (part 1)
kckeiks Apr 3, 2022
3363a62
remove CheckVisitor, CollectExternCrateVisitor and ItemLikeVisitor impls
kckeiks Apr 7, 2022
63f6a79
Don't lint various match lints when expanded by a proc-macro
Jarcho Apr 8, 2022
b029a86
Auto merge of #8648 - Jarcho:transmute_collection_7706, r=xFrednet
bors Apr 8, 2022
0155a63
Auto merge of #95524 - oli-obk:cached_stable_hash_cleanups, r=nnether…
bors Apr 9, 2022
744b0ff
Don't lint `iter_with_drain` on references
Jarcho Apr 9, 2022
a951148
fix comments in test for split_once
kyoto7250 Apr 9, 2022
cfd52aa
Auto merge of #8669 - kyoto7250:fix_comments_in_test_split_once, r=xF…
bors Apr 9, 2022
ffde78b
Allow passing --remove to `cargo dev setup <SUBCOMMAND>`
yoav-lavi Apr 8, 2022
c7e6863
Auto merge of #8664 - yoav-lavi:main, r=xFrednet
bors Apr 9, 2022
1450c98
fix typo
andy-k Apr 9, 2022
719a040
Compare inline constants by their bodies rather than value in `Spanle…
Jarcho Apr 10, 2022
5e335a5
Check for loops/closures in `local_used_after_expr`
Alexendoo Apr 10, 2022
6fba897
Remove overlap between `manual_split_once` and `needless_splitn`
Alexendoo Apr 4, 2022
5344236
Auto merge of #8631 - Alexendoo:splitn-overlap, r=xFrednet
bors Apr 10, 2022
85e91dc
Auto merge of #8671 - andy-k:fix-typo, r=flip1995
bors Apr 11, 2022
a4d1837
unnecessary_string_new
yoav-lavi Apr 7, 2022
1020137
unnecessary_owned_empty_string -> unnecessary_owned_empty_strings
yoav-lavi Apr 11, 2022
5c19ae9
Auto merge of #8660 - yoav-lavi:squashed-master, r=flip1995
bors Apr 11, 2022
62d912e
Add new `Deinit` statement kind
JakobDegen Apr 5, 2022
18ab97d
Auto merge of #8668 - Jarcho:iter_with_drain_8538, r=Manishearth
bors Apr 11, 2022
131ff87
Auto merge of #8673 - Jarcho:same_functions_8139, r=Manishearth
bors Apr 11, 2022
89ee6aa
Auto merge of #8667 - Jarcho:proc_macro_check, r=flip1995
bors Apr 11, 2022
c82dd0f
Fix ICE in `undocumented_unsafe_blocks`
Jarcho Apr 11, 2022
4a21082
Fix subtraction overflow in `cast_possible_truncation`
Alexendoo Apr 11, 2022
636ed84
Auto merge of #8687 - Alexendoo:cast-possible-truncation-overflow, r=…
bors Apr 11, 2022
dbcd828
Auto merge of #8624 - pitaj:is_digit_ascii_radix, r=xFrednet
bors Apr 11, 2022
9716a9e
adding condition for map_clone message
kyoto7250 Apr 11, 2022
40224f4
refactor: Put together an if statement
kyoto7250 Apr 12, 2022
bc069ef
Auto merge of #8688 - kyoto7250:adding_condition_for_map_clone, r=gir…
bors Apr 12, 2022
739f273
Do not apply `rest_pat_in_fully_bound_structs` on `#[non_exhaustive]`…
mucinoab Apr 12, 2022
b3bd03a
Auto merge of #8686 - Jarcho:undocumented_unsafe_blocks_8681, r=flip1995
bors Apr 12, 2022
214fba7
Prevent infinite (exponential) recursion in only_used_in_recursion
flip1995 Apr 12, 2022
f08a9c0
Auto merge of #8691 - flip1995:infinite_recursion_only_in_recursion, …
bors Apr 12, 2022
dfdc5ad
fix unnecessary_to_owned about msrv
kyoto7250 Apr 12, 2022
849668a
Auto merge of #8690 - mucinoab:DoNot-rest_pat_in_fully_bound_structs-…
bors Apr 12, 2022
d8c97e6
Auto merge of #8645 - Jarcho:manual_non_exhaustive_5714, r=Jarcho
bors Apr 12, 2022
06b1695
Auto merge of #8647 - Jarcho:mut_from_ref_6326, r=giraffate
bors Apr 13, 2022
f70c73f
Auto merge of #8692 - kyoto7250:fixing_unnecessary_to_owned, r=giraffate
bors Apr 13, 2022
5b7df24
errors: lazily load fallback fluent bundle
davidtwco Apr 12, 2022
27634b0
Auto merge of #94255 - b-naber:use-mir-constant-in-thir, r=oli-obk
bors Apr 13, 2022
66d253f
pub_use
yoav-lavi Apr 12, 2022
b6645d0
Auto merge of #8670 - yoav-lavi:main, r=giraffate
bors Apr 13, 2022
ba15cdd
Add `usize` cast to `clippy::manual_bits` suggestion
xFrednet Apr 10, 2022
a377ebc
Auto merge of #95968 - davidtwco:translation-lazy-fallback, r=oli-obk
bors Apr 13, 2022
38ba055
Auto merge of #8676 - Alexendoo:local-used-across-loop, r=xFrednet
bors Apr 14, 2022
9f131e5
assertions_on_constants: ignore indirect `cfg!`
pitaj Apr 1, 2022
67badbe
New lint `format_add_strings`
pitaj Apr 4, 2022
3bd0ac7
Update lint description of `clippy::manual_bits` to include the `as …
xFrednet Apr 14, 2022
262b35e
Introduce option_take_on_temporary lints
b-NC Apr 8, 2022
ee9281d
Implement checks to the expression
b-NC Apr 8, 2022
f8f1441
Swap span_lint for span_lint_and_sugg
b-NC Apr 8, 2022
cf83e18
Swap the category of the lint
b-NC Apr 8, 2022
8b2b343
Delete unused variable `y` in test
b-NC Apr 9, 2022
b52bc9b
Swap type checked expression
b-NC Apr 10, 2022
76268c0
Introduce new lint check
b-NC Apr 10, 2022
8229936
Modify lint description
b-NC Apr 11, 2022
2903b56
Add tests and docs
b-NC Apr 12, 2022
ecb3c3f
Auto merge of #8677 - xFrednet:8213-manual-bits-suggestion, r=giraffate
bors Apr 14, 2022
aade96f
Auto merge of #8626 - pitaj:format_add_string, r=llogiq
bors Apr 14, 2022
0de314b
Reimplement lowering of sym operands for asm! so that it also works w…
Amanieu Mar 1, 2022
dc97080
Update issue-92893.stderr
ouz-a Apr 14, 2022
80bcd9b
Auto merge of #8614 - pitaj:fix-7597, r=giraffate
bors Apr 14, 2022
d68ac9c
Don't lint `let_unit_value` when needed for type inferenece
Jarcho Mar 17, 2022
48bcc1d
Move `let_unit_value` back into `style`
Jarcho Mar 17, 2022
70f7c62
Allow more complex expressions in `let_unit_value`
Jarcho Apr 5, 2022
0bc93b6
Auto merge of #8563 - Jarcho:let_unit_1502, r=Jarcho
bors Apr 15, 2022
b592cc6
Fix typo in comment
youknowone Apr 15, 2022
c0fce5a
Auto merge of #8702 - youknowone:fix-typo, r=xFrednet
bors Apr 15, 2022
6f82524
clippy: Update full path to `CString`
petrochenkov Apr 15, 2022
3d5dc41
Rollup merge of #94849 - ouz-a:master4, r=oli-obk
Dylan-DPC Apr 15, 2022
d1a78f3
Fix formatting of `cast_abs_to_unsigned` docs
lupd Apr 15, 2022
29ef80c
adding spell checking
Apr 15, 2022
fb1934b
infallible <> infalliable in filename
Apr 15, 2022
2be7ad5
initialization misspell
Apr 15, 2022
73b7cb9
shound -> should
Apr 15, 2022
e475dde
collapsible <> collspible
Apr 15, 2022
9938daf
Auto merge of #8705 - cpw2n5:spellcheck, r=Manishearth
bors Apr 15, 2022
4844325
Add `await_holding_invalid_type` lint
lilymara-onesignal Apr 14, 2022
3cd8b5a
fixup! Add `await_holding_invalid_type` lint
lilymara-onesignal Apr 15, 2022
5344192
fixup! Add `await_holding_invalid_type` lint
lilymara-onesignal Apr 15, 2022
5b35bd9
lintcheck: fix --fix
matthiaskrgr Apr 15, 2022
5cf2920
Auto merge of #94468 - Amanieu:global_asm_sym, r=nagisa
bors Apr 16, 2022
af72103
Changelog for Rust 1.61 :octopus:
xFrednet Apr 13, 2022
3abd2c0
Auto merge of #8698 - xFrednet:0000-changelog-1-61, r=flip1995
bors Apr 16, 2022
b2959db
Auto merge of #8706 - lupd:cast-abs-to-unsigned, r=xFrednet
bors Apr 16, 2022
0f4f9ec
Auto merge of #8709 - matthiaskrgr:lintcheckfix, r=llogiq
bors Apr 16, 2022
cc25cbd
Auto merge of #95655 - kckeiks:create-hir-crate-items-query, r=cjgillot
bors Apr 17, 2022
e4110cf
Bless clippy.
cjgillot Apr 1, 2022
18a4411
Stop using CRATE_DEF_INDEX.
cjgillot Apr 15, 2022
cb1924a
Auto merge of #95779 - cjgillot:ast-lifetimes-undeclared, r=petrochenkov
bors Apr 17, 2022
e5ebece
Auto merge of #8665 - InfRandomness:option_take_on_temporary, r=llogiq
bors Apr 17, 2022
ccedc64
Add `#[clippy::print_hir]` attribute for debugging
xFrednet Apr 15, 2022
b94e24e
Fix needless_match false positive for if-let
youknowone Apr 15, 2022
7a4d071
Less authoritative stable_sort_primitive message
Apr 18, 2022
7a73e09
Update lints
Apr 18, 2022
95de4dc
Auto merge of #8701 - xFrednet:0000-clippy-print-hir-attr, r=flip1995
bors Apr 18, 2022
6d0baf2
Update clippy_lints/src/await_holding_invalid.rs
lilymara-onesignal Apr 18, 2022
228ce78
Update clippy_lints/src/await_holding_invalid.rs
lilymara-onesignal Apr 18, 2022
ee3ebb3
Update clippy_lints/src/await_holding_invalid.rs
lilymara-onesignal Apr 18, 2022
a511072
fixup! Add `await_holding_invalid_type` lint
lilymara-onesignal Apr 18, 2022
7e26edc
fixup! Add `await_holding_invalid_type` lint
lilymara-onesignal Apr 18, 2022
8eccbbe
fixup! Add `await_holding_invalid_type` lint
lilymara-onesignal Apr 18, 2022
0508685
fixup! Add `await_holding_invalid_type` lint
lilymara-onesignal Apr 18, 2022
cbdf17c
Auto merge of #8707 - OneSignal:await-invalid-types, r=llogiq
bors Apr 18, 2022
df1ec91
adds lint logic and test for bytes_count_to_len
chaseruskin Jan 31, 2022
f19387d
add checking type
kyoto7250 Apr 16, 2022
c922bb9
fix ICE
asquared31415 Apr 19, 2022
60bb2a7
Rollup merge of #96142 - cjgillot:no-crate-def-index, r=petrochenkov
Dylan-DPC Apr 19, 2022
e17b97c
Auto merge of #8711 - kyoto7250:new-lint-bytes-count-to-len, r=giraffate
bors Apr 19, 2022
1b6b802
Better documentation wording and add known problems section
Apr 20, 2022
f99ad82
Auto merge of #8700 - youknowone:needless_match-false-positive, r=xFr…
bors Apr 20, 2022
4c25880
Auto merge of #8716 - binggh:stable-sort-message-update, r=giraffate
bors Apr 21, 2022
8de3fb1
Add empty_drop lint
PyroTechniac Mar 25, 2022
a9d31e7
Auto merge of #8571 - PyroTechniac:empty-drop, r=flip1995
bors Apr 21, 2022
4424aa4
`manual_split_once`: lint manual iteration of `SplitN`
Alexendoo Apr 18, 2022
14667d1
Fix missing whitespace in `collapsible_else_if` suggestion
Serial-ATA Apr 21, 2022
cf68cad
Auto merge of #8729 - Serial-ATA:issue-7318, r=Manishearth
bors Apr 21, 2022
ed22428
Auto merge of #8717 - Alexendoo:manual-split-once-manual-iter, r=dswi…
bors Apr 22, 2022
a96bc7a
dogfood: allow unknown lints when not running with `internal` feature
Alexendoo Apr 22, 2022
cef882c
Auto merge of #8731 - Alexendoo:dogfood-allow-unknown-lints, r=xFrednet
bors Apr 22, 2022
f20e890
Add macro export exemption to `redundant_pub_crate`
Serial-ATA Apr 22, 2022
b35c04f
Extend `extra_unused_lifetimes` to handle impl lifetimes
smoelius Apr 23, 2022
fabc26f
Stop visiting visibility.
cjgillot Feb 13, 2022
abc8eb7
Drop vis in FieldDef.
cjgillot Feb 13, 2022
6ec33df
Drop vis in ImplItem.
cjgillot Feb 13, 2022
04024ba
Drop vis in Item.
cjgillot Feb 13, 2022
0c164bb
ignore `redundant_pub_crate` in `useless_attribute`
Alexendoo Apr 23, 2022
51db157
fix
tamaroning Apr 23, 2022
af9dfa3
fix ICE by using a type to return the info we want and also fix some …
asquared31415 Apr 23, 2022
ec3afba
Make clippy inspector more precise.
cjgillot Feb 14, 2022
2a5ee68
Auto merge of #8736 - Serial-ATA:issue-8732, r=xFrednet
bors Apr 24, 2022
6aa3684
Auto merge of #8738 - tamaroning:fix_wrong_self_convention, r=xFrednet
bors Apr 24, 2022
b3de32b
Add `rename_lint` command
Jarcho Apr 4, 2022
f290249
mistyped_literal_suffixes: improve suggestions for integer types
goth-turtle Apr 23, 2022
b4a50e9
mistyped_literal_suffixes: ignore floats without exponent
goth-turtle Apr 24, 2022
a85dc87
Add `large_include_file` lint
Serial-ATA Apr 21, 2022
388e6b7
Auto merge of #8742 - goth-turtle:mistyped-literal-suffix, r=llogiq
bors Apr 24, 2022
cf99f50
remove extra lifetime
asquared31415 Apr 24, 2022
e6fa163
Fix false positives
smoelius Apr 25, 2022
c22bb06
Fix naming
smoelius Apr 25, 2022
760f293
Auto merge of #8727 - Serial-ATA:lint-large-includes, r=xFrednet
bors Apr 25, 2022
94623ee
Auto merge of #8737 - smoelius:extra-impl-lifetimes, r=giraffate
bors Apr 26, 2022
1d1fecf
`needless_late_init`: ignore `if let`, `let mut` and significant drops
Alexendoo Apr 1, 2022
95396f6
Auto merge of #8617 - Alexendoo:relax-needless-late-init, r=giraffate
bors Apr 27, 2022
33bf9e9
`redundant_closure` ignore coerced closure
dswij Feb 23, 2022
18a1831
Auto merge of #8743 - Alexendoo:useless-attribute-redundant-pub-crate…
bors Apr 27, 2022
d5c62fd
Auto merge of #8431 - dswij:8416, r=xFrednet
bors Apr 27, 2022
5ffe8a1
errors: `span_suggestion` takes `impl ToString`
davidtwco Apr 26, 2022
8f8fc9f
use non-panicking snippet, use struct update syntax and add comment
asquared31415 Apr 29, 2022
8ef4b8d
Update GitHub Actions actions/checkout@v2 to v3
dtolnay Apr 30, 2022
faadd8f
Box HIR Generics and Impl.
cjgillot Feb 5, 2022
67241bb
Inline WhereClause into Generics.
cjgillot Feb 5, 2022
e2d923a
Store all generic bounds as where predicates.
cjgillot Feb 7, 2022
e46c782
Bless tests.
cjgillot Mar 14, 2022
c80cd4d
Auto merge of #8764 - dtolnay-contrib:checkoutv3, r=llogiq
bors Apr 30, 2022
ec46992
Auto merge of #8720 - asquared31415:ptr-cast-ice-fix, r=Alexendoo,xFr…
bors Apr 30, 2022
959ed52
Add missing quite in `large_include_file` example
xFrednet Apr 30, 2022
32fe476
Auto merge of #8625 - Jarcho:rename_lint, r=xFrednet
bors Apr 30, 2022
95f8b26
Auto merge of #8767 - xFrednet:8765-fix-doc-example, r=camsteffen
bors Apr 30, 2022
defc537
Fix the clippy build
scottmcm Apr 25, 2022
6ad810f
improve identity_op
tamaroning Apr 22, 2022
8172166
rustc: Panic by default in `DefIdTree::parent`
petrochenkov Apr 25, 2022
0ceacbe
Auto merge of #8730 - tamaroning:fix8724, r=Alexendoo
bors May 3, 2022
3476056
Make rustc_parse_format compile on stable
bjorn3 Apr 29, 2022
f505cc9
Easier readability for needless_late_init
May 3, 2022
7017eb1
cargo dev bless
May 3, 2022
d53293d
Ignore type aliases in `init_numbered_fields`
Alexendoo May 3, 2022
1834f32
Move only_used_in_recursion to nursery
flip1995 May 3, 2022
38b7a04
Auto merge of #8783 - flip1995:ouir-nursery, r=llogiq
bors May 3, 2022
8be86fc
Auto merge of #96558 - bjorn3:librarify_parse_format, r=davidtwco
bors May 3, 2022
a10fe90
Auto merge of #8779 - binggh:easier-needless-late-init, r=llogiq
bors May 3, 2022
fea177f
add trim_split_whitespace
FoseFx Mar 22, 2022
751fd0d
Auto merge of #8780 - Alexendoo:init-numbered-field-alias, r=flip1995
bors May 4, 2022
c7a705a
Auto merge of #8575 - FoseFx:trim_split_whitespace2, r=flip1995
bors May 4, 2022
c318cf4
Overhaul `MacArgs::Eq`.
nnethercote Apr 28, 2022
82f469f
Auto merge of #96546 - nnethercote:overhaul-MacArgs, r=petrochenkov
bors May 4, 2022
3b0c78d
Merge remote-tracking branch 'upstream/master' into rustup
flip1995 May 5, 2022
7e017db
Bump nightly version -> 2022-05-05
flip1995 May 5, 2022
bb01aca
HACK: Move buggy lints to nursery
flip1995 May 5, 2022
0062829
Fix ICE in EarlyAttribtues lints
flip1995 May 5, 2022
7c21f91
Auto merge of #8788 - flip1995:rustup, r=xFrednet,flip1995
bors May 5, 2022
4963845
Merge commit '7c21f91b15b7604f818565646b686d90f99d1baf' into clippyup
flip1995 May 5, 2022
463c760
Update Cargo.lock
flip1995 May 5, 2022
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
1 change: 1 addition & 0 deletions Cargo.lock
Original file line number Diff line number Diff line change
Expand Up @@ -655,6 +655,7 @@ dependencies = [
name = "clippy_dev"
version = "0.0.1"
dependencies = [
"aho-corasick",
"clap 2.34.0",
"indoc",
"itertools",
Expand Down
2 changes: 1 addition & 1 deletion src/tools/clippy/.github/ISSUE_TEMPLATE/blank_issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ body:
attributes:
label: Description
description: >
Please provide a discription of the issue, along with any information
Please provide a description of the issue, along with any information
you feel relevant to replicate it.
validations:
required: true
Expand Down
2 changes: 1 addition & 1 deletion src/tools/clippy/.github/ISSUE_TEMPLATE/false_negative.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ body:
id: reproducer
attributes:
label: Reproducer
description: Please provide the code and steps to repoduce the bug
description: Please provide the code and steps to reproduce the bug
value: |
I tried this code:

Expand Down
2 changes: 1 addition & 1 deletion src/tools/clippy/.github/ISSUE_TEMPLATE/false_positive.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ body:
attributes:
label: Reproducer
description: >
Please provide the code and steps to repoduce the bug together with the
Please provide the code and steps to reproduce the bug together with the
output from Clippy.
value: |
I tried this code:
Expand Down
6 changes: 3 additions & 3 deletions src/tools/clippy/.github/workflows/clippy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ on:
branches-ignore:
- auto
- try
# Don't run Clippy tests, when only textfiles were modified
# Don't run Clippy tests, when only text files were modified
paths-ignore:
- 'COPYRIGHT'
- 'LICENSE-*'
- '**.md'
- '**.txt'
pull_request:
# Don't run Clippy tests, when only textfiles were modified
# Don't run Clippy tests, when only text files were modified
paths-ignore:
- 'COPYRIGHT'
- 'LICENSE-*'
Expand All @@ -37,7 +37,7 @@ jobs:
github_token: "${{ secrets.github_token }}"

- name: Checkout
uses: actions/checkout@v2.3.3
uses: actions/checkout@v3.0.2

- name: Install toolchain
run: rustup show active-toolchain
Expand Down
8 changes: 4 additions & 4 deletions src/tools/clippy/.github/workflows/clippy_bors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
github_token: "${{ secrets.github_token }}"

- name: Checkout
uses: actions/checkout@v2.3.3
uses: actions/checkout@v3.0.2
with:
ref: ${{ github.ref }}

Expand Down Expand Up @@ -88,7 +88,7 @@ jobs:
if: matrix.host == 'i686-unknown-linux-gnu'

- name: Checkout
uses: actions/checkout@v2.3.3
uses: actions/checkout@v3.0.2

- name: Install toolchain
run: rustup show active-toolchain
Expand Down Expand Up @@ -154,7 +154,7 @@ jobs:
github_token: "${{ secrets.github_token }}"

- name: Checkout
uses: actions/checkout@v2.3.3
uses: actions/checkout@v3.0.2

- name: Install toolchain
run: rustup show active-toolchain
Expand Down Expand Up @@ -212,7 +212,7 @@ jobs:
github_token: "${{ secrets.github_token }}"

- name: Checkout
uses: actions/checkout@v2.3.3
uses: actions/checkout@v3.0.2

- name: Install toolchain
run: rustup show active-toolchain
Expand Down
2 changes: 1 addition & 1 deletion src/tools/clippy/.github/workflows/clippy_dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
steps:
# Setup
- name: Checkout
uses: actions/checkout@v2.3.3
uses: actions/checkout@v3.0.2

# Run
- name: Build
Expand Down
4 changes: 2 additions & 2 deletions src/tools/clippy/.github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ jobs:
steps:
# Setup
- name: Checkout
uses: actions/checkout@v2.3.3
uses: actions/checkout@v3.0.2

- name: Checkout
uses: actions/checkout@v2.3.3
uses: actions/checkout@v3.0.2
with:
ref: ${{ env.TARGET_BRANCH }}
path: 'out'
Expand Down
2 changes: 1 addition & 1 deletion src/tools/clippy/.github/workflows/remark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
steps:
# Setup
- name: Checkout
uses: actions/checkout@v2.3.3
uses: actions/checkout@v3.0.2

- name: Setup Node.js
uses: actions/[email protected]
Expand Down
113 changes: 112 additions & 1 deletion src/tools/clippy/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,108 @@ document.

## Unreleased / In Rust Nightly

[57b3c4b...master](https://github.com/rust-lang/rust-clippy/compare/57b3c4b...master)
[d0cf3481...master](https://github.com/rust-lang/rust-clippy/compare/d0cf3481...master)

## Rust 1.61 (beta)

Current beta, released 2022-05-19

[57b3c4b...d0cf3481](https://github.com/rust-lang/rust-clippy/compare/57b3c4b...d0cf3481)

### New Lints

* [`only_used_in_recursion`]
[#8422](https://github.com/rust-lang/rust-clippy/pull/8422)
* [`cast_enum_truncation`]
[#8381](https://github.com/rust-lang/rust-clippy/pull/8381)
* [`missing_spin_loop`]
[#8174](https://github.com/rust-lang/rust-clippy/pull/8174)
* [`deref_by_slicing`]
[#8218](https://github.com/rust-lang/rust-clippy/pull/8218)
* [`needless_match`]
[#8471](https://github.com/rust-lang/rust-clippy/pull/8471)
* [`allow_attributes_without_reason`] (Requires `#![feature(lint_reasons)]`)
[#8504](https://github.com/rust-lang/rust-clippy/pull/8504)
* [`print_in_format_impl`]
[#8253](https://github.com/rust-lang/rust-clippy/pull/8253)
* [`unnecessary_find_map`]
[#8489](https://github.com/rust-lang/rust-clippy/pull/8489)
* [`or_then_unwrap`]
[#8561](https://github.com/rust-lang/rust-clippy/pull/8561)
* [`unnecessary_join`]
[#8579](https://github.com/rust-lang/rust-clippy/pull/8579)
* [`iter_with_drain`]
[#8483](https://github.com/rust-lang/rust-clippy/pull/8483)
* [`cast_enum_constructor`]
[#8562](https://github.com/rust-lang/rust-clippy/pull/8562)
* [`cast_slice_different_sizes`]
[#8445](https://github.com/rust-lang/rust-clippy/pull/8445)

### Moves and Deprecations

* Moved [`transmute_undefined_repr`] to `nursery` (now allow-by-default)
[#8432](https://github.com/rust-lang/rust-clippy/pull/8432)
* Moved [`try_err`] to `restriction`
[#8544](https://github.com/rust-lang/rust-clippy/pull/8544)
* Move [`iter_with_drain`] to `nursery`
[#8541](https://github.com/rust-lang/rust-clippy/pull/8541)
* Renamed `to_string_in_display` to [`recursive_format_impl`]
[#8188](https://github.com/rust-lang/rust-clippy/pull/8188)

### Enhancements

* [`dbg_macro`]: The lint level can now be set with crate attributes and works inside macros
[#8411](https://github.com/rust-lang/rust-clippy/pull/8411)
* [`ptr_as_ptr`]: Now works inside macros
[#8442](https://github.com/rust-lang/rust-clippy/pull/8442)
* [`use_self`]: Now works for variants in match expressions
[#8456](https://github.com/rust-lang/rust-clippy/pull/8456)
* [`await_holding_lock`]: Now lints for `parking_lot::{Mutex, RwLock}`
[#8419](https://github.com/rust-lang/rust-clippy/pull/8419)
* [`recursive_format_impl`]: Now checks for format calls on `self`
[#8188](https://github.com/rust-lang/rust-clippy/pull/8188)

### False Positive Fixes

* [`new_without_default`]: No longer lints for `new()` methods with `#[doc(hidden)]`
[#8472](https://github.com/rust-lang/rust-clippy/pull/8472)
* [`transmute_undefined_repr`]: No longer lints for single field structs with `#[repr(C)]`,
generic parameters, wide pointers, unions, tuples and allow several forms of type erasure
[#8425](https://github.com/rust-lang/rust-clippy/pull/8425)
[#8553](https://github.com/rust-lang/rust-clippy/pull/8553)
[#8440](https://github.com/rust-lang/rust-clippy/pull/8440)
[#8547](https://github.com/rust-lang/rust-clippy/pull/8547)
* [`match_single_binding`], [`match_same_arms`], [`match_as_ref`], [`match_bool`]: No longer
lint `match` expressions with `cfg`ed arms
[#8443](https://github.com/rust-lang/rust-clippy/pull/8443)
* [`single_component_path_imports`]: No longer lint on macros
[#8537](https://github.com/rust-lang/rust-clippy/pull/8537)
* [`ptr_arg`]: Allow `&mut` arguments for `Cow<_>`
[#8552](https://github.com/rust-lang/rust-clippy/pull/8552)
* [`needless_borrow`]: No longer lints for method calls
[#8441](https://github.com/rust-lang/rust-clippy/pull/8441)
* [`match_same_arms`]: Now ensures that interposing arm patterns don't overlap
[#8232](https://github.com/rust-lang/rust-clippy/pull/8232)
* [`default_trait_access`]: Now allows `Default::default` in update expressions
[#8433](https://github.com/rust-lang/rust-clippy/pull/8433)

### Suggestion Fixes/Improvements

* [`redundant_slicing`]: Fixed suggestion for a method calls
[#8218](https://github.com/rust-lang/rust-clippy/pull/8218)
* [`map_flatten`]: Long suggestions will now be split up into two help messages
[#8520](https://github.com/rust-lang/rust-clippy/pull/8520)
* [`unnecessary_lazy_evaluations`]: Now shows suggestions for longer code snippets
[#8543](https://github.com/rust-lang/rust-clippy/pull/8543)
* [`unnecessary_sort_by`]: Now suggests `Reverse` including the path
[#8462](https://github.com/rust-lang/rust-clippy/pull/8462)
* [`search_is_some`]: More suggestions are now `MachineApplicable`
[#8536](https://github.com/rust-lang/rust-clippy/pull/8536)

### Documentation Improvements

* [`new_without_default`]: Document `pub` requirement for the struct and fields
[#8429](https://github.com/rust-lang/rust-clippy/pull/8429)

## Rust 1.60

Expand Down Expand Up @@ -3182,6 +3283,7 @@ Released 2018-09-13
[`assign_op_pattern`]: https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern
[`assign_ops`]: https://rust-lang.github.io/rust-clippy/master/index.html#assign_ops
[`async_yields_async`]: https://rust-lang.github.io/rust-clippy/master/index.html#async_yields_async
[`await_holding_invalid_type`]: https://rust-lang.github.io/rust-clippy/master/index.html#await_holding_invalid_type
[`await_holding_lock`]: https://rust-lang.github.io/rust-clippy/master/index.html#await_holding_lock
[`await_holding_refcell_ref`]: https://rust-lang.github.io/rust-clippy/master/index.html#await_holding_refcell_ref
[`bad_bit_mask`]: https://rust-lang.github.io/rust-clippy/master/index.html#bad_bit_mask
Expand All @@ -3198,6 +3300,7 @@ Released 2018-09-13
[`boxed_local`]: https://rust-lang.github.io/rust-clippy/master/index.html#boxed_local
[`branches_sharing_code`]: https://rust-lang.github.io/rust-clippy/master/index.html#branches_sharing_code
[`builtin_type_shadow`]: https://rust-lang.github.io/rust-clippy/master/index.html#builtin_type_shadow
[`bytes_count_to_len`]: https://rust-lang.github.io/rust-clippy/master/index.html#bytes_count_to_len
[`bytes_nth`]: https://rust-lang.github.io/rust-clippy/master/index.html#bytes_nth
[`cargo_common_metadata`]: https://rust-lang.github.io/rust-clippy/master/index.html#cargo_common_metadata
[`case_sensitive_file_extension_comparisons`]: https://rust-lang.github.io/rust-clippy/master/index.html#case_sensitive_file_extension_comparisons
Expand Down Expand Up @@ -3262,6 +3365,7 @@ Released 2018-09-13
[`duplicate_underscore_argument`]: https://rust-lang.github.io/rust-clippy/master/index.html#duplicate_underscore_argument
[`duration_subsec`]: https://rust-lang.github.io/rust-clippy/master/index.html#duration_subsec
[`else_if_without_else`]: https://rust-lang.github.io/rust-clippy/master/index.html#else_if_without_else
[`empty_drop`]: https://rust-lang.github.io/rust-clippy/master/index.html#empty_drop
[`empty_enum`]: https://rust-lang.github.io/rust-clippy/master/index.html#empty_enum
[`empty_line_after_outer_attr`]: https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr
[`empty_loop`]: https://rust-lang.github.io/rust-clippy/master/index.html#empty_loop
Expand Down Expand Up @@ -3314,6 +3418,7 @@ Released 2018-09-13
[`forget_non_drop`]: https://rust-lang.github.io/rust-clippy/master/index.html#forget_non_drop
[`forget_ref`]: https://rust-lang.github.io/rust-clippy/master/index.html#forget_ref
[`format_in_format_args`]: https://rust-lang.github.io/rust-clippy/master/index.html#format_in_format_args
[`format_push_string`]: https://rust-lang.github.io/rust-clippy/master/index.html#format_push_string
[`from_iter_instead_of_collect`]: https://rust-lang.github.io/rust-clippy/master/index.html#from_iter_instead_of_collect
[`from_over_into`]: https://rust-lang.github.io/rust-clippy/master/index.html#from_over_into
[`from_str_radix_10`]: https://rust-lang.github.io/rust-clippy/master/index.html#from_str_radix_10
Expand Down Expand Up @@ -3356,6 +3461,7 @@ Released 2018-09-13
[`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
[`invisible_characters`]: https://rust-lang.github.io/rust-clippy/master/index.html#invisible_characters
[`is_digit_ascii_radix`]: https://rust-lang.github.io/rust-clippy/master/index.html#is_digit_ascii_radix
[`items_after_statements`]: https://rust-lang.github.io/rust-clippy/master/index.html#items_after_statements
[`iter_cloned_collect`]: https://rust-lang.github.io/rust-clippy/master/index.html#iter_cloned_collect
[`iter_count`]: https://rust-lang.github.io/rust-clippy/master/index.html#iter_count
Expand All @@ -3372,6 +3478,7 @@ Released 2018-09-13
[`large_const_arrays`]: https://rust-lang.github.io/rust-clippy/master/index.html#large_const_arrays
[`large_digit_groups`]: https://rust-lang.github.io/rust-clippy/master/index.html#large_digit_groups
[`large_enum_variant`]: https://rust-lang.github.io/rust-clippy/master/index.html#large_enum_variant
[`large_include_file`]: https://rust-lang.github.io/rust-clippy/master/index.html#large_include_file
[`large_stack_arrays`]: https://rust-lang.github.io/rust-clippy/master/index.html#large_stack_arrays
[`large_types_passed_by_value`]: https://rust-lang.github.io/rust-clippy/master/index.html#large_types_passed_by_value
[`len_without_is_empty`]: https://rust-lang.github.io/rust-clippy/master/index.html#len_without_is_empty
Expand Down Expand Up @@ -3472,6 +3579,7 @@ Released 2018-09-13
[`needless_lifetimes`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
[`needless_match`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_match
[`needless_option_as_deref`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_option_as_deref
[`needless_option_take`]: https://rust-lang.github.io/rust-clippy/master/index.html#needless_option_take
[`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
Expand Down Expand Up @@ -3527,6 +3635,7 @@ Released 2018-09-13
[`ptr_eq`]: https://rust-lang.github.io/rust-clippy/master/index.html#ptr_eq
[`ptr_offset_with_cast`]: https://rust-lang.github.io/rust-clippy/master/index.html#ptr_offset_with_cast
[`pub_enum_variant_names`]: https://rust-lang.github.io/rust-clippy/master/index.html#pub_enum_variant_names
[`pub_use`]: https://rust-lang.github.io/rust-clippy/master/index.html#pub_use
[`question_mark`]: https://rust-lang.github.io/rust-clippy/master/index.html#question_mark
[`range_minus_one`]: https://rust-lang.github.io/rust-clippy/master/index.html#range_minus_one
[`range_plus_one`]: https://rust-lang.github.io/rust-clippy/master/index.html#range_plus_one
Expand Down Expand Up @@ -3627,6 +3736,7 @@ Released 2018-09-13
[`transmute_undefined_repr`]: https://rust-lang.github.io/rust-clippy/master/index.html#transmute_undefined_repr
[`transmutes_expressible_as_ptr_casts`]: https://rust-lang.github.io/rust-clippy/master/index.html#transmutes_expressible_as_ptr_casts
[`transmuting_null`]: https://rust-lang.github.io/rust-clippy/master/index.html#transmuting_null
[`trim_split_whitespace`]: https://rust-lang.github.io/rust-clippy/master/index.html#trim_split_whitespace
[`trivial_regex`]: https://rust-lang.github.io/rust-clippy/master/index.html#trivial_regex
[`trivially_copy_pass_by_ref`]: https://rust-lang.github.io/rust-clippy/master/index.html#trivially_copy_pass_by_ref
[`try_err`]: https://rust-lang.github.io/rust-clippy/master/index.html#try_err
Expand All @@ -3650,6 +3760,7 @@ Released 2018-09-13
[`unnecessary_lazy_evaluations`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_lazy_evaluations
[`unnecessary_mut_passed`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_mut_passed
[`unnecessary_operation`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_operation
[`unnecessary_owned_empty_strings`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_owned_empty_strings
[`unnecessary_self_imports`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_self_imports
[`unnecessary_sort_by`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_sort_by
[`unnecessary_to_owned`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_to_owned
Expand Down
1 change: 1 addition & 0 deletions src/tools/clippy/clippy_dev/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ version = "0.0.1"
edition = "2021"

[dependencies]
aho-corasick = "0.7"
clap = "2.33"
indoc = "1.0"
itertools = "0.10.1"
Expand Down
1 change: 1 addition & 0 deletions src/tools/clippy/clippy_dev/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![feature(let_chains)]
#![feature(let_else)]
#![feature(once_cell)]
#![feature(rustc_private)]
Expand Down
Loading