Skip to content

Commit d2f76f7

Browse files
committedFeb 8, 2024
Merge remote-tracking branch 'upstream/master' into rustup
2 parents 7895b98 + 62dcbd6 commit d2f76f7

File tree

139 files changed

+3913
-633
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

139 files changed

+3913
-633
lines changed
 

Diff for: ‎.github/driver.sh

100644100755
+15
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,16 @@ if [[ ${OS} == "Windows" ]]; then
1111
else
1212
desired_sysroot=/tmp
1313
fi
14+
# Set --sysroot in command line
1415
sysroot=$(./target/debug/clippy-driver --sysroot $desired_sysroot --print sysroot)
1516
test "$sysroot" = $desired_sysroot
1617

18+
# Set --sysroot in arg_file.txt and pass @arg_file.txt to command line
19+
echo "--sysroot=$desired_sysroot" > arg_file.txt
20+
sysroot=$(./target/debug/clippy-driver @arg_file.txt --print sysroot)
21+
test "$sysroot" = $desired_sysroot
22+
23+
# Setting SYSROOT in command line
1724
sysroot=$(SYSROOT=$desired_sysroot ./target/debug/clippy-driver --print sysroot)
1825
test "$sysroot" = $desired_sysroot
1926

@@ -24,6 +31,14 @@ test "$sysroot" = $desired_sysroot
2431
SYSROOT=/tmp RUSTFLAGS="--sysroot=$(rustc --print sysroot)" ../target/debug/cargo-clippy clippy --verbose
2532
)
2633

34+
# Check that the --sysroot argument is only passed once via arg_file.txt (SYSROOT is ignored)
35+
(
36+
echo "fn main() {}" > target/driver_test.rs
37+
echo "--sysroot="$(./target/debug/clippy-driver --print sysroot)"" > arg_file.txt
38+
echo "--verbose" >> arg_file.txt
39+
SYSROOT=/tmp ./target/debug/clippy-driver @arg_file.txt ./target/driver_test.rs
40+
)
41+
2742
# Make sure this isn't set - clippy-driver should cope without it
2843
unset CARGO_MANIFEST_DIR
2944

Diff for: ‎CHANGELOG.md

+64-2
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,65 @@ document.
66

77
## Unreleased / Beta / In Rust Nightly
88

