Skip to content

Commit a29f0c4

Browse files
authored
Merge branch 'master' into master
2 parents 348a7f8 + 9e9042a commit a29f0c4

Some content is hidden

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

45 files changed

+648
-239
lines changed

.github/workflows/clippy_bors.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ jobs:
162162
find $DIR ! -executable -o -type d ! -path $DIR | xargs rm -rf
163163
164164
- name: Upload Binaries
165-
uses: actions/upload-artifact@v3
165+
uses: actions/upload-artifact@v4
166166
with:
167167
name: binaries
168168
path: target/debug
@@ -202,7 +202,7 @@ jobs:
202202

203203
# Download
204204
- name: Download target dir
205-
uses: actions/download-artifact@v3
205+
uses: actions/download-artifact@v4
206206
with:
207207
name: binaries
208208
path: target/debug

CHANGELOG.md

Lines changed: 56 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,61 @@ document.
66

77
## Unreleased / Beta / In Rust Nightly
88

9-
[c9139bd5...master](https://github.com/rust-lang/rust-clippy/compare/c9139bd5...master)
9+
[b794b8e0...master](https://github.com/rust-lang/rust-clippy/compare/b794b8e0...master)
10+
11+
## Rust 1.81
12+
13+
Current stable, released 2024-09-05
14+
15+
### New Lints
16+
17+
* Added [`cfg_not_test`] to `restriction`
18+
[#11293](https://github.com/rust-lang/rust-clippy/pull/11293)
19+
* Added [`byte_char_slices`] to `style`
20+
[#10155](https://github.com/rust-lang/rust-clippy/pull/10155)
21+
* Added [`set_contains_or_insert`] to `nursery`
22+
[#12873](https://github.com/rust-lang/rust-clippy/pull/12873)
23+
* Added [`manual_rotate`] to `style`
24+
[#12983](https://github.com/rust-lang/rust-clippy/pull/12983)
25+
* Added [`unnecessary_min_or_max`] to `complexity`
26+
[#12368](https://github.com/rust-lang/rust-clippy/pull/12368)
27+
* Added [`manual_inspect`] to `complexity`
28+
[#12287](https://github.com/rust-lang/rust-clippy/pull/12287)
29+
* Added [`field_scoped_visibility_modifiers`] to `restriction`
30+
[#12893](https://github.com/rust-lang/rust-clippy/pull/12893)
31+
* Added [`manual_pattern_char_comparison`] to `style`
32+
[#12849](https://github.com/rust-lang/rust-clippy/pull/12849)
33+
* Added [`needless_maybe_sized`] to `suspicious`
34+
[#10632](https://github.com/rust-lang/rust-clippy/pull/10632)
35+
* Added [`needless_character_iteration`] to `suspicious`
36+
[#12815](https://github.com/rust-lang/rust-clippy/pull/12815)
37+
38+
### Moves and Deprecations
39+
40+
* [`allow_attributes`], [`allow_attributes_without_reason`]: Now work on stable
41+
[rust#120924](https://github.com/rust-lang/rust/pull/120924)
42+
* Renamed `overflow_check_conditional` to [`panicking_overflow_checks`]
43+
[#12944](https://github.com/rust-lang/rust-clippy/pull/12944)
44+
* Moved [`panicking_overflow_checks`] to `correctness` (From `complexity` now deny-by-default)
45+
[#12944](https://github.com/rust-lang/rust-clippy/pull/12944)
46+
* Renamed `thread_local_initializer_can_be_made_const` to [`missing_const_for_thread_local`]
47+
[#12974](https://github.com/rust-lang/rust-clippy/pull/12974)
48+
* Deprecated [`maybe_misused_cfg`] and [`mismatched_target_os`] as they are now caught by cargo
49+
and rustc
50+
[#12875](https://github.com/rust-lang/rust-clippy/pull/12875)
51+
52+
### Enhancements
53+
54+
* [`significant_drop_in_scrutinee`]: Now also checks scrutinies of `while let` and `for let`
55+
expressions
56+
[#12870](https://github.com/rust-lang/rust-clippy/pull/12870)
57+
* [`std_instead_of_core`]: Now respects the `msrv` configuration
58+
[#13168](https://github.com/rust-lang/rust-clippy/pull/13168)
59+
60+
### ICE Fixes
61+
62+
* [`suboptimal_flops`]: No longer crashes on custom `.log()` functions
63+
[#12884](https://github.com/rust-lang/rust-clippy/pull/12884)
1064

1165
## Rust 1.80
1266

@@ -5560,6 +5614,7 @@ Released 2018-09-13
55605614
[`manual_bits`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_bits
55615615
[`manual_c_str_literals`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_c_str_literals
55625616
[`manual_clamp`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_clamp
5617+
[`manual_div_ceil`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_div_ceil
55635618
[`manual_filter`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_filter
55645619
[`manual_filter_map`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_filter_map
55655620
[`manual_find`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_find

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "clippy"
3-
version = "0.1.82"
3+
version = "0.1.83"
44
description = "A bunch of helpful lints to avoid common pitfalls in Rust"
55
repository = "https://github.com/rust-lang/rust-clippy"
66
readme = "README.md"

clippy_config/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "clippy_config"
3-
version = "0.1.82"
3+
version = "0.1.83"
44
edition = "2021"
55

66
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

clippy_config/src/conf.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -864,7 +864,7 @@ fn calculate_dimensions(fields: &[&str]) -> (usize, Vec<usize>) {
864864
cmp::max(1, terminal_width / (SEPARATOR_WIDTH + max_field_width))
865865
});
866866

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

869869
let column_widths = (0..columns)
870870
.map(|column| {

clippy_config/src/msrvs.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ msrv_aliases! {
2121
1,80,0 { BOX_INTO_ITER}
2222
1,77,0 { C_STR_LITERALS }
2323
1,76,0 { PTR_FROM_REF, OPTION_RESULT_INSPECT }
24+
1,73,0 { MANUAL_DIV_CEIL }
2425
1,71,0 { TUPLE_ARRAY_CONVERSIONS, BUILD_HASHER_HASH_ONE }
2526
1,70,0 { OPTION_RESULT_IS_VARIANT_AND, BINARY_HEAP_RETAIN }
2627
1,68,0 { PATH_MAIN_SEPARATOR_STR }

clippy_lints/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "clippy_lints"
3-
version = "0.1.82"
3+
version = "0.1.83"
44
description = "A bunch of helpful lints to avoid common pitfalls in Rust"
55
repository = "https://github.com/rust-lang/rust-clippy"
66
readme = "README.md"

clippy_lints/src/byte_char_slices.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ declare_clippy_lint! {
2222
/// ```ignore
2323
/// b"Hello"
2424
/// ```
25-
#[clippy::version = "1.68.0"]
25+
#[clippy::version = "1.81.0"]
2626
pub BYTE_CHAR_SLICES,
2727
style,
2828
"hard to read byte char slice"

clippy_lints/src/cfg_not_test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ declare_clippy_lint! {
2222
/// # fn important_check() {}
2323
/// important_check();
2424
/// ```
25-
#[clippy::version = "1.73.0"]
25+
#[clippy::version = "1.81.0"]
2626
pub CFG_NOT_TEST,
2727
restriction,
2828
"enforce against excluding code from test builds"

clippy_lints/src/declared_lints.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,7 @@ pub static LINTS: &[&crate::LintInfo] = &[
301301
crate::manual_async_fn::MANUAL_ASYNC_FN_INFO,
302302
crate::manual_bits::MANUAL_BITS_INFO,
303303
crate::manual_clamp::MANUAL_CLAMP_INFO,
304+
crate::manual_div_ceil::MANUAL_DIV_CEIL_INFO,
304305
crate::manual_float_methods::MANUAL_IS_FINITE_INFO,
305306
crate::manual_float_methods::MANUAL_IS_INFINITE_INFO,
306307
crate::manual_hash_one::MANUAL_HASH_ONE_INFO,

0 commit comments

Comments
 (0)