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

Merged
merged 77 commits into from
Nov 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
77 commits
Select commit Hold shift + click to select a range
5e17f9f
Skip if_not_else lint for '!= 0'-style checks
BenWiederhake Jun 25, 2023
438f934
suggest passing function instead of calling it in [`option_if_let_else`]
J-ZhengLi Sep 4, 2023
22ba792
Update clippy_lints/src/option_if_let_else.rs
J-ZhengLi Sep 12, 2023
fb4f603
Apply suggestions from code review
J-ZhengLi Sep 14, 2023
f4a8b12
Wrap with parenthesis if necessary
koka831 Sep 29, 2023
536114c
[`ignored_unit_patterns`]: check &(), &&(), ...
lengyijun Oct 15, 2023
4fc503e
Avoid a `track_errors` by bubbling up most errors from `check_well_fo…
oli-obk Oct 18, 2023
8e7d167
Merge commit '2b030eb03d9e5837440b1ee0b98c50b97c0c5889' into clippyup
flip1995 Oct 21, 2023
d6fc606
[`map_identity`]: recognize tuples
y21 Jun 13, 2023
56c8235
Auto merge of #10943 - y21:issue7189, r=llogiq
bors Oct 21, 2023
87d0ace
use visibility to check unused imports and delete some stmts
bvanjoi Oct 15, 2023
3c501e4
[`iter_without_into_iter`]: fix papercuts + only lint on pub types
y21 Oct 22, 2023
f942470
Auto merge of #11028 - BenWiederhake:dev-ifnotelse_neqzero, r=llogiq
bors Oct 23, 2023
350a682
Auto merge of #116849 - oli-obk:error_shenanigans, r=cjgillot
bors Oct 23, 2023
56ece10
Use `no_run` for doc-tests in new lints
Alexendoo Oct 23, 2023
9f5de66
Auto merge of #11460 - J-ZhengLi:issue11429, r=Centri3
bors Oct 23, 2023
7347c18
Set existing doc-tests to `no_run`
Alexendoo Oct 23, 2023
033c763
Auto merge of #11699 - Alexendoo:no-run-doctests, r=llogiq
bors Oct 23, 2023
e1b287c
Use multiple pushes in `vec_init_then_push` example
Alexendoo Oct 23, 2023
7ade24e
Fix stable feature names in tests
dtolnay Oct 15, 2023
4622203
Move configuration to new `clippy_config` crate
Alexendoo Oct 19, 2023
330d7fa
Auto merge of #116033 - bvanjoi:fix-116032, r=petrochenkov
bors Oct 23, 2023
f879096
Add a lint to check needless `Waker` clones
a1phyr Oct 23, 2023
7df1c8a
Hide config implementation details from public docs
Alexendoo Oct 19, 2023
4eb4192
Auto merge of #11685 - Alexendoo:clippy_config, r=flip1995
bors Oct 24, 2023
cd6ec97
Auto merge of #116773 - dtolnay:validatestable, r=compiler-errors
bors Oct 24, 2023
f4f5b05
Handle structured stable attribute 'since' version in clippy
dtolnay Oct 25, 2023
76d7af0
Expose a non-Symbol way to access current rustc version string
dtolnay Oct 25, 2023
ffc7419
Work around the fact that `check_mod_type_wf` may spuriously return `…
oli-obk Oct 25, 2023
0580080
Remove the `internal_warn` lint category
Alexendoo Oct 25, 2023
ebf6667
Apply suggestions
a1phyr Oct 25, 2023
c337899
Rename `AsyncCoroutineKind` to `CoroutineSource`
oli-obk Oct 23, 2023
7ce6e0d
Auto merge of #11670 - lengyijun:ignored_unit_pattern_ref, r=dswij
bors Oct 25, 2023
ebe63cd
Stop telling people to submit bugs for internal feature ICEs
Noratrieb Oct 16, 2023
5f19fac
Rollup merge of #117175 - oli-obk:gen_fn_split, r=compiler-errors
matthiaskrgr Oct 25, 2023
45f94c7
mention restriction to exported types as a limitation
y21 Oct 25, 2023
d914890
Auto merge of #116818 - Nilstrieb:stop-submitting-bug-reports, r=wesl…
bors Oct 26, 2023
3e05710
Auto merge of #117148 - dtolnay:sinceversion, r=cjgillot
bors Oct 26, 2023
0da4dab
Auto merge of #11584 - koka831:fix/11335, r=blyxyas
bors Oct 26, 2023
392b255
Auto merge of #11712 - Alexendoo:remove-internal-warn, r=dswij
bors Oct 26, 2023
2f0f4dd
Auto merge of #11698 - a1phyr:waker_clone_and_wake, r=y21
bors Oct 26, 2023
d736992
Parse rustc version at compile time
dtolnay Oct 27, 2023
0c8caee
Add gen blocks to ast and do some broken ast lowering
oli-obk Oct 20, 2023
f4b4e2c
Remove internal feature from clippy_utils
Alexendoo Oct 27, 2023
1ed1001
Fix missing parenthesis in suboptimal floating point help
llogiq Oct 27, 2023
58fe451
Expand docs on clippy::todo
Wilfred Oct 27, 2023
9a10d32
reword limitation section
y21 Oct 28, 2023
f8409ef
Auto merge of #11696 - y21:iter_without_into_iter_suggestion, r=xFrednet
bors Oct 28, 2023
5852ca8
Auto merge of #11724 - rust-lang:fix-11559, r=blyxyas
bors Oct 28, 2023
2fea83b
move `read_zero_byte_vec` to nursery
dswij Oct 28, 2023
f2a0776
Auto merge of #116447 - oli-obk:gen_fn, r=compiler-errors
bors Oct 29, 2023
2030c58
Fix some typos
cuishuang Oct 29, 2023
a40958a
Auto merge of #11730 - cuishuang:master, r=dswij
bors Oct 29, 2023
fa6fd8c
Auto merge of #11726 - Wilfred:todo_docs, r=dswij
bors Oct 29, 2023
c51e2a0
fix enum_variant_names depending lint depending on order
jonboh Sep 13, 2023
e6c804c
ignore lower-camel-case words in `doc_markdown`
llogiq Oct 29, 2023
739f9e2
Auto merge of #11727 - dswij:read-zero-byte-vec-nursery, r=Centri3
bors Oct 29, 2023
2e907aa
Rename Since -> StableSince in preparation for a DeprecatedSince
dtolnay Oct 26, 2023
e245f7c
Auto merge of #11735 - rust-lang:fix-11568, r=blyxyas
bors Oct 30, 2023
325e9fd
Auto merge of #11723 - Alexendoo:clippy-utils-internal, r=Jarcho
bors Oct 30, 2023
cdc4d56
Auto merge of #11701 - Alexendoo:vec-init-then-push-docs, r=Jarcho
bors Oct 30, 2023
69c3b9c
new lint: `unnecessary_fallible_conversions`
y21 Oct 14, 2023
3da80dc
Auto merge of #11498 - jonboh:issue11494_enumvariants_order_affects_l…
bors Oct 31, 2023
7d34406
Auto merge of #11669 - y21:issue11577, r=Jarcho
bors Oct 31, 2023
0b90f72
feat: unused_enumerate_index lint
dnbln Feb 26, 2023
14b8290
Apply suggestions from code review
dnbln Oct 12, 2023
bb9cc6d
refactor: extract common pat_is_wild to clippy_utils
dnbln Nov 1, 2023
919f698
Auto merge of #10404 - dnbln:feat/unused_enumerate_index, r=blyxyas
bors Nov 1, 2023
3b759bc
fix get_first false negative for VecDeque
matthri Nov 1, 2023
61c76dd
remove code duplication
matthri Nov 1, 2023
01a0a36
Auto merge of #11744 - matthri:get-first-deque-fix, r=Jarcho
bors Nov 2, 2023
95dc7be
Merge remote-tracking branch 'upstream/master' into rustup
flip1995 Nov 2, 2023
5eee19e
Bump nightly version -> 2023-11-02
flip1995 Nov 2, 2023
62a82b3
Format let-chains across the code base
flip1995 Nov 2, 2023
09ac14c
Auto merge of #11747 - flip1995:rustup, r=flip1995
bors Nov 2, 2023
257147a
Merge commit '09ac14c901abc43bd0d617ae4a44e8a4fed98d9c' into clippyup
flip1995 Nov 2, 2023
02562bf
Update Cargo.lock
flip1995 Nov 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
  •  
  •  
  •  