9-
[09ac14c9...master](https://github.com/rust-lang/rust-clippy/compare/09ac14c9...master)
9+
[a859e5cc...master](https://github.com/rust-lang/rust-clippy/compare/a859e5cc...master)
10+
11+
## Rust 1.76
12+
13+
Current stable, released 2024-02-08
14+
15+
[View all 85 merged pull requests](https://github.com/rust-lang/rust-clippy/pulls?q=merged%3A2023-11-02T20%3A23%3A40Z..2023-12-16T13%3A11%3A08Z+base%3Amaster)
16+
17+
### New Lints
18+
19+
- [`infinite_loop`]
20+
[#11829](https://github.com/rust-lang/rust-clippy/pull/11829)
21+
- [`ineffective_open_options`]
22+
[#11902](https://github.com/rust-lang/rust-clippy/pull/11902)
23+
- [`uninhabited_references`]
24+
[#11878](https://github.com/rust-lang/rust-clippy/pull/11878)
25+
- [`repeat_vec_with_capacity`]
26+
[#11597](https://github.com/rust-lang/rust-clippy/pull/11597)
27+
- [`test_attr_in_doctest`]
28+
[#11872](https://github.com/rust-lang/rust-clippy/pull/11872)
29+
- [`option_map_or_err_ok`]
30+
[#11864](https://github.com/rust-lang/rust-clippy/pull/11864)
31+
- [`join_absolute_paths`]
32+
[#11453](https://github.com/rust-lang/rust-clippy/pull/11453)
33+
- [`impl_hash_borrow_with_str_and_bytes`]
34+
[#11781](https://github.com/rust-lang/rust-clippy/pull/11781)
35+
- [`iter_over_hash_type`]
36+
[#11791](https://github.com/rust-lang/rust-clippy/pull/11791)
37+
38+
### Moves and Deprecations
39+
40+
- Renamed `blocks_in_if_conditions` to [`blocks_in_conditions`]
41+
[#11853](https://github.com/rust-lang/rust-clippy/pull/11853)
42+
- Moved [`implied_bounds_in_impls`] to `complexity` (Now warn-by-default)
43+
[#11867](https://github.com/rust-lang/rust-clippy/pull/11867)
44+
- Moved [`if_same_then_else`] to `style` (Now warn-by-default)
45+
[#11809](https://github.com/rust-lang/rust-clippy/pull/11809)
46+
47+
### Enhancements
48+
49+
- [`missing_safety_doc`], [`unnecessary_safety_doc`], [`missing_panics_doc`], [`missing_errors_doc`]:
50+
Added the [`check-private-items`] configuration to enable lints on private items
51+
[#11842](https://github.com/rust-lang/rust-clippy/pull/11842)
52+
53+
### ICE Fixes
54+
55+
- [`impl_trait_in_params`]: No longer crashes when a function has generics but no function parameters
56+
[#11804](https://github.com/rust-lang/rust-clippy/pull/11804)
57+
- [`unused_enumerate_index`]: No longer crashes on empty tuples
58+
[#11756](https://github.com/rust-lang/rust-clippy/pull/11756)
59+
60+
### Others
61+
62+
- Clippy now respects the `CARGO` environment value
63+
[#11944](https://github.com/rust-lang/rust-clippy/pull/11944)
1064

1165
## Rust 1.75
1266

13-
Current stable, released 2023-12-28
67+
Released 2023-12-28
1468

1569
[View all 69 merged pull requests](https://github.com/rust-lang/rust-clippy/pulls?q=merged%3A2023-09-25T11%3A47%3A47Z..2023-11-02T16%3A41%3A59Z+base%3Amaster)
1670

@@ -5198,6 +5252,7 @@ Released 2018-09-13
51985252
[`implied_bounds_in_impls`]: https://rust-lang.github.io/rust-clippy/master/index.html#implied_bounds_in_impls
51995253
[`impossible_comparisons`]: https://rust-lang.github.io/rust-clippy/master/index.html#impossible_comparisons
52005254
[`imprecise_flops`]: https://rust-lang.github.io/rust-clippy/master/index.html#imprecise_flops
5255+
[`incompatible_msrv`]: https://rust-lang.github.io/rust-clippy/master/index.html#incompatible_msrv
52015256
[`inconsistent_digit_grouping`]: https://rust-lang.github.io/rust-clippy/master/index.html#inconsistent_digit_grouping
52025257
[`inconsistent_struct_constructor`]: https://rust-lang.github.io/rust-clippy/master/index.html#inconsistent_struct_constructor
52035258
[`incorrect_clone_impl_on_copy_type`]: https://rust-lang.github.io/rust-clippy/master/index.html#incorrect_clone_impl_on_copy_type
@@ -5276,6 +5331,7 @@ Released 2018-09-13
52765331
[`let_with_type_underscore`]: https://rust-lang.github.io/rust-clippy/master/index.html#let_with_type_underscore
52775332
[`lines_filter_map_ok`]: https://rust-lang.github.io/rust-clippy/master/index.html#lines_filter_map_ok
52785333
[`linkedlist`]: https://rust-lang.github.io/rust-clippy/master/index.html#linkedlist
5334+
[`lint_groups_priority`]: https://rust-lang.github.io/rust-clippy/master/index.html#lint_groups_priority
52795335
[`little_endian_bytes`]: https://rust-lang.github.io/rust-clippy/master/index.html#little_endian_bytes
52805336
[`logic_bug`]: https://rust-lang.github.io/rust-clippy/master/index.html#logic_bug
52815337
[`lossy_float_literal`]: https://rust-lang.github.io/rust-clippy/master/index.html#lossy_float_literal
@@ -5284,6 +5340,7 @@ Released 2018-09-13
52845340
[`manual_assert`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_assert
52855341
[`manual_async_fn`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_async_fn
52865342
[`manual_bits`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_bits
5343+
[`manual_c_str_literals`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_c_str_literals
52875344
[`manual_clamp`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_clamp
52885345
[`manual_filter`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_filter
52895346
[`manual_filter_map`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_filter_map
@@ -5523,6 +5580,7 @@ Released 2018-09-13
55235580
[`redundant_slicing`]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_slicing
55245581
[`redundant_static_lifetimes`]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes
55255582
[`redundant_type_annotations`]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_type_annotations
5583+
[`ref_as_ptr`]: https://rust-lang.github.io/rust-clippy/master/index.html#ref_as_ptr
55265584
[`ref_binding_to_reference`]: https://rust-lang.github.io/rust-clippy/master/index.html#ref_binding_to_reference
55275585
[`ref_in_deref`]: https://rust-lang.github.io/rust-clippy/master/index.html#ref_in_deref
55285586
[`ref_option_ref`]: https://rust-lang.github.io/rust-clippy/master/index.html#ref_option_ref
@@ -5622,6 +5680,7 @@ Released 2018-09-13
56225680
[`to_digit_is_some`]: https://rust-lang.github.io/rust-clippy/master/index.html#to_digit_is_some
56235681
[`to_string_in_display`]: https://rust-lang.github.io/rust-clippy/master/index.html#to_string_in_display
56245682
[`to_string_in_format_args`]: https://rust-lang.github.io/rust-clippy/master/index.html#to_string_in_format_args
5683+
[`to_string_trait_impl`]: https://rust-lang.github.io/rust-clippy/master/index.html#to_string_trait_impl
56255684
[`todo`]: https://rust-lang.github.io/rust-clippy/master/index.html#todo
56265685
[`too_many_arguments`]: https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments
56275686
[`too_many_lines`]: https://rust-lang.github.io/rust-clippy/master/index.html#too_many_lines
@@ -5677,6 +5736,7 @@ Released 2018-09-13
56775736
[`unnecessary_mut_passed`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_mut_passed
56785737
[`unnecessary_operation`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_operation
56795738
[`unnecessary_owned_empty_strings`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_owned_empty_strings
5739+
[`unnecessary_result_map_or_else`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_result_map_or_else
56805740
[`unnecessary_safety_comment`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_safety_comment
56815741
[`unnecessary_safety_doc`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_safety_doc
56825742
[`unnecessary_self_imports`]: https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_self_imports
@@ -5819,4 +5879,6 @@ Released 2018-09-13
58195879
[`enforce-iter-loop-reborrow`]: https://doc.rust-lang.org/clippy/lint_configuration.html#enforce-iter-loop-reborrow
58205880
[`check-private-items`]: https://doc.rust-lang.org/clippy/lint_configuration.html#check-private-items
58215881
[`pub-underscore-fields-behavior`]: https://doc.rust-lang.org/clippy/lint_configuration.html#pub-underscore-fields-behavior
5882+
[`allow-comparison-to-zero`]: https://doc.rust-lang.org/clippy/lint_configuration.html#allow-comparison-to-zero
5883+
[`allowed-wildcard-imports`]: https://doc.rust-lang.org/clippy/lint_configuration.html#allowed-wildcard-imports
58225884
<!-- end autogenerated links to configuration documentation -->

0 commit comments

Comments
 (0)