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

Merged
merged 430 commits into from
Jul 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
430 commits
Select commit Hold shift + click to select a range
841f219
Auto merge of #10416 - Jarcho:explicit_iter_loop_ext, r=Manishearth
bors Jun 12, 2023
903fe3b
Auto merge of #10894 - Centri3:type_repetition_in_bounds, r=blyxyas,x…
bors Jun 12, 2023
52cfc99
Add lint `single_letter_idents`
Centri3 Jun 9, 2023
e2ecb13
rename the lint
Centri3 Jun 9, 2023
03c8db0
make cargo test pass + example
Centri3 Jun 9, 2023
7cdd87c
ignore generics and allow arbitrary threshold
Centri3 Jun 9, 2023
243943f
make it work for locals as well
Centri3 Jun 10, 2023
95d1bff
add to tests and configuration
Centri3 Jun 10, 2023
203e875
`cargo collect-metadata`
Centri3 Jun 10, 2023
29c1c6e
refactor and add link to issue
Centri3 Jun 11, 2023
a3b185b
Auto merge of #10916 - Centri3:single_letter_idents, r=blyxyas,xFrednet
bors Jun 12, 2023
7312a93
new lint: `large_stack_frames`
y21 May 25, 2023
760f91f
`cargo dev update_lints`
y21 May 25, 2023
52c6ef7
fmt
y21 May 25, 2023
6b232fd
use span_lint_and_note
y21 May 25, 2023
7aa4bab
rename "drawbacks" to "known issues"
y21 Jun 7, 2023
de7d43b
make lint description easier to read, prevent ICE
y21 Jun 8, 2023
c8c7a3c
fix rebase weirdness
y21 Jun 8, 2023
6ad7c6f
update lint_configuration.md
y21 Jun 11, 2023
ebafbfc
Auto merge of #10827 - y21:large-stack-frames, r=dswij
bors Jun 12, 2023
b095247
Auto merge of #10911 - lochetti:fix_9657, r=Alexendoo
bors Jun 12, 2023
b309875
[`useless_vec`]: detect unnecessary `vec![_]`
y21 Jun 12, 2023
50ba459
add- and fix existing tests
y21 Jun 12, 2023
5e20a57
Don't lint non-statement/faux empty `needless_if`s
Alexendoo Jun 12, 2023
1af23d2
Add test code
rsdy Feb 16, 2023
e707447
Boilerplate for the new lint
pksunkara Feb 16, 2023
5bb7681
Add hook
rsdy Feb 16, 2023
2902359
Add the lint to the lib
pksunkara Feb 16, 2023
0b1bb5f
Implement the lint
pksunkara Feb 16, 2023
21b88ce
Implement the lint for expect
pksunkara Feb 16, 2023
daf6197
Implement the suggestion
pksunkara Feb 16, 2023
1d159e7
Recognize `Ok`
rsdy Feb 16, 2023
8f83502
Recognize `unwrap_or` methods
pksunkara Feb 16, 2023
7ed7283
Recognize `unwrap_or_else` method
pksunkara Feb 16, 2023
6e0e09c
Track init and unwrap of expr
rsdy Feb 16, 2023
69af0e1
Recognize `Err`
pksunkara Feb 16, 2023
6e4dc93
Support suggesting panics
pksunkara Feb 16, 2023
6cf138e
Add more tests
pksunkara Feb 16, 2023
6e4c556
Preserve type annotations when present
pksunkara May 31, 2023
bfd5aba
Fix all the other tests
pksunkara May 31, 2023
6702c7a
Add lint [`single_range_in_vec_init`]
Centri3 Jun 12, 2023
da56c35
Auto merge of #10933 - y21:issue2262-followup, r=Centri3
bors Jun 12, 2023
7c2bf28
Auto merge of #10358 - pksunkara:unnecessary-unwrap, r=llogiq
bors Jun 12, 2023
8a1f0cd
Auto merge of #10935 - Alexendoo:needless-if-cases, r=Manishearth
bors Jun 13, 2023
357e80e
Ignore more type aliases in `unnecessary_cast`
Centri3 Jun 13, 2023
d5b2f11
Now `cargo collect-metadata` updates the `CHANGELOG.md`
blyxyas Jun 11, 2023
5164458
Auto merge of #10889 - blyxyas:link-config-desc, r=flip1995
bors Jun 13, 2023
bcaf655
Remove dead code in `needless_pass_by_value`
GuillaumeGomez Jun 13, 2023
72332b2
Auto merge of #10944 - GuillaumeGomez:cleanup-needless-pass-by-value,…
bors Jun 13, 2023
9bc5a14
remove `in_move`
Centri3 Jun 11, 2023
d255e7a
[`no_effect`]: suggest adding `return` if applicable
Centri3 Jun 13, 2023
eefc2a0
Auto merge of #10891 - Centri3:missing_const_for_fn, r=Jarcho
bors Jun 13, 2023
74a0c9c
[`needless_lifetimes`]' suggestion now points at the lifetimes
Centri3 Jun 13, 2023
d272540
[`borrow_as_ptr`]: Ignore temporaries
Centri3 Jun 13, 2023
062b209
Ignore `main()` in `no_test` code fences
KisaragiEffective Jun 14, 2023
a5d05f2
run `cargo dev fmt`
KisaragiEffective Jun 14, 2023
867bd15
add main function to test itself
KisaragiEffective Jun 14, 2023
1b7fb40
Auto merge of #10947 - Centri3:needless_lifetimes, r=llogiq
bors Jun 14, 2023
b9b4537
Auto merge of #10945 - Centri3:no_effect, r=llogiq
bors Jun 14, 2023
a59236f
Auto merge of #10919 - y21:issue10579, r=blyxyas,xFrednet
bors Jun 14, 2023
1d0d686
Auto merge of #10950 - KisaragiEffective:ignore_main_in_notest_doc_bl…
bors Jun 14, 2023
72aa180
use rustc's criteria for a temporary
Centri3 Jun 14, 2023
79f93a6
missing_panics_doc: pickup expect method
KisaragiEffective Jun 14, 2023
2fa72c7
bless
KisaragiEffective Jun 14, 2023
aff9c01
address or allow clippy::missing_panics_doc in clippy-dev
KisaragiEffective Jun 14, 2023
27a701a
[`match_same_arms`]: don't lint if `non_exhaustive_omitted_patterns`
Centri3 Jun 13, 2023
830d307
refactor a bit
Centri3 Jun 12, 2023
2ba1926
[`derivable_impls`]: don't lint if expr unsize-coerces
y21 Jun 14, 2023
5b6ba20
fmt
y21 Jun 14, 2023
fcb9a38
dogfood
y21 Jun 14, 2023
4795c91
fix internal lints
y21 Jun 14, 2023
ffe9525
Auto merge of #10954 - y21:issue10158, r=llogiq
bors Jun 14, 2023
69e892e
get rid of unnecessary function pointer
y21 Jun 14, 2023
d102e22
move check_fold_with_op function out
y21 Jun 14, 2023
823d9dd
Auto merge of #10934 - Centri3:single_range_in_vec_init, r=giraffate
bors Jun 14, 2023
2dd452f
Auto merge of #10931 - y21:issue10000, r=Jarcho
bors Jun 15, 2023
eee3112
Auto merge of #10840 - Alexendoo:from-over-into-expanded-path, r=dswij
bors Jun 15, 2023
a35c78f
Extend `unused_must_use` to cover block exprs
jieyouxu Jun 11, 2023
a899034
Don't lint `excessive_precision` on inf
Centri3 Jun 14, 2023
67d5e6e
add lint [`needless_clone_impl`]
Centri3 Jun 11, 2023
10cc168
rename lint and disallow `clone_from`
Centri3 Jun 13, 2023
2748ab9
new lint: `drain_collect`
y21 May 26, 2023
d2a6ec2
take into account reborrowing when inserting `&mut` in sugg
y21 May 26, 2023
3f3657a
make clippy happy
y21 May 26, 2023
20ae597
add a description
y21 Jun 8, 2023
5821fbb
add test case for not whole length, move sugg into variable
y21 Jun 15, 2023
cda13a8
Auto merge of #10946 - Centri3:match_same_arms, r=blyxyas,xFrednet
bors Jun 15, 2023
3fe2478
don't unnecessarily walk more in visitor and add more tests
y21 Jun 15, 2023
ee67c79
Auto merge of #10835 - y21:drain-collect, r=dswij
bors Jun 16, 2023
73cd2cd
merge test
KisaragiEffective Jun 16, 2023
73c0c14
improve grammer in comment sentence
KisaragiEffective Jun 16, 2023
87b5f89
Auto merge of #10925 - Centri3:needless_clone_impl2, r=xFrednet
bors Jun 16, 2023
43ecf8e
Auto merge of #10953 - KisaragiEffective:missing_panics_doc_trigger_o…
bors Jun 16, 2023
a94aac6
Refactor to make following commit pass single_match_else lint
not-my-profile Jun 16, 2023
894d5da
Make `--explain` subcommand return 1 for missing lints
not-my-profile Jun 16, 2023
e11f36c
Auto merge of #10965 - not-my-profile:explain-status, r=Alexendoo
bors Jun 16, 2023
3217f8a
Auto merge of #10942 - Centri3:unnecessary_cast, r=llogiq
bors Jun 16, 2023
5777494
Add `AliasKind::Weak` for type aliases.
oli-obk Mar 7, 2023
60b7fde
Adapt versions.html file to cleaned up gh-pages
flip1995 Jun 2, 2023
baf3680
Auto merge of #10876 - flip1995:gh-pages-cleanup-repo, r=flip1995
bors Jun 17, 2023
445f428
Fix version.py after deleting v* dirs
flip1995 Jun 17, 2023
965f4a8
Auto merge of #10973 - flip1995:fix-version-py-script, r=flip1995
bors Jun 17, 2023
520228b
Adding configuration to allow safety comment above stmt containing un…
lochetti Jun 4, 2023
e2e6a02
Addressing reviewer comments
lochetti Jun 5, 2023
8625a84
adding all ui tests to the configuration test as well
lochetti Jun 8, 2023
d610201
Collecting metadata
lochetti Jun 17, 2023
bb78d76
Auto merge of #10886 - lochetti:fix_10832, r=Centri3,xFrednet
bors Jun 17, 2023
1f621af
Exlude `todo!()` from `missing_panics_in_doc`
dswij Jun 17, 2023
a6346d7
`missing_panics_in_doc` bless test and add additional macro testcase
dswij Jun 17, 2023
8c8ff5f
Auto merge of #10976 - dswij:issue-10966, r=Alexendoo
bors Jun 17, 2023
6331c94
include a ref if argument is not just a numeric literal
y21 Jun 17, 2023
0e1caa7
Fix #10792
c410-f3r Jun 17, 2023
dbe4057
Dogfood
c410-f3r Jun 17, 2023
26e78e7
Fix `find_format_arg_expr` when incremental compilation is enabled
Alexendoo Jun 17, 2023
bc41b2c
Move WF goal to clause
compiler-errors Jun 15, 2023
f28ec85
Move ConstEvaluatable to Clause
compiler-errors Jun 15, 2023
07dbcbd
new lint `single_call_fn`
Centri3 Jun 14, 2023
a860526
add test for closures
Centri3 Jun 14, 2023
65b93a5
Fix false positive of [self_named_module_files] and [mod_module_files]
hehaoqian Jun 17, 2023
45a685e
Better error for non const `PartialEq` call generated by `match`
fee1-dead Jun 18, 2023
f711c7e
Treat TAIT equation as always ambiguous in coherence
compiler-errors Jun 18, 2023
2cd4a91
Ignore functions annotated with `#[test]`
Centri3 Jun 18, 2023
e11ebbd
Move continue into if statement
hehaoqian Jun 19, 2023
06b444b
Auto merge of #10951 - Centri3:single_call_fn, r=giraffate
bors Jun 19, 2023
66590ba
use PlaceRef abstractions
ericmarkmartin Jun 19, 2023
9bc6e11
add non-test-case for suggesting const on functions accessing union f…
ericmarkmartin Jun 19, 2023
efec6d6
Support `ast::ExprKind::Become` in clippy
WaffleLapkin Jun 19, 2023
b2c7ce8
s/Clause/ClauseKind
compiler-errors Jun 16, 2023
d7e7234
[`single_match`]: don't lint if block contains comments
y21 Jun 19, 2023
ebcbba9
Auto merge of #10980 - Alexendoo:format-args-incremental-spans, r=dswij
bors Jun 19, 2023
2e856fa
add test for block comment and add note to description
y21 Jun 19, 2023
62c9e0b
Ignore in-proc-macros items
blyxyas Jun 19, 2023
c8c03ea
Auto merge of #10793 - c410-f3r:bbbbbbbbbbb, r=xFrednet
bors Jun 19, 2023
f396004
Auto merge of #10975 - hehaoqian:fix_self_named_module_files, r=Centr…
bors Jun 19, 2023
5b60388
Auto merge of #10930 - y21:issue9956, r=blyxyas,xFrednet
bors Jun 19, 2023
9a65f46
Rollup merge of #112232 - fee1-dead-contrib:match-eq-const-msg, r=b-n…
compiler-errors Jun 20, 2023
89294e1
Auto merge of #10992 - blyxyas:fix-test_case_lib, r=Manishearth
bors Jun 20, 2023
1919dff
Auto merge of #10989 - ericmarkmartin:use-placeref-abstraction, r=Man…
bors Jun 20, 2023
cc2e49f
allow safety comment above attributes
Centri3 Jun 18, 2023
8fd021f
Auto merge of #10986 - Centri3:undocumented_unsafe_blocks, r=Manishearth
bors Jun 20, 2023
5da6174
Auto merge of #10990 - y21:issue8634-partial, r=blyxyas,xFrednet
bors Jun 20, 2023
62972ae
Auto merge of #10952 - Centri3:excessive_precision, r=dswij
bors Jun 20, 2023
87c28b9
[`type_repetition_in_bounds`]: respect msrv for combining maybe bounds
y21 Jun 20, 2023
765a6e4
put issue link between <>
y21 Jun 20, 2023
d8d5996
Lint `mem_forget` if fields are `Drop`
Centri3 Jun 20, 2023
e3b601a
Add WebAssembly to allowed idents
Centri3 Jun 20, 2023
73e31d1
Auto merge of #10999 - Centri3:doc_markdown, r=Alexendoo
bors Jun 21, 2023
3b89984
add WebAssembly to test
Centri3 Jun 21, 2023
b3ae038
Auto merge of #11000 - Centri3:doc_markdown, r=giraffate
bors Jun 21, 2023
70c2d0c
Auto merge of #106450 - albertlarsan68:fix-arc-ptr-eq, r=Amanieu
bors Jun 21, 2023
6d4c257
Rollup merge of #112772 - compiler-errors:clauses-1, r=lcnr
Noratrieb Jun 21, 2023
0c94826
Rollup merge of #112790 - WaffleLapkin:syntactically, r=Nilstrieb
Noratrieb Jun 21, 2023
3122e3d
use let chains, move assignments out of block, add tests
y21 Jun 21, 2023
bdb2a17
declare needs_ref later
y21 Jun 21, 2023
a2b99d8
Auto merge of #112877 - Nilstrieb:rollup-5g5hegl, r=Nilstrieb
bors Jun 21, 2023
716305d
[`question_mark`]: don't lint inside of `try` block
y21 Jun 21, 2023
b3fd7b8
Auto merge of #10948 - Centri3:borrow_as_ptr, r=dswij
bors Jun 21, 2023
b6f194b
move to `drop_forget_ref`
Centri3 Jun 21, 2023
242807a
Don't lint `iter_nth_zero` in `next`
Centri3 Jun 20, 2023
9fa4089
Auto merge of #10993 - Centri3:iter_nth_zero, r=Manishearth
bors Jun 21, 2023
6ec2388
Auto merge of #10979 - y21:issue9909, r=giraffate
bors Jun 21, 2023
6a1084c
Check if `if` conditions always evaluate to true in `never_loop`
Centri3 Jun 22, 2023
33b6d0d
rename MSRV alias, add MSRV to lint doc
y21 Jun 22, 2023
533a819
Migrate item_bounds to ty::Clause
compiler-errors Jun 19, 2023
75f9fbc
update lint configuration
y21 Jun 23, 2023
ce0a48a
Auto merge of #10994 - y21:issue8772, r=giraffate
bors Jun 23, 2023
db4efe3
Don't lint `ptr_arg` when return type uses Cow's lifetime
Centri3 Jun 24, 2023
3cee98d
Auto merge of #11019 - Centri3:ptr_arg, r=llogiq
bors Jun 24, 2023
fe856d3
[`format_push_string`]: look through match, if, if-let
y21 Jun 24, 2023
1b4c423
Auto merge of #11021 - y21:issue9493, r=llogiq
bors Jun 24, 2023
f0eb40c
Avoid linting on procedural macros
lochetti Jun 24, 2023
23d7a07
Do not offer any of the suggestions in emit_coerce_suggestions for ex…
chenyukang Jun 5, 2023
a30ca62
Auto merge of #11022 - lochetti:fix_11014, r=dswij
bors Jun 25, 2023
a5ae904
make note less verbose
Centri3 Jun 25, 2023
78e36d9
Auto merge of #10996 - Centri3:mem_forget, r=xFrednet
bors Jun 25, 2023
407bfd4
Auto merge of #11005 - Centri3:never_loop, r=giraffate
bors Jun 26, 2023
555bd98
Support `hir::ExprKind::Become` in clippy
WaffleLapkin Jun 21, 2023
aea731e
update changelog's data ranges
blyxyas Jun 25, 2023
2a9cc31
Auto merge of #11027 - blyxyas:dates_changelog, r=Manishearth
bors Jun 26, 2023
a9e0bbb
Auto merge of #112887 - WaffleLapkin:become_unuwuable_in_hir, r=compi…
bors Jun 26, 2023
514b6d0
Port clippy away from compiletest to ui_test
oli-obk Feb 28, 2023
5bd97ac
Update tests
oli-obk Apr 20, 2023
0a87ce8
Find the right `cargo-clippy` binary in CI
oli-obk Jun 26, 2023
15ed281
Auto merge of #10426 - oli-obk:ui_test, r=Manishearth
bors Jun 26, 2023
733a9ea
[`option_if_let_else`]: suggest `.as_ref()` if `&Option<_>`
y21 Jun 26, 2023
d295067
Don't lint code from external macros
Centri3 Jun 23, 2023
716c552
Migrate predicates_of and caller_bounds to Clause
compiler-errors Jun 22, 2023
9b7d8d1
suggests `is_some_and` over `map().unwrap_or(false)`
darklyspaced Jun 26, 2023
c60222d
changed the msrv to 1.70 to suggest `is_some_and`
darklyspaced Jun 26, 2023
b832175
now passes dogfood by wrapping unwrap_recv and unwrap_arg into a tuple
darklyspaced Jun 26, 2023
c378bf9
Revert "now passes dogfood by wrapping unwrap_recv and unwrap_arg int…
darklyspaced Jun 26, 2023
ca00b13
ignore too_many_arguments on `check`
darklyspaced Jun 26, 2023
a693cbc
changed msrv name for consistency & changed nested if for style
darklyspaced Jun 27, 2023
ecdea8c
Auto merge of #11009 - Centri3:unneeded_field_pat, r=dswij
bors Jun 27, 2023
1bf74fc
add `needless_raw_string_hashes` lint
Centri3 Jun 3, 2023
bc744eb
new lint `needless_raw_string` + refactor a bit
Centri3 Jun 8, 2023
ec765d9
Update raw_strings.rs
Centri3 Jun 8, 2023
cb52d19
don't lint `needless_raw_string_hashes` when it's unnecessary
Centri3 Jun 10, 2023
8cb6c86
change category and refactor
Centri3 Jun 15, 2023
9a8347d
New lint [`redundant_rest_pattern`]
Centri3 Jun 23, 2023
e9ced12
Rename the lint
Centri3 Jun 27, 2023
2ac2dc1
Provide more context for `rustc +nightly -Zunstable-options` on stable
jieyouxu Jun 22, 2023
76de556
Add BLESS for compile-test and some cleanup
Alexendoo Jun 27, 2023
c710b48
Auto merge of #10884 - Centri3:needless_raw_string_hashes, r=dswij
bors Jun 27, 2023
95ab05d
Fix compile-test under cargo nextest
Alexendoo Jun 27, 2023
2e32905
Auto merge of #11041 - Alexendoo:nextest, r=Manishearth
bors Jun 27, 2023
6ce656f
Auto merge of #11039 - Alexendoo:bless, r=llogiq
bors Jun 27, 2023
a43bfef
[`unused_async`]: don't lint on async trait impls
y21 Jun 27, 2023
1d4afc5
new lint: `manual_range_pattern`
y21 Jun 16, 2023
b592d39
manual_range_pattern -> manual_range_patterns
y21 Jun 20, 2023
8647e29
Use substring matching for TESTNAME
Alexendoo Jun 27, 2023
9e57657
Auto merge of #10968 - y21:manual_range_pat, r=Centri3
bors Jun 27, 2023
3376c71
Add note to remove `if` statement altogether
Centri3 Jun 28, 2023
1df9110
Auto merge of #11043 - Alexendoo:testname, r=Jarcho
bors Jun 28, 2023
8296a33
new lints for visibility
Centri3 Jun 16, 2023
46aa8ab
Change category and update to `ui_test`
Centri3 Jun 27, 2023
36f4feb
Auto merge of #10967 - Centri3:visibility_lints2, r=Manishearth
bors Jun 28, 2023
b713cd5
move `is_in_trait_method` to utils and rename
y21 Jun 28, 2023
750c7a1
Auto merge of #11042 - y21:issue10459, r=Manishearth
bors Jun 28, 2023
70610c0
lint in nested bodies if `try` is in outer body
y21 Jun 28, 2023
cee4c41
allow dead code in the test
y21 Jun 28, 2023
ea4c5c5
Auto merge of #11035 - y21:issue10729, r=Jarcho
bors Jun 28, 2023
10ce1a6
Auto merge of #11001 - y21:issue8628, r=Jarcho
bors Jun 28, 2023
211278b
updated list of lints that use msrv
darklyspaced Jun 29, 2023
bb42b18
ran `cargo collect-metadata`
darklyspaced Jun 29, 2023
9020937
Auto merge of #11030 - darklyspaced:master, r=Centri3,xFrednet
bors Jun 29, 2023
bfcc8ba
New lint `tuple_array_conversions`
Centri3 Jun 24, 2023
b1acbde
Add msrv check and make test pass
Centri3 Jun 24, 2023
95b24d4
Fix FP
Centri3 Jun 24, 2023
826edd7
heavily refactor
Centri3 Jun 24, 2023
f061902
Fix #10413
c410-f3r May 14, 2023
fc832f0
Dogfood
c410-f3r Jun 29, 2023
3d4c536
Auto merge of #11013 - Centri3:redundant_rest_pattern, r=giraffate
bors Jun 29, 2023
73f1417
Auto merge of #10774 - c410-f3r:lock-1, r=Jarcho
bors Jun 30, 2023
8010c34
Merge remote-tracking branch 'upstream/master' into rustup
flip1995 Jun 29, 2023
30d08d3
Bump nightly version -> 2023-06-29
flip1995 Jun 30, 2023
2c40b99
Auto merge of #11048 - flip1995:rustup, r=flip1995
bors Jun 30, 2023
efac838
Make `eq_op` suggest `.is_nan()`
Centri3 Jun 30, 2023
464edbe
Auto merge of #11051 - Centri3:eq_op, r=llogiq
bors Jun 30, 2023
c7bf05c
Auto merge of #11020 - Centri3:tuple_array_conversion, r=llogiq
bors Jul 1, 2023
354172a
New lint `manual_try_fold`
Centri3 Jun 23, 2023
24039ca
Add msrv tests
Centri3 Jun 23, 2023
04b0857
Typo
Centri3 Jun 25, 2023
fbb3f75
update docs
Centri3 Jun 26, 2023
cb5d7e3
address comments
Centri3 Jun 29, 2023
37f4c17
Auto merge of #11012 - Centri3:manual_try_fold, r=blyxyas,xFrednet
bors Jul 1, 2023
beb0e73
Merge commit '37f4c1725d3fd7e9c3ffd8783246bc5589debc53' into clippyup
flip1995 Jul 2, 2023
0cbe963
Fix valtree changes
flip1995 Jul 2, 2023
de69d55
Fix compile-test tests to work with the new ui_test crate
flip1995 Jul 2, 2023
a6d3c82
Update Cargo.lock
flip1995 Jul 2, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
97 changes: 38 additions & 59 deletions Cargo.lock
Original file line number Diff line number Diff line change
Expand Up @@ -343,9 +343,9 @@ checksum = "14c189c53d098945499cdfa7ecc63567cf3886b3332b312a5b4585d8d3a6a610"

