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

Clippy subtree update #121677

Merged
merged 223 commits into from
Feb 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
223 commits
Select commit Hold shift + click to select a range
84e7974
Add autofix for functions in unnecessary_fallible_conversions
roife Jan 1, 2024
69cc983
Add tests for autofix in unnecessary_fallible_conversions
roife Jan 1, 2024
094ce3d
Add comments for unnecessary_fallible_conversions
roife Jan 1, 2024
1cce757
Add error-annotations in tests for unnecessary_fallible_conversions
roife Jan 1, 2024
eb05b07
Move qpath_spans into FunctionKind
roife Feb 2, 2024
e83c7d4
Refactor sugg builder in unnecessary_fallible_conversions
roife Feb 2, 2024
015ac10
Refactor machine_applicable_sugg in unnecessary_fallible_conversions
roife Feb 2, 2024
fb9fd51
Remove wildcard usage for patterns
roife Feb 3, 2024
68f6dd4
Add y21 to the review rotation
Alexendoo Feb 5, 2024
998c722
Invert diagnostic lints.
nnethercote Feb 5, 2024
b168c20
hir: Make sure all `HirId`s have corresponding HIR `Node`s
petrochenkov Jan 20, 2024
b247f41
hir: Remove `fn opt_hir_id` and `fn opt_span`
petrochenkov Jan 21, 2024
c8d57e8
Use correct param env in clippy
compiler-errors Feb 7, 2024
3c76b2c
Merging the calculation of sugg and applicability
roife Feb 8, 2024
96ff004
inline a function that is only used in clippy
oli-obk Feb 1, 2024
7a82702
Auto merge of #120767 - matthiaskrgr:rollup-0k8ib1c, r=matthiaskrgr
bors Feb 8, 2024
6ca819f
Add a new debug_assertions instrinsic (compiler)
saethlin Feb 7, 2024
f3b3d23
Merge commit '60cb29c5e4f9772685c9873752196725c946a849' into clippyup
flip1995 Feb 8, 2024
0d69602
(NOT INCLUDE IN RUST-SYNC) Temporary vacation to focus on performance
blyxyas Feb 9, 2024
fb398a5
Auto merge of #12251 - blyxyas:on-vacation, r=blyxyas
bors Feb 9, 2024
419001d
Rollup merge of #120693 - nnethercote:invert-diagnostic-lints, r=davi…
matthiaskrgr Feb 9, 2024
e0caf39
Auto merge of #120843 - matthiaskrgr:rollup-med37z5, r=matthiaskrgr
bors Feb 9, 2024
28443e6
Auto merge of #12070 - roife:fix/issue-12034, r=Centri3
bors Feb 9, 2024
8f00ffc
Rollup merge of #120806 - flip1995:clippy-subtree-update, r=Manishearth
matthiaskrgr Feb 9, 2024
4a5e30d
Refactor a portion of 'non_expressive_names.rs' for clarity
tgross35 Feb 10, 2024
09f18f6
[similar_names] don't raise if the first character is different
tgross35 Feb 10, 2024
5250afb
Remove '#[expect(clippy::similar_names)]' where needed to pass dogfoo…
tgross35 Feb 10, 2024
fc8f662
hir: Remove `hir::Map::{opt_parent_id,parent_id,get_parent,find_parent}`
petrochenkov Feb 9, 2024
92537a0
add test case with a proc macro `fake_desugar_await`
J-ZhengLi Dec 29, 2023
9012d55
Don't lint `incompatible_msrv` in test code
Jarcho Feb 10, 2024
b3b9919
[`to_string_trait_impl`]: take specialization into account
y21 Feb 10, 2024
e67b7e0
Auto merge of #12258 - tgross35:similiar-names-update, r=Alexendoo
bors Feb 10, 2024
51c89a4
Auto merge of #12264 - y21:issue12263, r=Jarcho
bors Feb 10, 2024
c4d1108
fix: ICE when array index exceeds usize
granddaifuku Feb 10, 2024
ac7c6e5
Don't allow derive macros to silence `disallowed_macros` for their ow…
Jarcho Feb 10, 2024
d1acbf5
extract supertrait collection to separate function
y21 Feb 10, 2024
a38f44c
extract finding implied bound to separate function
y21 Feb 10, 2024
a595a2c
Minor refactor format-impls
nyurik Feb 11, 2024
d29f2ee
Auto merge of #12261 - Jarcho:issue_12257, r=dswij
bors Feb 11, 2024
67bdb0e
[`incompatible_msrv`]: allow expressions that come from desugaring
y21 Feb 11, 2024
2b89cd4
fix broken URL in `Lint Configuration`
Luk-ESC Feb 11, 2024
ae38a67
Auto merge of #12272 - Luk-ESC:master, r=xFrednet
bors Feb 11, 2024
9a253fa
Auto merge of #12269 - y21:implied_bounds_in_impls_refactor, r=xFrednet
bors Feb 11, 2024
d427b70
Auto merge of #12274 - nyurik:nit-format-impl, r=xFrednet
bors Feb 11, 2024
fff46c1
Auto merge of #12231 - Alexendoo:y21, r=y21
bors Feb 11, 2024
92616c0
[`implied_bounds_in_impls`]: avoid linting on overlapping associated …
y21 Nov 26, 2023
4cc7b7e
stop linting [`blocks_in_conditions`] on `match` on proc macros
J-ZhengLi Feb 11, 2024
9b20212
Auto merge of #12040 - J-ZhengLi:issue12016, r=y21
bors Feb 11, 2024
a18e0a1
Extend `NONMINIMAL_BOOL` lint
GuillaumeGomez Feb 8, 2024
5e7c437
Extend `NONMINIMAL_BOOL` to check inverted boolean values
GuillaumeGomez Feb 9, 2024
4fbd5cc
is_closure_like
compiler-errors Feb 11, 2024
70a8dc7
Auto merge of #120619 - compiler-errors:param, r=lcnr
bors Feb 11, 2024
75f57cf
Auto merge of #12248 - GuillaumeGomez:extend-NONMINIMAL_BOOL, r=blyxyas
bors Feb 11, 2024
8355591
[mem_replace_with_default] No longer triggers on unused expression
GabrielBFern Feb 12, 2024
036d00b
Auto merge of #120951 - matthiaskrgr:rollup-0nnm7dv, r=matthiaskrgr
bors Feb 12, 2024
05101ff
Lower anonymous structs or unions to HIR
frank-king Jan 4, 2024
6fda300
Tweak delayed bug mentions.
nnethercote Feb 12, 2024
d55fdb2
Make `is_intrinsic` query return the intrinsic name
oli-obk Jan 30, 2024
b0e7640
Auto merge of #12267 - Jarcho:issue_12254, r=Alexendoo
bors Feb 12, 2024
31d6097
Auto merge of #120980 - matthiaskrgr:rollup-dsjsqql, r=matthiaskrgr
bors Feb 12, 2024
7c8690c
Minor refactor format-args
nyurik Feb 12, 2024
2c3ae88
Make macro_call a ref
nyurik Feb 12, 2024
f2064f7
Avoid UB in clippy transmute_ptr_to_ptr UI test
Urgau Dec 17, 2023
7dfa6ce
Auto merge of #12266 - granddaifuku:fix/ice-12253-index-exceeds-usize…
bors Feb 12, 2024
dbccecf
Rollup merge of #118983 - Urgau:invalid_ref_casting-bigger-layout, r=…
matthiaskrgr Feb 12, 2024
41227f9
Rollup merge of #120950 - compiler-errors:miri-async-closurs, r=RalfJ…
matthiaskrgr Feb 12, 2024
4350678
Auto merge of #12283 - nyurik:ref-format-args, r=xFrednet
bors Feb 12, 2024
3e3a09e
Auto merge of #12278 - GabrielBFern:master, r=Jarcho
bors Feb 13, 2024
3e264ba
Auto merge of #11881 - y21:issue11880, r=Alexendoo
bors Feb 13, 2024
c1c2c3e
Ignore imported items in `min_ident_chars`
Ethiraric Feb 12, 2024
b3b9f31
Bump `indexmap`
clubby789 Jan 28, 2024
03113a9
Auto merge of #12275 - y21:incompatible_msrv_desugaring, r=Manishearth
bors Feb 13, 2024
2c3213f
Auto merge of #12285 - Ethiraric:fix-8573, r=dswij
bors Feb 14, 2024
b32d7c0
Allow negative literals in `redundant_guards`
Alexendoo Feb 14, 2024
9492de5
[`case_sensitive_file_extension_comparisons`]: Don't trigger on digit…
Ethiraric Feb 14, 2024
eb300fd
Auto merge of #12293 - Ethiraric:fix-12252, r=y21
bors Feb 14, 2024
ad7914f
Fix msg for verbose suggestions with confusable capitalization
estebank Feb 14, 2024
2526765
Check trait items
sanxiyn Feb 14, 2024
d2aa1be
Add an `ErrorGuaranteed` to `ast::TyKind::Err`.
nnethercote Feb 14, 2024
f35eec8
Add new lint `DEPRECATED_CLIPPY_CFG_ATTR`
GuillaumeGomez Feb 14, 2024
33603a6
Add `ErrorGuaranteed` to `ast::LitKind::Err`, `token::LitKind::Err`.
nnethercote Feb 14, 2024
f4eb6bd
fix: documentation of `blocks_in_conditions` lint
kaffarell Feb 15, 2024
183fade
fix: example in blocks_in_conditions lint
kaffarell Feb 15, 2024
e0f82af
Pass `--cfg clippy` to clippy-driver
GuillaumeGomez Feb 14, 2024
cd6f03a
Add ui tests for `DEPRECATED_CLIPPY_CFG_ATTR`
GuillaumeGomez Feb 14, 2024
f4a3db8
Update clippy book to mention `cfg(clippy)` instead of feature `cargo…
GuillaumeGomez Feb 14, 2024
237fbdd
Auto merge of #12296 - kaffarell:master, r=xFrednet
bors Feb 15, 2024
eff8793
Rollup merge of #121107 - estebank:capitalization-suggestion, r=micha…
GuillaumeGomez Feb 15, 2024
f9b8672
Rollup merge of #121120 - nnethercote:LitKind-Err-guar, r=fmease
GuillaumeGomez Feb 15, 2024
f0a344d
Rollup merge of #121109 - nnethercote:TyKind-Err-guar-2, r=oli-obk
GuillaumeGomez Feb 15, 2024
f0adfe7
lint `new_without_default` on const fns too
Centri3 Jun 7, 2023
61daf67
Auto merge of #10903 - Centri3:new_without_default, r=llogiq
bors Feb 16, 2024
c9fcfea
Auto merge of #120500 - oli-obk:intrinsics2.0, r=WaffleLapkin
bors Feb 16, 2024
32c006c
Auto merge of #12292 - GuillaumeGomez:DEPRECATED_CLIPPY_CFG_ATTR, r=f…
bors Feb 16, 2024
4fb9e12
Auto merge of #11641 - Alexendoo:negative-redundant-guards, r=Jarcho
bors Feb 16, 2024
3b36b37
Auto merge of #12294 - sanxiyn:min_ident_chars-trait-item, r=Jarcho
bors Feb 16, 2024
c975c5f
Bump ui_test version
oli-obk Jan 25, 2024
ab8880b
Auto merge of #12198 - oli-obk:bump_ui_test, r=Manishearth
bors Feb 17, 2024
9b5e4c6
Ensure ASM syntax detect `global_asm!` and `asm!` only on x86 archite…
beetrees Feb 16, 2024
5471e06
Auto merge of #12305 - beetrees:asm-syntax, r=Manishearth
bors Feb 17, 2024
1ac4d93
remove a couple of redundant clones
matthiaskrgr Feb 17, 2024
1d107ab
Remove $DIR replacement in test output
Alexendoo Feb 17, 2024
740d89e
Remove $DIR replacement in docs sampling stderr files
Alexendoo Feb 17, 2024
d88ad9e
By tracking import use types to check whether it is scope uses or the…
surechen Nov 10, 2023
d1e8a59
fix: make `#[allow]` work on field for `pub_underscore_fields`
Tyrubias Feb 17, 2024
5a50481
Auto merge of #12309 - Tyrubias:fix-allow-pub-under, r=y21
bors Feb 18, 2024
98e26b3
Upgrade anstream to 0.6.0
alex Feb 18, 2024
2a3c033
Auto merge of #12313 - alex:patch-1, r=Alexendoo
bors Feb 19, 2024
74f611f
Auto merge of #12306 - Alexendoo:dir-replacement, r=flip1995
bors Feb 19, 2024
a16dbd7
Prefer `DiagnosticBuilder` over `Diagnostic` in diagnostic modifiers.
nnethercote Jan 31, 2024
087c7c8
Add check for same guards in match_same_arms
roife Dec 30, 2023
fa2a3c5
Auto merge of #12059 - roife:fix/issue-11223, r=Alexendoo
bors Feb 19, 2024
f67c3f4
Default test output conflict handling to error
Alexendoo Feb 19, 2024
6aa5f1a
Auto merge of #12314 - Alexendoo:output-conflict-handling, r=flip1995
bors Feb 19, 2024
16d5a2b
Remove suspicious auto trait lint
spastorino Feb 19, 2024
ee8fd82
Fix uncertain sign and remainder op handling in cast_sign_loss.rs
teor2345 Jan 11, 2024
02214f2
Expand method lists
teor2345 Jan 16, 2024
e51fcd0
Make pow_call_result_sign compile
teor2345 Jan 16, 2024
28f247e
Use the expanded method lists
teor2345 Jan 16, 2024
47339d0
Bless fixed cast_sign_loss false negatives
teor2345 Jan 16, 2024
c5e8487
Fix pow() to return more known signs
teor2345 Jan 16, 2024
e74fe43
Check for both signed and unsigned constant expressions
teor2345 Jan 16, 2024
8b615af
Fix clippy_dogfood
teor2345 Jan 16, 2024
11e0d6a
Move muldiv peeling into expr_sign
teor2345 Jan 16, 2024
4ab2ed3
Put muldiv peeling in its own method
teor2345 Jan 16, 2024
740441f
Use the visitor pattern instead of recusive functions
teor2345 Jan 16, 2024
6dfff19
clippy_dogfood
teor2345 Jan 16, 2024
d109e68
Add some TODO comments
teor2345 Jan 16, 2024
1cbb58b
Fix divmul peeling
teor2345 Jan 17, 2024
6670acd
Check for all-positive or all-negative sums
teor2345 Jan 17, 2024
f40279f
Add some more test cases
teor2345 Jan 17, 2024
367a403
Add test coverage for cast_sign_loss changes
teor2345 Jan 17, 2024
6bc7c96
cargo bless
teor2345 Jan 17, 2024
d136b05
Always evaluate free constants and statics, even if previous errors o…
oli-obk Feb 14, 2024
86cb711
Reduce capabilities of `Diagnostic`.
nnethercote Feb 6, 2024
ba2139a
Auto merge of #121087 - oli-obk:eager_const_failures, r=lcnr
bors Feb 20, 2024
31b551f
Auto merge of #120576 - nnethercote:merge-Diagnostic-DiagnosticBuilde…
bors Feb 20, 2024
cd45d5a
Be careful with expressions with attributes
sanxiyn Feb 20, 2024
aa8a82e
FIX: issue-12279
comUserDummy Feb 20, 2024
672bd5e
DELETE: Known problems Section
comUserDummy Feb 21, 2024
9cde201
Extend `unnecessary_to_owned` to handle `Borrow` trait in map types
GuillaumeGomez Feb 20, 2024
a056ff3
Auto merge of #12323 - not-elm:fix/issue-12279, r=y21
bors Feb 21, 2024
d281461
Add more ui tests for `unnecessary_to_owned`
GuillaumeGomez Feb 20, 2024
635acb6
Fix newly detected lint issues
GuillaumeGomez Feb 20, 2024
250fd09
Auto merge of #12324 - GuillaumeGomez:useless_allocation2, r=y21
bors Feb 21, 2024
b72996e
Add check for 'in_external_macro' and 'is_from_proc_macro' inside [in…
CBSpeir Feb 21, 2024
422f9c5
Auto merge of #12317 - CBSpeir:issue_12291, r=y21
bors Feb 21, 2024
f35d87f
Add `unneeded_clippy_cfg_attr` lint
GuillaumeGomez Feb 16, 2024
cf6a14c
Add ui test for `unneeded_clippy_cfg_attr`
GuillaumeGomez Feb 16, 2024
d554bca
Auto merge of #12303 - GuillaumeGomez:unneedeed_clippy_cfg_attr, r=fl…
bors Feb 22, 2024
dc0bb69
Merge remote-tracking branch 'upstream/master' into rustup
flip1995 Feb 22, 2024
6591dc6
Bump nightly version -> 2024-02-22
flip1995 Feb 22, 2024
cc6dcaa
Use Level::from_symbol in unnecessary_clippy_cfg
flip1995 Feb 22, 2024
8a58b76
Update i686 asm test stderr
flip1995 Feb 22, 2024
379342c
Auto merge of #12331 - flip1995:rustup, r=flip1995
bors Feb 22, 2024
c6a720f
Coming back to reviewer rotation
blyxyas Feb 22, 2024
341ae30
Auto merge of #12332 - blyxyas:not-on-vacation, r=blyxyas
bors Feb 22, 2024
97a3ac5
Allow unused_imports, and unused_import_braces on `use`
MarcusGrass Feb 22, 2024
f197459
Remove double unused_imports check
MarcusGrass Feb 22, 2024
5a52c8a
Auto merge of #12333 - MarcusGrass:issue-12223, r=Manishearth
bors Feb 22, 2024
0d83a3a
re-orgnize [`useless_vec`]'s code
J-ZhengLi Jan 10, 2024
d654acd
Add new `multiple_bound_locations` lint
GuillaumeGomez Feb 10, 2024
6955a8a
Add ui test for `multiple_bound_locations` lint
GuillaumeGomez Feb 10, 2024
929f746
fix the actual bug
J-ZhengLi Feb 23, 2024
762448b
Update ui tests
GuillaumeGomez Feb 10, 2024
5ab42d8
Take lifetime extension into account in `ref_as_ptr`
Jarcho Feb 10, 2024
0597838
Auto merge of #12260 - Jarcho:issue_12255, r=llogiq
bors Feb 24, 2024
6405469
Auto merge of #12322 - sanxiyn:expression-with-attribute, r=llogiq
bors Feb 24, 2024
a2c1d56
Auto merge of #12259 - GuillaumeGomez:multiple-bound-locations, r=llogiq
bors Feb 24, 2024
ad31948
Add new `unnecessary_get_then_check` clippy lint
GuillaumeGomez Feb 23, 2024
40cff2d
Add ui test for `unnecessary_get_then_check`
GuillaumeGomez Feb 23, 2024
a197141
Update ui tests
GuillaumeGomez Feb 23, 2024
5e2707d
Fix new lint warnings
GuillaumeGomez Feb 23, 2024
3093b29
WIP: empty doc span is still broken
lucarlig Feb 25, 2024
5a63cd8
FIX(12243): redundant_guard
Feb 23, 2024
6b7700e
Pause PR assignments for xFrednet :)
xFrednet Feb 25, 2024
0d1ba48
Auto merge of #12345 - xFrednet:00000-some-healthy-life-choices, r=xF…
bors Feb 25, 2024
cdaccd7
bump itertools to 0.12
klensy Feb 25, 2024
8ef1b73
Auto merge of #12346 - klensy:itertools-bump, r=llogiq
bors Feb 25, 2024
76e4864
Auto merge of #12339 - GuillaumeGomez:add-unnecessary_get_then_check,…
bors Feb 25, 2024
84219f4
working naive with outside check_attrs
lucarlig Feb 25, 2024
09c7c5d
fix bug in check_exprs
lucarlig Feb 25, 2024
a3fea80
bless tests
lucarlig Feb 25, 2024
9ac6125
add extra variant because no more than 3 bools
lucarlig Feb 25, 2024
0ea4495
pop before trimming
lucarlig Feb 25, 2024
ee0cbea
ignore empty comment in semicolon_if_nothing_returned
lucarlig Feb 25, 2024
97e4c57
fix lint doc
lucarlig Feb 25, 2024
5a50ced
add single letter test
lucarlig Feb 25, 2024
c469cb0
Auto merge of #12336 - not-elm:fix/issue-12243, r=y21
bors Feb 25, 2024
9a56153
[`single_call_fn`]: merge post-crate visitor into lint pass
y21 Jan 21, 2024
bee4111
Remove `clippy_utils::get_parent_node`
Alexendoo Feb 25, 2024
f32e92c
add 1 more test and dont trim other code
lucarlig Feb 25, 2024
d7ad85f
move the the check into check_atr function
lucarlig Feb 25, 2024
f066be7
use span of fragments
lucarlig Feb 25, 2024
10c9903
Auto merge of #12348 - Alexendoo:remove-get-parent-node, r=y21
bors Feb 25, 2024
d84d9d3
lint on variant and fields as well
lucarlig Feb 25, 2024
ee50d5d
correct wrong doc syntax
lucarlig Feb 25, 2024
5152050
move lint directly into check_attrs
lucarlig Feb 25, 2024
30ee7af
style: sync GitHub Corner colors
hamirmahal Feb 25, 2024
7353bd0
Auto merge of #12256 - y21:single_call_fn_rm_visitor, r=llogiq
bors Feb 25, 2024
ec29b0d
lint implied bounds in *all* opaque `impl Trait` types
y21 Feb 17, 2024
bbfe1c1
lint implied bounds in APIT
y21 Feb 17, 2024
aa2c94e
Auto merge of #12308 - y21:more_implied_bounds, r=xFrednet
bors Feb 25, 2024
93deced
change rs doc to no_run
lucarlig Feb 26, 2024
3ef693c
refactor: remove CSS variables that are now unused
hamirmahal Feb 26, 2024
b09fb8a
Auto merge of #12350 - hamirmahal:style/sync-GitHub-Corner-colors, r=…
bors Feb 26, 2024
80bafa5
add cargo.toml lint section way of adding lints
lucarlig Feb 26, 2024
fca77c0
docs and imports
lucarlig Feb 26, 2024
6d0b70e
Clean up Allowing/Denying Lints section
flip1995 Feb 26, 2024
a11875b
Auto merge of #12353 - lucarlig:book, r=flip1995
bors Feb 26, 2024
97dc4b2
[`box_default`]: Preserve required path segments
Ethiraric Feb 26, 2024
d718995
Auto merge of #12355 - Ethiraric:fix-11927, r=Alexendoo
bors Feb 26, 2024
1c50948
Auto merge of #12342 - lucarlig:empty-docs, r=llogiq
bors Feb 26, 2024
cfddd91
[`read_line_without_trim`]: catch string eq checks
y21 Jul 10, 2023
fd85db3
restructure lint code, update description, more cases
y21 Jul 10, 2023
1e3c55e
Remove redundant uncertain_counts
teor2345 Feb 26, 2024
d12b53e
Auto merge of #12116 - J-ZhengLi:issue12101, r=Alexendoo
bors Feb 26, 2024
fb06081
Auto merge of #11136 - y21:enhance_read_line_without_trim, r=dswij
bors Feb 27, 2024
e33cba5
Auto merge of #12126 - teor2345:patch-1, r=llogiq
bors Feb 27, 2024
592fe89
lower `bstr` version requirement to `1.6.0`
oli-obk Feb 27, 2024
1013617
Auto merge of #12363 - oli-obk:bump_ui_test, r=flip1995
bors Feb 27, 2024
ad7513e
Merge commit '10136170fe9ed01e46aeb4f4479175b79eb0e3c7' into clippy-s…
flip1995 Feb 27, 2024
f99056b
Update Cargo.lock
flip1995 Feb 27, 2024
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
  •  
  •  
  •  