14 changes: 13 additions & 1 deletion Cargo.lock
Original file line number Diff line number Diff line change
Expand Up @@ -556,6 +556,7 @@ name = "clippy"
version = "0.1.75"
dependencies = [
"anstream",
"clippy_config",
"clippy_lints",
"clippy_utils",
"color-print",
Expand All @@ -578,6 +579,16 @@ dependencies = [
"walkdir",
]

[[package]]
name = "clippy_config"
version = "0.1.75"
dependencies = [
"rustc-semver",
"serde",
"toml 0.7.5",
"walkdir",
]

[[package]]
name = "clippy_dev"
version = "0.0.1"
Expand All @@ -597,6 +608,7 @@ version = "0.1.75"
dependencies = [
"arrayvec",
"cargo_metadata 0.15.4",
"clippy_config",
"clippy_utils",
"declare_clippy_lint",
"if_chain",
Expand All @@ -621,10 +633,10 @@ name = "clippy_utils"
version = "0.1.75"
dependencies = [
"arrayvec",
"clippy_config",
"if_chain",
"itertools",
"rustc-semver",
"serde",
]

[[package]]
Expand Down
2 changes: 1 addition & 1 deletion src/tools/clippy/.github/workflows/clippy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
working-directory: clippy_lints

- name: Test clippy_utils
run: cargo test --features deny-warnings,internal
run: cargo test --features deny-warnings
working-directory: clippy_utils

- name: Test rustc_tools_util
Expand Down
6 changes: 5 additions & 1 deletion src/tools/clippy/.github/workflows/clippy_bors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,13 @@ jobs:
working-directory: clippy_lints

- name: Test clippy_utils
run: cargo test --features deny-warnings,internal
run: cargo test --features deny-warnings
working-directory: clippy_utils

- name: Test clippy_config
run: cargo test --features deny-warnings
working-directory: clippy_config

- name: Test rustc_tools_util
run: cargo test --features deny-warnings
working-directory: rustc_tools_util
Expand Down
3 changes: 3 additions & 0 deletions src/tools/clippy/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5528,6 +5528,7 @@ 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_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
Expand Down Expand Up @@ -5560,6 +5561,7 @@ Released 2018-09-13
[`unstable_as_slice`]: https://rust-lang.github.io/rust-clippy/master/index.html#unstable_as_slice
[`unused_async`]: https://rust-lang.github.io/rust-clippy/master/index.html#unused_async
[`unused_collect`]: https://rust-lang.github.io/rust-clippy/master/index.html#unused_collect
[`unused_enumerate_index`]: https://rust-lang.github.io/rust-clippy/master/index.html#unused_enumerate_index
[`unused_format_specs`]: https://rust-lang.github.io/rust-clippy/master/index.html#unused_format_specs
[`unused_io_amount`]: https://rust-lang.github.io/rust-clippy/master/index.html#unused_io_amount
[`unused_label`]: https://rust-lang.github.io/rust-clippy/master/index.html#unused_label
Expand Down Expand Up @@ -5589,6 +5591,7 @@ Released 2018-09-13
[`verbose_bit_mask`]: https://rust-lang.github.io/rust-clippy/master/index.html#verbose_bit_mask
[`verbose_file_reads`]: https://rust-lang.github.io/rust-clippy/master/index.html#verbose_file_reads
[`vtable_address_comparisons`]: https://rust-lang.github.io/rust-clippy/master/index.html#vtable_address_comparisons
[`waker_clone_wake`]: https://rust-lang.github.io/rust-clippy/master/index.html#waker_clone_wake
[`while_immutable_condition`]: https://rust-lang.github.io/rust-clippy/master/index.html#while_immutable_condition
[`while_let_loop`]: https://rust-lang.github.io/rust-clippy/master/index.html#while_let_loop
[`while_let_on_iterator`]: https://rust-lang.github.io/rust-clippy/master/index.html#while_let_on_iterator
Expand Down
3 changes: 2 additions & 1 deletion src/tools/clippy/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,12 @@ name = "clippy-driver"
path = "src/driver.rs"

[dependencies]
clippy_config = { path = "clippy_config" }
clippy_lints = { path = "clippy_lints" }
rustc_tools_util = "0.3.0"
tempfile = { version = "3.2", optional = true }
termize = "0.1"
color-print = "0.3.4" # Sync version with Cargo
color-print = "0.3.4"
anstream = "0.5.0"

[dev-dependencies]
Expand Down
Loading
Loading