[[package]]
name = "bytes"
version = "1.0.1"
version = "1.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b700ce4376041dcd0a327fd0097c41095743c4c8af8887265942faf1100bd040"
checksum = "89b2fd2a0dcf38d7971e2194b6b6eebab45ae01067456a7fd93d5547a61b70be"

[[package]]
name = "camino"
Expand Down Expand Up @@ -536,27 +536,16 @@ checksum = "8a2dd5a6fe8c6e3502f568a6353e5273bbb15193ad9a89e457b9970798efbea1"
name = "clippy"
version = "0.1.72"
dependencies = [
"clap",
"clippy_lints",
"clippy_utils",
"compiletest_rs",
"derive-new",
"filetime",
"futures",
"if_chain",
"itertools",
"parking_lot 0.12.1",
"quote",
"regex",
"rustc-semver",
"rustc_tools_util",
"serde",
"syn 2.0.8",
"tempfile",
"termize",
"tester",
"tokio",
"toml 0.7.4",
"ui_test",
"walkdir",
]

Expand Down Expand Up @@ -585,6 +574,7 @@ dependencies = [
"itertools",
"pulldown-cmark",
"quine-mc_cluskey",
"regex",
"regex-syntax 0.7.1",
"rustc-semver",
"semver",
Expand All @@ -597,6 +587,24 @@ dependencies = [
"url",
]

[[package]]
name = "clippy_test_deps"
version = "0.1.0"
dependencies = [
"clippy_lints",
"clippy_utils",
"derive-new",
"futures",
"if_chain",
"itertools",
"parking_lot 0.12.1",
"quote",
"regex",
"serde",
"syn 2.0.8",
"tokio",
]

[[package]]
name = "clippy_utils"
version = "0.1.72"
Expand Down Expand Up @@ -677,7 +685,7 @@ dependencies = [
"glob",
"lazycell",
"libc",
"miow 0.5.0",
"miow",
"miropt-test-tools",
"once_cell",
"regex",
Expand All @@ -691,29 +699,6 @@ dependencies = [
"windows",
]

[[package]]
name = "compiletest_rs"
version = "0.10.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e2731272cf25196735df1b52ab5bcba22cf9f99455626c4c8dc092bd5f7f66d0"
dependencies = [
"diff",
"filetime",
"getopts",
"lazy_static",
"libc",
"log",
"miow 0.3.7",
"regex",
"rustfix",
"serde",
"serde_derive",
"serde_json",
"tempfile",
"tester",
"winapi",
]

[[package]]
name = "concolor-override"
version = "1.0.0"
Expand Down Expand Up @@ -881,9 +866,9 @@ dependencies = [

[[package]]
name = "derive-new"
version = "0.5.8"
version = "0.5.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "71f31892cd5c62e414316f2963c5689242c43d8e7bbcaaeca97e5e28c95d91d9"
checksum = "3418329ca0ad70234b9735dc4ceed10af4df60eff9c8e7b06cb5e520d92c3535"
dependencies = [
"proc-macro2",
"quote",
Expand Down Expand Up @@ -2156,15 +2141,6 @@ dependencies = [
"rustc-std-workspace-core",
]

[[package]]
name = "miow"
version = "0.3.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b9f1c5b025cda876f66ef43a113f91ebc9f4ccef34843000e0adf6ebbab84e21"
dependencies = [
"winapi",
]

[[package]]
name = "miow"
version = "0.5.0"
Expand Down Expand Up @@ -2386,7 +2362,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3742b2c103b9f06bc9fff0a37ff4912935851bee6d36f3c02bcc755bcfec228f"
dependencies = [
"lock_api",
"parking_lot_core 0.9.4",
"parking_lot_core 0.9.8",
]

[[package]]
Expand All @@ -2405,15 +2381,15 @@ dependencies = [

[[package]]
name = "parking_lot_core"
version = "0.9.4"
version = "0.9.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4dc9e0dc2adc1c69d09143aff38d3d30c5c3f0df0dad82e6d25547af174ebec0"
checksum = "93f00c865fe7cabf650081affecd3871070f26767e7b2070a3ffae14c654b447"
dependencies = [
"cfg-if",
"libc",
"redox_syscall 0.2.10",
"redox_syscall 0.3.5",
"smallvec",
"windows-sys 0.42.0",
"windows-targets 0.48.0",
]

[[package]]
Expand Down Expand Up @@ -4467,9 +4443,12 @@ checksum = "fa8f3741c7372e75519bd9346068370c9cdaabcc1f9599cbcf2a2719352286b7"

[[package]]
name = "slab"
version = "0.4.2"
version = "0.4.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c111b5bd5695e56cffe5129854aa230b39c93a305372fdbb2668ca2394eea9f8"
checksum = "6528351c9bc8ab22353f9d776db39a20288e8d6c37ef8cfe3317cf875eecfc2d"
dependencies = [
"autocfg",
]

[[package]]
name = "smallvec"
Expand Down Expand Up @@ -4901,14 +4880,14 @@ checksum = "cda74da7e1a664f795bb1f8a87ec406fb89a02522cf6e50620d016add6dbbf5c"

[[package]]
name = "tokio"
version = "1.28.2"
version = "1.29.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "94d7b1cfd2aa4011f2de74c2c4c63665e27a71006b0a192dcd2710272e73dfa2"
checksum = "532826ff75199d5833b9d2c5fe410f29235e25704ee5f0ef599fb51c21f4a4da"
dependencies = [
"autocfg",
"backtrace",
"bytes",
"pin-project-lite",
"windows-sys 0.48.0",
]

[[package]]
Expand Down
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ members = [
"src/tools/cargotest",
"src/tools/clippy",
"src/tools/clippy/clippy_dev",
"src/tools/clippy/clippy_test_deps",
"src/tools/compiletest",
"src/tools/error_index_generator",
"src/tools/linkchecker",
Expand Down
22 changes: 5 additions & 17 deletions src/bootstrap/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -788,27 +788,15 @@ impl Step for Clippy {
cargo.add_rustc_lib_path(builder, compiler);
let mut cargo = prepare_cargo_test(cargo, &[], &[], "clippy", compiler, host, builder);

// propagate --bless
if builder.config.cmd.bless() {
cargo.env("BLESS", "Gesundheit");
}

if builder.try_run(&mut cargo).is_ok() {
// The tests succeeded; nothing to do.
return;
}

if !builder.config.cmd.bless() {
crate::detail_exit_macro!(1);
}

let mut cargo = builder.cargo(compiler, Mode::ToolRustc, SourceType::InTree, host, "run");
cargo.arg("-p").arg("clippy_dev");
// clippy_dev gets confused if it can't find `clippy/Cargo.toml`
cargo.current_dir(&builder.src.join("src").join("tools").join("clippy"));
if builder.config.rust_optimize.is_release() {
cargo.env("PROFILE", "release");
} else {
cargo.env("PROFILE", "debug");
}
cargo.arg("--");
cargo.arg("bless");
builder.run(&mut cargo.into());
}
}

Expand Down
2 changes: 2 additions & 0 deletions src/tools/clippy/.cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
[alias]
uitest = "test --test compile-test"
uibless = "test --test compile-test -- -- --bless"
bless = "test -- -- --bless"
dev = "run --package clippy_dev --bin clippy_dev --manifest-path clippy_dev/Cargo.toml --"
lintcheck = "run --package lintcheck --bin lintcheck --manifest-path lintcheck/Cargo.toml -- "
collect-metadata = "test --test dogfood --features internal -- run_metadata_collection_lint --ignored"
Expand Down
1 change: 0 additions & 1 deletion src/tools/clippy/.github/workflows/clippy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ env:
CARGO_TARGET_DIR: '${{ github.workspace }}/target'
NO_FMT_TEST: 1
CARGO_INCREMENTAL: 0
CARGO_UNSTABLE_SPARSE_REGISTRY: true

jobs:
base:
Expand Down
1 change: 0 additions & 1 deletion src/tools/clippy/.github/workflows/clippy_bors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ env:
CARGO_TARGET_DIR: '${{ github.workspace }}/target'
NO_FMT_TEST: 1
CARGO_INCREMENTAL: 0
CARGO_UNSTABLE_SPARSE_REGISTRY: true

defaults:
run:
Expand Down
1 change: 0 additions & 1 deletion src/tools/clippy/.github/workflows/clippy_dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ on:
env:
RUST_BACKTRACE: 1
CARGO_INCREMENTAL: 0
CARGO_UNSTABLE_SPARSE_REGISTRY: true

jobs:
clippy_dev:
Expand Down
Loading
Loading