Skip to content

Clippy subtree update #130778

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 172 commits into from
Sep 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
172 commits
Select commit Hold shift + click to select a range
197b444
Ignore underscore-prefixed args for needless_pass_by_value lint
nyurik Jul 16, 2024
af35dcd
Fix [`needless_return`] false negative when returned expression borro…
apoisternex Aug 4, 2024
66283bf
apply [`needless_return`] suggestion
apoisternex Aug 4, 2024
c2ed04b
check the def_id with using diagnostic_item in unnecessary_min_or_max…
kyoto7250 Aug 8, 2024
2645ea3
Remove `feature=cargo-clippy` argument
xFrednet Aug 9, 2024
a5e3a3f
move `manual_c_str_literals` to complexity
y21 Aug 12, 2024
9732128
Diverging subexpression lint should not fire on todo!()
alex-semenyuk Aug 18, 2024
b615c82
Add new lint: `used_underscore_items`
WeiTheShinobi Aug 21, 2024
89ad733
stabilize const_fn_floating_point_arithmetic
RalfJung Aug 3, 2024
b179c3e
check std::panic::panic_any in panic lint
kyoto7250 Aug 24, 2024
3c4367a
Fix `elided_named_lifetimes` in code
GrigorenkoPV Aug 22, 2024
3474df6
Rewrite empty_line_after_doc_comments and empty_line_after_outer_attr
Alexendoo Aug 24, 2024
8b8a3c9
Rollup merge of #129510 - GrigorenkoPV:fix-elided-named-lifetimes, r=…
matthiaskrgr Aug 24, 2024
173d5a6
Merge commit '0f8eabd6231366bfc1bb1464601297c2d48f8f68' into clippyup
Jarcho Aug 24, 2024
40bca0d
Auto merge of #13285 - alex-semenyuk:ignore_todo_for_diverging_sub_ex…
bors Aug 25, 2024
508a7b4
Auto merge of #129531 - Jarcho:clippyup, r=Manishearth
bors Aug 25, 2024
d40e04a
`used_underscore_items` will not lint exteranl item
WeiTheShinobi Aug 25, 2024
083e20a
Auto merge of #13113 - nyurik:ignore-pass-by-val-for-pfx, r=blyxyas
bors Aug 25, 2024
ebcd6bc
Auto merge of #13091 - Alexendoo:empty-line-after-rewrite, r=dswij
bors Aug 25, 2024
b3fc578
Auto merge of #13300 - kyoto7250:issue_13292, r=llogiq
bors Aug 26, 2024
494112e
Fix manual_range_patterns case with one element at OR
alex-semenyuk Aug 26, 2024
f194e68
Auto merge of #13311 - alex-semenyuk:fix_manual_range_patterns, r=Man…
bors Aug 26, 2024
603d5a1
Auto merge of #13294 - WeiTheShinobi:new_lint_used_underscore_items, …
bors Aug 27, 2024
e8ac4ea
new lint: `zombie_processes`
y21 Sep 10, 2023
9e260ff
Auto merge of #11476 - y21:zombie_processes, r=xFrednet
bors Aug 28, 2024
04bded5
Auto merge of #13235 - kyoto7250:fix_issue_13191, r=llogiq
bors Aug 28, 2024
5bbb0d4
Stop using ty::GenericPredicates for non-predicates_of queries
compiler-errors Aug 29, 2024
b86a202
Auto merge of #13246 - xFrednet:12292-remove-cargo-clippy-feature, r=…
bors Aug 29, 2024
74a2344
Extend `implicit_saturation_sub` lint
GuillaumeGomez Mar 19, 2024
2622a87
Add ui regression tests for `implicit_saturation_sub` lint extension
GuillaumeGomez Mar 19, 2024
27c6343
Add ui test to ensure that if `0` is returned from both `if` and `els…
GuillaumeGomez Mar 19, 2024
d20fc38
Create new `inverted_saturating_sub` lint
GuillaumeGomez Jul 19, 2024
9e7473f
Update version attribute for 1.81 lints
xFrednet Aug 29, 2024
9aa23b8
Changelog for Clippy 1.81 :beginner:
xFrednet Aug 29, 2024
cbc6910
Changelog: Correct lint level
xFrednet Aug 29, 2024
04d70d0
[`single_match`, `single_match_else`] fix suggestion when `match` irr…
WeiTheShinobi Aug 30, 2024
9957101
elided_named_lifetimes: bless & add tests
GrigorenkoPV Aug 31, 2024
e845366
Add MSRV check for `saturating_sub` lints in const contexts
GuillaumeGomez Jul 22, 2024
2832faf
Move MSRV check later in `implicit_saturating_sub`
GuillaumeGomez Aug 2, 2024
ac914d3
Auto merge of #12476 - GuillaumeGomez:add-manual_arithmetic_check, r=y21
bors Aug 31, 2024
989ebae
Provide more clear example for WRONG_SELF_CONVENTION
alex-semenyuk Aug 29, 2024
663f200
Rollup merge of #129207 - GrigorenkoPV:elided-is-named, r=cjgillot
matthiaskrgr Sep 1, 2024
a81f1c8
Auto merge of #13325 - alex-semenyuk:wrong_self_convention_doc_fix, r…
bors Sep 1, 2024
ba2577f
stabilize const_float_bits_conv
RalfJung Aug 25, 2024
cd28176
Minor code simplification
nyurik Sep 2, 2024
273b561
add pointers_in_nomem_asm_block lint
Soveu Jul 12, 2024
e8ba5d1
Auto merge of #13247 - Soveu:sus-asm-options, r=y21
bors Sep 3, 2024
f2ef26d
Auto merge of #13263 - y21:warn_manual_c_str_literals, r=Centri3
bors Sep 3, 2024
58cbf09
Auto merge of #13332 - nyurik:nits, r=xFrednet
bors Sep 3, 2024
cdb4423
Bump actions/download-artifact from 3 to 4
flip1995 Sep 4, 2024
aec61c4
Auto merge of #13343 - flip1995:aftifacts-action-update, r=flip1995
bors Sep 4, 2024
7d2e6eb
Expand missing_transmute_annotations docs
lukaslueg Sep 4, 2024
f7f5505
Only lint `manual_non_exhaustive` for exported types
Alexendoo Sep 4, 2024
c95c767
Auto merge of #13323 - xFrednet:chnagelog-1-81, r=flip1995
bors Sep 5, 2024
87ce1d8
Merge remote-tracking branch 'upstream/master' into rustup
flip1995 Sep 5, 2024
40fca8f
Bump Clippy version -> 0.1.83
flip1995 Sep 5, 2024
3d027d7
Bump nightly version -> 2024-09-05
flip1995 Sep 5, 2024
a95afe2
Auto merge of #13347 - flip1995:rustup, r=flip1995
bors Sep 5, 2024
79081f1
Correct version of `too_long_first_doc_paragraph`
kpreid Sep 5, 2024
0b8cb4a
Make `Ty::boxed_ty` return an `Option`
GrigorenkoPV Sep 4, 2024
c41be9e
Auto merge of #13345 - Alexendoo:manual-non-exhaustive-visibility, r=y21
bors Sep 5, 2024
9415e6e
Add `manual_div_ceil`
belyakov-am Jul 27, 2024
9e9042a
Auto merge of #12987 - belyakov-am:lint/manual_div_ceil, r=blyxyas
bors Sep 5, 2024
d7996da
Add `manual_is_power_of_two`
Sour1emon Aug 31, 2024
5515566
Improve "Why this is bad" section
Sour1emon Sep 3, 2024
6ecb48f
Fixed extra backtick
Sour1emon Sep 3, 2024
f994797
Add support for different orders of expression
Sour1emon Sep 6, 2024
7d7b298
Auto merge of #13352 - kpreid:patch-1, r=xFrednet
bors Sep 6, 2024
fb9913e
Auto merge of #13327 - Sour1emon:master, r=llogiq
bors Sep 6, 2024
e3ca249
fix `single_match` suggestion
WeiTheShinobi Sep 6, 2024
46f8d36
Lint ready
Samarth1696 Jul 25, 2024
73039f6
test cases added including some edge cases
Samarth1696 Jul 26, 2024
6f01273
dogfood test passed
Samarth1696 Jul 26, 2024
0f99aa9
all tests passed
Samarth1696 Jul 26, 2024
bed4441
refactored the code
Samarth1696 Jul 26, 2024
c6c7408
error notations added
Samarth1696 Jul 26, 2024
d43acb8
Added checks for binary expr and added different test cases for unfix…
Samarth1696 Aug 1, 2024
af3346a
Check for get method and new test case in unfixable
Samarth1696 Aug 31, 2024
d9c4523
Auto merge of #13167 - Samarth1696:tests, r=llogiq
bors Sep 7, 2024
ae5326b
visit struct fields in uninit fallback check
y21 Sep 7, 2024
25efc04
Fix typo
jake-herrmann Sep 7, 2024
c8f5136
Rollup merge of #129555 - RalfJung:const_float_bits_conv, r=dtolnay
matthiaskrgr Sep 7, 2024
41dc86d
Auto merge of #13214 - apoisternex:issue12907, r=Centri3
bors Sep 7, 2024
bcf528b
Auto merge of #13324 - WeiTheShinobi:single_match, r=dswij
bors Sep 8, 2024
0ee2650
Auto merge of #13370 - jtherrmann:master, r=dswij
bors Sep 8, 2024
9e9526c
Special-case suggestions for null pointers constness cast
samueltardieu Sep 7, 2024
3060873
Handle null pointer constness cast through methods
samueltardieu Sep 7, 2024
b0db9c2
Remove unnecessary symbols and add missing symbols
cuishuang Sep 9, 2024
1f13633
Bump ui_test
oli-obk Aug 17, 2024
1e797e9
Auto merge of #13374 - cuishuang:master, r=Centri3
bors Sep 9, 2024
938f8ba
Auto merge of #13367 - y21:issue13364, r=Manishearth
bors Sep 9, 2024
a53614a
Auto merge of #13368 - oli-obk:bump_ui_test, r=flip1995
bors Sep 10, 2024
49a5018
Fix WHILE_LET_LOOP doc
alex-semenyuk Sep 11, 2024
78bdd45
Auto merge of #13379 - alex-semenyuk:while_let_loop_fix_document, r=d…
bors Sep 11, 2024
8be0b36
Auto merge of #13344 - lukaslueg:issue13339, r=Alexendoo
bors Sep 11, 2024
2775dcd
Remove unused collect_metadata function
Alexendoo Sep 11, 2024
131681b
Auto merge of #13369 - samueltardieu:issue-13361, r=y21
bors Sep 11, 2024
0905a77
Fix #13381
c410-f3r Sep 11, 2024
1c2e9f8
Remove unused functions from ast CoroutineKind
compiler-errors Sep 11, 2024
7097830
Not trigger duplicated_attributes on duplicate reasons
alex-semenyuk Sep 12, 2024
e039e72
Auto merge of #13386 - alex-semenyuk:no_lint_on_duplicate_reason, r=x…
bors Sep 12, 2024
6371b30
Make it clearer that the suggestion is an alternative one
samueltardieu Sep 12, 2024
eb5d4b7
Auto merge of #13390 - samueltardieu:push-qqtuttutxpmv, r=xFrednet
bors Sep 12, 2024
d66e9ad
fix: Fixed incorrect comment form suggestion
vHugoObject Sep 10, 2024
bc7d323
Clarify type_complexity
alex-semenyuk Sep 12, 2024
cd99729
Update tests for hidden references to mutable static
obeis Aug 24, 2024
2b7d80b
Auto merge of #13377 - vHugoObject:master, r=dswij
bors Sep 13, 2024
7fcdebf
Revert "stabilize const_float_bits_conv" for src/tools/clippy/clippy_…
tspiteri Sep 13, 2024
7cccef8
handle transmutes in const context if msrvs::CONST_FLOAT_BITS_CONV
tspiteri Sep 13, 2024
15495eb
Look at adjusted types instead of fn signature types in `ptr_arg`
y21 Aug 26, 2024
2536745
Auto merge of #13313 - y21:issue13308, r=Centri3
bors Sep 13, 2024
9e69796
Fix lint levels not getting overridden by attrs on `Stmt` nodes
gurry Sep 14, 2024
b5ea5c2
stabilize `const_extern_fn`
folkertdev Aug 29, 2024
976131f
stabilize const_mut_refs
RalfJung Aug 17, 2024
e3bb779
Rollup merge of #130293 - gurry:130142-lint-level-issue, r=cjgillot
matthiaskrgr Sep 15, 2024
903293b
Auto merge of #13382 - c410-f3r:blah, r=y21
bors Sep 17, 2024
c3d58cd
Fix `if_then_some_else_none` sugg missing closure intro
lukaslueg Sep 17, 2024
431f7d6
build quine-mc_cluskey with O3 in dev builds
y21 Sep 17, 2024
978582b
[Clippy] Swap `manual_retain` to use diagnostic items instead of paths
GnomedDev Sep 18, 2024
106a9af
End my vacation
flip1995 Sep 18, 2024
fdc1678
Auto merge of #13415 - rust-lang:flip1995-vacation-done, r=flip1995
bors Sep 18, 2024
d2305ff
Generate versions HTML directly
Alexendoo Sep 18, 2024
5a13a93
[Clippy] Swap `map_entry` to use diagnostic items instead of paths
GnomedDev Sep 18, 2024
71dbfd5
[Clippy] Swap `lines_filter_map_ok` to use a diagnostic item instead …
GnomedDev Sep 18, 2024
7ffd485
[Clippy] Swap `option_as_ref_deref` to use diagnostic items instead o…
GnomedDev Sep 18, 2024
8fc9e67
[Clippy] Swap `float_equality_without_abs` to use diagnostic items in…
GnomedDev Sep 18, 2024
1922a99
[Clippy] Swap `redundant_clone` to use diagnostic items instead of paths
GnomedDev Sep 18, 2024
959f7a2
[Clippy] Swap `manual_main_separator_str` to use diagnostic item inst…
GnomedDev Sep 18, 2024
f66915e
[Clippy] Swap `single_char_add_str`/`format_push_string` to use diagn…
GnomedDev Sep 18, 2024
5459679
[Clippy] Swap `VecArgs::hir` to use diagnostic items instead of paths
GnomedDev Sep 18, 2024
984bd6f
[Clippy] Swap `repeat_vec_with_capacity` to use diagnostic item inste…
GnomedDev Sep 18, 2024
b015290
[Clippy] Swap `manual_while_let_some` to use diagnostic items instead…
GnomedDev Sep 18, 2024
45c1700
[Clippy] Swap `filter_map_bool_then` to use diagnostic item instead o…
GnomedDev Sep 18, 2024
d63e35b
[Clippy] Swap `waker_clone_wake` to use diagnostic item instead of path
GnomedDev Sep 18, 2024
98dc68e
[Clippy] Swap `instant_subtraction` to use diagnostic item instead of…
GnomedDev Sep 18, 2024
acb6748
[Clippy] Swap `unnecessary_to_owned` to use diagnostic item instead o…
GnomedDev Sep 18, 2024
1b76ae6
[Clippy] Swap `manual_strip` to use diagnostic items instead of paths
GnomedDev Sep 18, 2024
f1fc9c0
[Clippy] Swap `unnecessary_owned_empty_strings` to use diagnostic ite…
GnomedDev Sep 18, 2024
37e3832
[Clippy] Swap `non_octal_unix_permissions` to use diagnostic item ins…
GnomedDev Sep 18, 2024
917775f
[Clippy] Swap `iter_over_hash_type` to use diagnostic items instead o…
GnomedDev Sep 18, 2024
c7453b4
[Clippy] Swap `open_options` to use diagnostic items instead of paths
GnomedDev Sep 19, 2024
07b6e07
Categorise paths in `clippy_utils::paths`
GnomedDev Sep 19, 2024
290a01e
Initial impl of `unnecessary_first_then_check`
lukaslueg Sep 19, 2024
2e5b680
Auto merge of #13414 - Alexendoo:generate-versions-html, r=
bors Sep 19, 2024
9be28b1
Auto merge of #13421 - lukaslueg:issue11212, r=Manishearth
bors Sep 19, 2024
4f31900
[Clippy] Remove final std paths for diagnostic item
GnomedDev Sep 19, 2024
bb04c68
Auto merge of #124895 - obeis:static-mut-hidden-ref, r=compiler-errors
bors Sep 20, 2024
05ebce8
Add lint unused_trait_names
RuairidhWilliamson Sep 20, 2024
739ef7b
Add unused_trait_names tests
RuairidhWilliamson Sep 20, 2024
249210e
Fix clippy
saethlin Sep 20, 2024
0e1ded0
Auto merge of #13384 - Alexendoo:remove-old-collect-metadata, r=llogiq
bors Sep 21, 2024
2c5e600
Auto merge of #13392 - alex-semenyuk:doc_type_complexity, r=dswij
bors Sep 22, 2024
612ae35
Auto merge of #13409 - lukaslueg:issue13407, r=dswij
bors Sep 22, 2024
abdf173
Auto merge of #13322 - RuairidhWilliamson:anon-trait-import, r=y21
bors Sep 22, 2024
d140e26
Merge remote-tracking branch 'upstream/master' into rustup
flip1995 Sep 22, 2024
3ab1da8
Formatting
flip1995 Sep 22, 2024
009134d
Bump nightly version -> 2024-09-22
flip1995 Sep 22, 2024
43e3384
Auto merge of #13440 - flip1995:rustup, r=flip1995
bors Sep 22, 2024
cc2f447
Check that #[deny(allow_attributes)] do not issue spurious messages
samueltardieu Sep 12, 2024
acff511
Lint comparison to empty slice using `PartialEq` methods
samueltardieu Sep 21, 2024
d099ced
Split def_path_res into two parts
GnomedDev Sep 21, 2024
6b34c8d
Avoid looking regex crate up multiple times
GnomedDev Sep 21, 2024
59bac6a
Auto merge of #13408 - y21:quine-dev-o3, r=dswij
bors Sep 23, 2024
7f30daf
Use contiguous spans for empty_line_after_* suggestion
flip1995 Sep 23, 2024
b39323b
Auto merge of #13389 - samueltardieu:issue-13380, r=xFrednet
bors Sep 23, 2024
b7ab258
Auto merge of #13439 - flip1995:empty-line-fix, r=Alexendoo
bors Sep 23, 2024
8ab744e
Auto merge of #13431 - GnomedDev:split-def_path_res, r=y21
bors Sep 23, 2024
7901289
Auto merge of #13432 - samueltardieu:issue-13401, r=Manishearth
bors Sep 23, 2024
ae1c191
Merge commit '7901289135257ca0fbed3a5522526f95b0f5edba' into clippy-s…
flip1995 Sep 24, 2024
907b6a1
Update Cargo.lock
flip1995 Sep 24, 2024
f38b569
Hotfix: remove profile from clippy Cargo.toml
flip1995 Sep 24, 2024
e60098b
Remove unused import from Clippy versions.py file
flip1995 Sep 24, 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
  •  
  •  
  •  
41 changes: 7 additions & 34 deletions Cargo.lock
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ checksum = "1462739cb27611015575c0c11df5df7601141071f07518d56fcc1be504cbec97"

[[package]]
name = "clippy"
version = "0.1.82"
version = "0.1.83"
dependencies = [
"anstream",
"cargo_metadata 0.18.1",
Expand All @@ -547,13 +547,13 @@ dependencies = [
"termize",
"tokio",
"toml 0.7.8",
"ui_test 0.25.0",
"ui_test",
"walkdir",
]

[[package]]
name = "clippy_config"
version = "0.1.82"
version = "0.1.83"
dependencies = [
"itertools",
"serde",
Expand All @@ -576,7 +576,7 @@ dependencies = [

[[package]]
name = "clippy_lints"
version = "0.1.82"
version = "0.1.83"
dependencies = [
"arrayvec",
"cargo_metadata 0.18.1",
Expand All @@ -600,7 +600,7 @@ dependencies = [

[[package]]
name = "clippy_utils"
version = "0.1.82"
version = "0.1.83"
dependencies = [
"arrayvec",
"clippy_config",
Expand Down Expand Up @@ -902,7 +902,7 @@ dependencies = [

[[package]]
name = "declare_clippy_lint"
version = "0.1.82"
version = "0.1.83"
dependencies = [
"itertools",
"quote",
Expand Down Expand Up @@ -2269,7 +2269,7 @@ dependencies = [
"rustc_version",
"smallvec",
"tempfile",
"ui_test 0.26.5",
"ui_test",
"windows-sys 0.52.0",
]

Expand Down Expand Up @@ -5485,33 +5485,6 @@ version = "0.1.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ed646292ffc8188ef8ea4d1e0e0150fb15a5c2e12ad9b8fc191ae7a8a7f3c4b9"

[[package]]
name = "ui_test"
version = "0.25.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f7e4f339f62edc873975c47115f9e71c5454ddaa37c1142b42fc0b2672c8dacb"
dependencies = [
"annotate-snippets 0.11.4",
"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",
]

[[package]]
name = "ui_test"
version = "0.26.5"
Expand Down
9 changes: 3 additions & 6 deletions src/tools/clippy/.github/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,15 @@ if [[ $BETA = "true" ]]; then
fi

# Generate version index that is shown as root index page
cp util/gh-pages/versions.html out/index.html

echo "Making the versions.json file"
python3 ./util/versions.py out
python3 ./util/versions.py ./util/gh-pages/versions.html out

# Now let's go have some fun with the cloned repo
cd out
git config user.name "GHA CI"
git config user.email "[email protected]"

git status

if [[ -n $TAG_NAME ]]; then
# track files, so that the following check works
git add --intent-to-add "$TAG_NAME"
Expand All @@ -46,8 +45,6 @@ if [[ -n $TAG_NAME ]]; then
git add "$TAG_NAME"
# Update the symlink
git add stable
# Update versions file
git add versions.json
git commit -m "Add documentation for ${TAG_NAME} release: ${SHA}"
elif [[ $BETA = "true" ]]; then
if git diff --exit-code --quiet -- beta/; then
Expand Down
4 changes: 2 additions & 2 deletions src/tools/clippy/.github/workflows/clippy_bors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ jobs:
find $DIR ! -executable -o -type d ! -path $DIR | xargs rm -rf

- name: Upload Binaries
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: binaries
path: target/debug
Expand Down Expand Up @@ -202,7 +202,7 @@ jobs:

# Download
- name: Download target dir
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: binaries
path: target/debug
Expand Down
65 changes: 64 additions & 1 deletion src/tools/clippy/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,61 @@ document.

## Unreleased / Beta / In Rust Nightly

[c9139bd5...master](https://github.com/rust-lang/rust-clippy/compare/c9139bd5...master)
[b794b8e0...master](https://github.com/rust-lang/rust-clippy/compare/b794b8e0...master)

## Rust 1.81

Current stable, released 2024-09-05

### New Lints

* Added [`cfg_not_test`] to `restriction`
[#11293](https://github.com/rust-lang/rust-clippy/pull/11293)
* Added [`byte_char_slices`] to `style`
[#10155](https://github.com/rust-lang/rust-clippy/pull/10155)
* Added [`set_contains_or_insert`] to `nursery`
[#12873](https://github.com/rust-lang/rust-clippy/pull/12873)
* Added [`manual_rotate`] to `style`
[#12983](https://github.com/rust-lang/rust-clippy/pull/12983)
* Added [`unnecessary_min_or_max`] to `complexity`
[#12368](https://github.com/rust-lang/rust-clippy/pull/12368)
* Added [`manual_inspect`] to `complexity`
[#12287](https://github.com/rust-lang/rust-clippy/pull/12287)
* Added [`field_scoped_visibility_modifiers`] to `restriction`
[#12893](https://github.com/rust-lang/rust-clippy/pull/12893)
* Added [`manual_pattern_char_comparison`] to `style`
[#12849](https://github.com/rust-lang/rust-clippy/pull/12849)
* Added [`needless_maybe_sized`] to `suspicious`
[#10632](https://github.com/rust-lang/rust-clippy/pull/10632)
* Added [`needless_character_iteration`] to `suspicious`
[#12815](https://github.com/rust-lang/rust-clippy/pull/12815)

### Moves and Deprecations

* [`allow_attributes`], [`allow_attributes_without_reason`]: Now work on stable
[rust#120924](https://github.com/rust-lang/rust/pull/120924)
* Renamed `overflow_check_conditional` to [`panicking_overflow_checks`]
[#12944](https://github.com/rust-lang/rust-clippy/pull/12944)
* Moved [`panicking_overflow_checks`] to `correctness` (From `complexity` now deny-by-default)
[#12944](https://github.com/rust-lang/rust-clippy/pull/12944)
* Renamed `thread_local_initializer_can_be_made_const` to [`missing_const_for_thread_local`]
[#12974](https://github.com/rust-lang/rust-clippy/pull/12974)
* Deprecated [`maybe_misused_cfg`] and [`mismatched_target_os`] as they are now caught by cargo
and rustc
[#12875](https://github.com/rust-lang/rust-clippy/pull/12875)

### Enhancements

* [`significant_drop_in_scrutinee`]: Now also checks scrutinies of `while let` and `for let`
expressions
[#12870](https://github.com/rust-lang/rust-clippy/pull/12870)
* [`std_instead_of_core`]: Now respects the `msrv` configuration
[#13168](https://github.com/rust-lang/rust-clippy/pull/13168)

### ICE Fixes

* [`suboptimal_flops`]: No longer crashes on custom `.log()` functions
[#12884](https://github.com/rust-lang/rust-clippy/pull/12884)

## Rust 1.80

Expand Down Expand Up @@ -5500,6 +5554,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
[`invalid_utf8_in_unchecked`]: https://rust-lang.github.io/rust-clippy/master/index.html#invalid_utf8_in_unchecked
[`inverted_saturating_sub`]: https://rust-lang.github.io/rust-clippy/master/index.html#inverted_saturating_sub
[`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
Expand Down Expand Up @@ -5559,6 +5614,7 @@ Released 2018-09-13
[`manual_bits`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_bits
[`manual_c_str_literals`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_c_str_literals
[`manual_clamp`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_clamp
[`manual_div_ceil`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_div_ceil
[`manual_filter`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_filter
[`manual_filter_map`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_filter_map
[`manual_find`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_find
Expand All @@ -5570,6 +5626,7 @@ Released 2018-09-13
[`manual_is_ascii_check`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_ascii_check
[`manual_is_finite`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_finite
[`manual_is_infinite`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_infinite
[`manual_is_power_of_two`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_power_of_two
[`manual_is_variant_and`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_variant_and
[`manual_let_else`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_let_else
[`manual_main_separator_str`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_main_separator_str
Expand Down Expand Up @@ -5716,6 +5773,7 @@ Released 2018-09-13
[`non_minimal_cfg`]: https://rust-lang.github.io/rust-clippy/master/index.html#non_minimal_cfg
[`non_octal_unix_permissions`]: https://rust-lang.github.io/rust-clippy/master/index.html#non_octal_unix_permissions
[`non_send_fields_in_send_ty`]: https://rust-lang.github.io/rust-clippy/master/index.html#non_send_fields_in_send_ty
[`non_zero_suggestions`]: https://rust-lang.github.io/rust-clippy/master/index.html#non_zero_suggestions
[`nonminimal_bool`]: https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool
[`nonsensical_open_options`]: https://rust-lang.github.io/rust-clippy/master/index.html#nonsensical_open_options
[`nonstandard_macro_braces`]: https://rust-lang.github.io/rust-clippy/master/index.html#nonstandard_macro_braces
Expand Down Expand Up @@ -5757,6 +5815,7 @@ Released 2018-09-13
[`pathbuf_init_then_push`]: https://rust-lang.github.io/rust-clippy/master/index.html#pathbuf_init_then_push
[`pattern_type_mismatch`]: https://rust-lang.github.io/rust-clippy/master/index.html#pattern_type_mismatch
[`permissions_set_readonly_false`]: https://rust-lang.github.io/rust-clippy/master/index.html#permissions_set_readonly_false
[`pointers_in_nomem_asm_block`]: https://rust-lang.github.io/rust-clippy/master/index.html#pointers_in_nomem_asm_block
[`positional_named_format_parameters`]: https://rust-lang.github.io/rust-clippy/master/index.html#positional_named_format_parameters
[`possible_missing_comma`]: https://rust-lang.github.io/rust-clippy/master/index.html#possible_missing_comma
[`precedence`]: https://rust-lang.github.io/rust-clippy/master/index.html#precedence
Expand Down Expand Up @@ -5962,6 +6021,7 @@ Released 2018-09-13
[`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_first_then_check`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_first_then_check
[`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
Expand Down Expand Up @@ -6003,6 +6063,7 @@ Released 2018-09-13
[`unused_result_ok`]: https://rust-lang.github.io/rust-clippy/master/index.html#unused_result_ok
[`unused_rounding`]: https://rust-lang.github.io/rust-clippy/master/index.html#unused_rounding
[`unused_self`]: https://rust-lang.github.io/rust-clippy/master/index.html#unused_self
[`unused_trait_names`]: https://rust-lang.github.io/rust-clippy/master/index.html#unused_trait_names
[`unused_unit`]: https://rust-lang.github.io/rust-clippy/master/index.html#unused_unit
[`unusual_byte_groupings`]: https://rust-lang.github.io/rust-clippy/master/index.html#unusual_byte_groupings
[`unwrap_in_result`]: https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_in_result
Expand All @@ -6013,6 +6074,7 @@ Released 2018-09-13
[`use_debug`]: https://rust-lang.github.io/rust-clippy/master/index.html#use_debug
[`use_self`]: https://rust-lang.github.io/rust-clippy/master/index.html#use_self
[`used_underscore_binding`]: https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_binding
[`used_underscore_items`]: https://rust-lang.github.io/rust-clippy/master/index.html#used_underscore_items
[`useless_asref`]: https://rust-lang.github.io/rust-clippy/master/index.html#useless_asref
[`useless_attribute`]: https://rust-lang.github.io/rust-clippy/master/index.html#useless_attribute
[`useless_conversion`]: https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
Expand Down Expand Up @@ -6047,6 +6109,7 @@ Released 2018-09-13
[`zero_repeat_side_effects`]: https://rust-lang.github.io/rust-clippy/master/index.html#zero_repeat_side_effects
[`zero_sized_map_values`]: https://rust-lang.github.io/rust-clippy/master/index.html#zero_sized_map_values
[`zero_width_space`]: https://rust-lang.github.io/rust-clippy/master/index.html#zero_width_space
[`zombie_processes`]: https://rust-lang.github.io/rust-clippy/master/index.html#zombie_processes
[`zst_offset`]: https://rust-lang.github.io/rust-clippy/master/index.html#zst_offset
<!-- end autogenerated links to lint list -->
<!-- begin autogenerated links to configuration documentation -->
Expand Down
4 changes: 2 additions & 2 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.82"
version = "0.1.83"
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 @@ -31,7 +31,7 @@ anstream = "0.6.0"

[dev-dependencies]
cargo_metadata = "0.18.1"
ui_test = "0.25"
ui_test = "0.26.4"
regex = "1.5.5"
serde = { version = "1.0.145", features = ["derive"] }
serde_json = "1.0.122"
Expand Down
1 change: 1 addition & 0 deletions src/tools/clippy/book/src/lint_configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -727,6 +727,7 @@ The minimum rust version that the project supports. Defaults to the `rust-versio
* [`uninlined_format_args`](https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args)
* [`unnecessary_lazy_evaluations`](https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_lazy_evaluations)
* [`unnested_or_patterns`](https://rust-lang.github.io/rust-clippy/master/index.html#unnested_or_patterns)
* [`unused_trait_names`](https://rust-lang.github.io/rust-clippy/master/index.html#unused_trait_names)
* [`use_self`](https://rust-lang.github.io/rust-clippy/master/index.html#use_self)


Expand Down
2 changes: 1 addition & 1 deletion src/tools/clippy/clippy_config/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "clippy_config"
version = "0.1.82"
version = "0.1.83"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
5 changes: 3 additions & 2 deletions src/tools/clippy/clippy_config/src/conf.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use crate::ClippyConfiguration;
use crate::msrvs::Msrv;
use crate::types::{DisallowedPath, MacroMatcher, MatchLintBehaviour, PubUnderscoreFieldsBehaviour, Rename};
use crate::ClippyConfiguration;
use rustc_errors::Applicability;
use rustc_session::Session;
use rustc_span::edit_distance::edit_distance;
Expand Down Expand Up @@ -563,6 +563,7 @@ define_Conf! {
uninlined_format_args,
unnecessary_lazy_evaluations,
unnested_or_patterns,
unused_trait_names,
use_self,
)]
msrv: Msrv = Msrv::empty(),
Expand Down Expand Up @@ -864,7 +865,7 @@ fn calculate_dimensions(fields: &[&str]) -> (usize, Vec<usize>) {
cmp::max(1, terminal_width / (SEPARATOR_WIDTH + max_field_width))
});

let rows = (fields.len() + (columns - 1)) / columns;
let rows = fields.len().div_ceil(columns);

let column_widths = (0..columns)
.map(|column| {
Expand Down
2 changes: 1 addition & 1 deletion src/tools/clippy/clippy_config/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ mod metadata;
pub mod msrvs;
pub mod types;

pub use conf::{get_configuration_metadata, lookup_conf_file, Conf};
pub use conf::{Conf, get_configuration_metadata, lookup_conf_file};
pub use metadata::ClippyConfiguration;
6 changes: 4 additions & 2 deletions src/tools/clippy/clippy_config/src/msrvs.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use rustc_ast::Attribute;
use rustc_attr::parse_version;
use rustc_session::{RustcVersion, Session};
use rustc_span::{sym, Symbol};
use rustc_span::{Symbol, sym};
use serde::Deserialize;
use std::fmt;

Expand All @@ -23,6 +23,7 @@ msrv_aliases! {
1,80,0 { BOX_INTO_ITER}
1,77,0 { C_STR_LITERALS }
1,76,0 { PTR_FROM_REF, OPTION_RESULT_INSPECT }
1,73,0 { MANUAL_DIV_CEIL }
1,71,0 { TUPLE_ARRAY_CONVERSIONS, BUILD_HASHER_HASH_ONE }
1,70,0 { OPTION_RESULT_IS_VARIANT_AND, BINARY_HEAP_RETAIN }
1,68,0 { PATH_MAIN_SEPARATOR_STR }
Expand All @@ -38,7 +39,7 @@ msrv_aliases! {
1,52,0 { STR_SPLIT_ONCE, REM_EUCLID_CONST }
1,51,0 { BORROW_AS_PTR, SEEK_FROM_CURRENT, UNSIGNED_ABS }
1,50,0 { BOOL_THEN, CLAMP }
1,47,0 { TAU, IS_ASCII_DIGIT_CONST, ARRAY_IMPL_ANY_LEN }
1,47,0 { TAU, IS_ASCII_DIGIT_CONST, ARRAY_IMPL_ANY_LEN, SATURATING_SUB_CONST }
1,46,0 { CONST_IF_MATCH }
1,45,0 { STR_STRIP_PREFIX }
1,43,0 { LOG2_10, LOG10_2, NUMERIC_ASSOCIATED_CONSTANTS }
Expand All @@ -50,6 +51,7 @@ msrv_aliases! {
1,36,0 { ITERATOR_COPIED }
1,35,0 { OPTION_COPIED, RANGE_CONTAINS }
1,34,0 { TRY_FROM }
1,33,0 { UNDERSCORE_IMPORTS }
1,30,0 { ITERATOR_FIND_MAP, TOOL_ATTRIBUTES }
1,29,0 { ITER_FLATTEN }
1,28,0 { FROM_BOOL }
Expand Down
2 changes: 1 addition & 1 deletion src/tools/clippy/clippy_config/src/types.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use serde::de::{self, Deserializer, Visitor};
use serde::{ser, Deserialize, Serialize};
use serde::{Deserialize, Serialize, ser};
use std::fmt;

#[derive(Debug, Deserialize)]
Expand Down
2 changes: 1 addition & 1 deletion src/tools/clippy/clippy_dev/src/fmt.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use crate::clippy_project_root;
use itertools::Itertools;
use rustc_lexer::{tokenize, TokenKind};
use rustc_lexer::{TokenKind, tokenize};
use shell_escape::escape;
use std::ffi::{OsStr, OsString};
use std::ops::ControlFlow;
Expand Down
2 changes: 1 addition & 1 deletion src/tools/clippy/clippy_dev/src/new_lint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ fn create_lint_for_ty(lint: &LintData<'_>, enable_msrv: bool, ty: &str) -> io::R

#[allow(clippy::too_many_lines)]
fn setup_mod_file(path: &Path, lint: &LintData<'_>) -> io::Result<&'static str> {
use super::update_lints::{match_tokens, LintDeclSearchResult};
use super::update_lints::{LintDeclSearchResult, match_tokens};
use rustc_lexer::TokenKind;

let lint_name_upper = lint.name.to_uppercase();
Expand Down
Loading
Loading