123 changes: 73 additions & 50 deletions Cargo.lock
Original file line number Diff line number Diff line change
Expand Up @@ -129,20 +129,6 @@ dependencies = [
"winapi",
]

[[package]]
name = "anstream"
version = "0.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b1f58811cfac344940f1a400b6e6231ce35171f614f26439e80f8c1465c5cc0c"
dependencies = [
"anstyle",
"anstyle-parse",
"anstyle-query",
"anstyle-wincon 2.1.0",
"colorchoice",
"utf8parse",
]

[[package]]
name = "anstream"
version = "0.6.11"
Expand All @@ -152,7 +138,7 @@ dependencies = [
"anstyle",
"anstyle-parse",
"anstyle-query",
"anstyle-wincon 3.0.2",
"anstyle-wincon",
"colorchoice",
"utf8parse",
]
Expand Down Expand Up @@ -181,16 +167,6 @@ dependencies = [
"windows-sys 0.52.0",
]

[[package]]
name = "anstyle-wincon"
version = "2.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "58f54d10c6dfa51283a066ceab3ec1ab78d13fae00aa49243a45e4571fb79dfd"
dependencies = [
"anstyle",
"windows-sys 0.48.0",
]

[[package]]
name = "anstyle-wincon"
version = "3.0.2"
Expand Down Expand Up @@ -534,7 +510,7 @@ version = "4.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "458bf1f341769dfcf849846f65dffdf9146daa56bcd2a47cb4e1de9915567c99"
dependencies = [
"anstream 0.6.11",
"anstream",
"anstyle",
"clap_lex",
"strsim 0.11.0",
Expand Down Expand Up @@ -572,15 +548,15 @@ checksum = "98cc8fbded0c607b7ba9dd60cd98df59af97e84d24e49c8557331cfc26d301ce"
name = "clippy"
version = "0.1.78"
dependencies = [
"anstream 0.5.0",
"anstream",
"clippy_config",
"clippy_lints",
"clippy_utils",
"color-print",
"filetime",
"futures",
"if_chain",
"itertools",
"itertools 0.12.1",
"parking_lot",
"quote",
"regex",
Expand All @@ -592,7 +568,7 @@ dependencies = [
"tester",
"tokio",
"toml 0.7.8",
"ui_test",
"ui_test 0.22.2",
"walkdir",
]

Expand All @@ -613,7 +589,7 @@ dependencies = [
"aho-corasick",
"clap",
"indoc",
"itertools",
"itertools 0.12.1",
"opener",
"shell-escape",
"walkdir",
Expand All @@ -628,7 +604,7 @@ dependencies = [
"clippy_config",
"clippy_utils",
"declare_clippy_lint",
"itertools",
"itertools 0.12.1",
"quine-mc_cluskey",
"regex",
"regex-syntax 0.8.2",
Expand All @@ -650,7 +626,7 @@ version = "0.1.78"
dependencies = [
"arrayvec",
"clippy_config",
"itertools",
"itertools 0.12.1",
"rustc-semver",
]

Expand Down Expand Up @@ -974,7 +950,7 @@ checksum = "a0afaad2b26fa326569eb264b1363e8ae3357618c43982b3f285f0774ce76b69"
name = "declare_clippy_lint"
version = "0.1.78"
dependencies = [
"itertools",
"itertools 0.12.1",
"quote",
"syn 2.0.48",
]
Expand Down Expand Up @@ -1230,7 +1206,7 @@ version = "0.11.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6c012a26a7f605efc424dd53697843a72be7dc86ad2d01f7814337794a12231d"
dependencies = [
"anstream 0.6.11",
"anstream",
"anstyle",
"env_filter",
"humantime",
Expand Down Expand Up @@ -2054,6 +2030,15 @@ dependencies = [
"either",
]

[[package]]
name = "itertools"
version = "0.12.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ba291022dbbd398a455acf126c1e341954079855bc60dfdda641363bd6922569"
dependencies = [
"either",
]

[[package]]
name = "itoa"
version = "1.0.10"
Expand Down Expand Up @@ -2476,7 +2461,7 @@ dependencies = [
"regex",
"rustc_version",
"smallvec",
"ui_test",
"ui_test 0.21.2",
]

[[package]]
Expand Down Expand Up @@ -3469,7 +3454,7 @@ dependencies = [
name = "rustc_ast_passes"
version = "0.0.0"
dependencies = [
"itertools",
"itertools 0.11.0",
"rustc_ast",
"rustc_ast_pretty",
"rustc_attr",
Expand All @@ -3489,7 +3474,7 @@ dependencies = [
name = "rustc_ast_pretty"
version = "0.0.0"
dependencies = [
"itertools",
"itertools 0.11.0",
"rustc_ast",
"rustc_span",
"thin-vec",
Expand Down Expand Up @@ -3529,7 +3514,7 @@ name = "rustc_borrowck"
version = "0.0.0"
dependencies = [
"either",
"itertools",
"itertools 0.11.0",
"polonius-engine",
"rustc_data_structures",
"rustc_errors",
Expand Down Expand Up @@ -3582,7 +3567,7 @@ name = "rustc_codegen_llvm"
version = "0.0.0"
dependencies = [
"bitflags 2.4.2",
"itertools",
"itertools 0.11.0",
"libc",
"measureme",
"object",
Expand Down Expand Up @@ -3618,7 +3603,7 @@ dependencies = [
"ar_archive_writer",
"bitflags 2.4.2",
"cc",
"itertools",
"itertools 0.11.0",
"jobserver",
"libc",
"object",
Expand Down Expand Up @@ -3899,7 +3884,7 @@ dependencies = [
name = "rustc_hir_analysis"
version = "0.0.0"
dependencies = [
"itertools",
"itertools 0.11.0",
"rustc_arena",
"rustc_ast",
"rustc_attr",
Expand Down Expand Up @@ -3938,7 +3923,7 @@ dependencies = [
name = "rustc_hir_typeck"
version = "0.0.0"
dependencies = [
"itertools",
"itertools 0.11.0",
"rustc_ast",
"rustc_attr",
"rustc_data_structures",
Expand Down Expand Up @@ -4222,7 +4207,7 @@ name = "rustc_mir_build"
version = "0.0.0"
dependencies = [
"either",
"itertools",
"itertools 0.11.0",
"rustc_apfloat",
"rustc_arena",
"rustc_ast",
Expand Down Expand Up @@ -4269,7 +4254,7 @@ name = "rustc_mir_transform"
version = "0.0.0"
dependencies = [
"either",
"itertools",
"itertools 0.11.0",
"rustc_arena",
"rustc_ast",
"rustc_attr",
Expand Down Expand Up @@ -4349,7 +4334,7 @@ dependencies = [
name = "rustc_passes"
version = "0.0.0"
dependencies = [
"itertools",
"itertools 0.11.0",
"rustc_ast",
"rustc_ast_pretty",
"rustc_attr",
Expand Down Expand Up @@ -4599,7 +4584,7 @@ name = "rustc_trait_selection"
version = "0.0.0"
dependencies = [
"bitflags 2.4.2",
"itertools",
"itertools 0.11.0",
"rustc_ast",
"rustc_attr",
"rustc_data_structures",
Expand Down Expand Up @@ -4638,7 +4623,7 @@ dependencies = [
name = "rustc_transmute"
version = "0.0.0"
dependencies = [
"itertools",
"itertools 0.11.0",
"rustc_data_structures",
"rustc_hir",
"rustc_infer",
Expand All @@ -4653,7 +4638,7 @@ dependencies = [
name = "rustc_ty_utils"
version = "0.0.0"
dependencies = [
"itertools",
"itertools 0.11.0",
"rustc_data_structures",
"rustc_errors",
"rustc_fluent_macro",
Expand Down Expand Up @@ -4701,7 +4686,7 @@ dependencies = [
"askama",
"expect-test",
"indexmap",
"itertools",
"itertools 0.11.0",
"minifier",
"once_cell",
"regex",
Expand Down Expand Up @@ -4783,7 +4768,7 @@ dependencies = [
"dirs",
"getopts",
"ignore",
"itertools",
"itertools 0.11.0",
"lazy_static",
"regex",
"rustfmt-config_proc_macro",
Expand Down Expand Up @@ -5045,6 +5030,16 @@ dependencies = [
"windows-sys 0.48.0",
]

[[package]]
name = "spanned"
version = "0.1.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ad48ded9f0734eca7058107cc170767b8758e41e4088fb0020e7ff7ec6b0d92d"
dependencies = [
"bstr",
"color-eyre",
]

[[package]]
name = "spdx-expression"
version = "0.5.2"
Expand Down Expand Up @@ -5796,6 +5791,34 @@ dependencies = [
"tempfile",
]

[[package]]
name = "ui_test"
version = "0.22.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0b1ded30ff8c9d83e8d85d7e8e8aabbaf2c282a2b0ea09ef3f1accd4906134c7"
dependencies = [
"annotate-snippets 0.10.1",
"anyhow",
"bstr",
"cargo-platform",
"cargo_metadata 0.18.1",
"color-eyre",
"colored",
"comma",
"crossbeam-channel",
"indicatif",
"lazy_static",
"levenshtein",
"prettydiff",
"regex",
"rustc_version",
"rustfix",
"serde",
"serde_json",
"spanned",
"tempfile",
]

[[package]]
name = "unic-langid"
version = "0.9.4"
Expand Down
4 changes: 2 additions & 2 deletions src/tools/clippy/.github/driver.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ test "$sysroot" = $desired_sysroot
)

# Check that the --sysroot argument is only passed once via arg_file.txt (SYSROOT is ignored)
(
(
echo "fn main() {}" > target/driver_test.rs
echo "--sysroot="$(./target/debug/clippy-driver --print sysroot)"" > arg_file.txt
echo "--verbose" >> arg_file.txt
Expand All @@ -45,7 +45,7 @@ unset CARGO_MANIFEST_DIR
# Run a lint and make sure it produces the expected output. It's also expected to exit with code 1
# FIXME: How to match the clippy invocation in compile-test.rs?
./target/debug/clippy-driver -Dwarnings -Aunused -Zui-testing --emit metadata --crate-type bin tests/ui/double_neg.rs 2>double_neg.stderr && exit 1
sed -e "s,tests/ui,\$DIR," -e "/= help: for/d" double_neg.stderr > normalized.stderr
sed -e "/= help: for/d" double_neg.stderr > normalized.stderr
diff -u normalized.stderr tests/ui/double_neg.stderr

# make sure "clippy-driver --rustc --arg" and "rustc --arg" behave the same
Expand Down
5 changes: 5 additions & 0 deletions src/tools/clippy/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5125,6 +5125,7 @@ Released 2018-09-13
[`default_trait_access`]: https://rust-lang.github.io/rust-clippy/master/index.html#default_trait_access
[`default_union_representation`]: https://rust-lang.github.io/rust-clippy/master/index.html#default_union_representation
[`deprecated_cfg_attr`]: https://rust-lang.github.io/rust-clippy/master/index.html#deprecated_cfg_attr
[`deprecated_clippy_cfg_attr`]: https://rust-lang.github.io/rust-clippy/master/index.html#deprecated_clippy_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
[`deref_by_slicing`]: https://rust-lang.github.io/rust-clippy/master/index.html#deref_by_slicing
Expand Down Expand Up @@ -5157,6 +5158,7 @@ Released 2018-09-13
[`duration_subsec`]: https://rust-lang.github.io/rust-clippy/master/index.html#duration_subsec
[`eager_transmute`]: https://rust-lang.github.io/rust-clippy/master/index.html#eager_transmute
[`else_if_without_else`]: https://rust-lang.github.io/rust-clippy/master/index.html#else_if_without_else
[`empty_docs`]: https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
[`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_enum_variants_with_brackets`]: https://rust-lang.github.io/rust-clippy/master/index.html#empty_enum_variants_with_brackets
Expand Down Expand Up @@ -5429,6 +5431,7 @@ Released 2018-09-13
[`modulo_arithmetic`]: https://rust-lang.github.io/rust-clippy/master/index.html#modulo_arithmetic
[`modulo_one`]: https://rust-lang.github.io/rust-clippy/master/index.html#modulo_one
[`multi_assignments`]: https://rust-lang.github.io/rust-clippy/master/index.html#multi_assignments
[`multiple_bound_locations`]: https://rust-lang.github.io/rust-clippy/master/index.html#multiple_bound_locations
[`multiple_crate_versions`]: https://rust-lang.github.io/rust-clippy/master/index.html#multiple_crate_versions
[`multiple_inherent_impl`]: https://rust-lang.github.io/rust-clippy/master/index.html#multiple_inherent_impl
[`multiple_unsafe_ops_per_block`]: https://rust-lang.github.io/rust-clippy/master/index.html#multiple_unsafe_ops_per_block
Expand Down Expand Up @@ -5725,10 +5728,12 @@ Released 2018-09-13
[`unknown_clippy_lints`]: https://rust-lang.github.io/rust-clippy/master/index.html#unknown_clippy_lints
[`unnecessary_box_returns`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_box_returns
[`unnecessary_cast`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
[`unnecessary_clippy_cfg`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_clippy_cfg
[`unnecessary_fallible_conversions`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_fallible_conversions
[`unnecessary_filter_map`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_filter_map
[`unnecessary_find_map`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_find_map
[`unnecessary_fold`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_fold
[`unnecessary_get_then_check`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_get_then_check
[`unnecessary_join`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_join
[`unnecessary_lazy_evaluations`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_lazy_evaluations
[`unnecessary_literal_unwrap`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_literal_unwrap
Expand Down
Loading
Loading