Skip to content

Commit 4d35b5e

Browse files
committed
Auto merge of #10668 - xFrednet:changelog-1-69, r=flip1995
Changelog for Rust 1.69 🌸 Roses are blue, Violets are red, Something is wrong, We still commit! --- changelog: none
2 parents f1a552c + 6ce346c commit 4d35b5e

File tree

6 files changed

+122
-7
lines changed

6 files changed

+122
-7
lines changed

CHANGELOG.md

Lines changed: 117 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,126 @@ document.
66

77
## Unreleased / Beta / In Rust Nightly
88

9-
[7f27e2e7...master](https://github.com/rust-lang/rust-clippy/compare/7f27e2e7...master)
9+
[149392b0...master](https://github.com/rust-lang/rust-clippy/compare/149392b0...master)
10+
11+
## Rust 1.69
12+
13+
Current stable, released 2023-04-20
14+
15+
[7f27e2e7...149392b0](https://github.com/rust-lang/rust-clippy/compare/7f27e2e7...149392b0)
16+
17+
### New Lints
18+
19+
* [`no_mangle_with_rust_abi`]
20+
[#10369](https://github.com/rust-lang/rust-clippy/pull/10369)
21+
* [`significant_drop_tightening`]
22+
[#10163](https://github.com/rust-lang/rust-clippy/pull/10163)
23+
* [`suspicious_command_arg_space`]
24+
[#10317](https://github.com/rust-lang/rust-clippy/pull/10317)
25+
* [`let_underscore_untyped`]
26+
[#10356](https://github.com/rust-lang/rust-clippy/pull/10356)
27+
* [`question_mark_used`]
28+
[#10342](https://github.com/rust-lang/rust-clippy/pull/10342)
29+
* [`extra_unused_type_parameters`]
30+
[#10028](https://github.com/rust-lang/rust-clippy/pull/10028)
31+
* [`impl_trait_in_params`]
32+
[10197](https://github.com/rust-lang/rust-clippy/pull/10197)
33+
* [`transmute_int_to_non_zero`]
34+
[#10360](https://github.com/rust-lang/rust-clippy/pull/10360)
35+
* [`multiple_unsafe_ops_per_block`]
36+
[#10206](https://github.com/rust-lang/rust-clippy/pull/10206)
37+
38+
### Moves and Deprecations
39+
40+
* Moved [`uninlined_format_args`] to `pedantic` (Now allow-by-default)
41+
[#10265](https://github.com/rust-lang/rust-clippy/pull/10265)
42+
* Moved [`unchecked_duration_subtraction`] to `pedantic` (Now allow-by-default)
43+
[#10194](https://github.com/rust-lang/rust-clippy/pull/10194)
44+
45+
### Enhancements
46+
47+
* [`arithmetic_side_effects`]: No longer lints, if safe constant values are used.
48+
[#10310](https://github.com/rust-lang/rust-clippy/pull/10310)
49+
* [`needless_lifetimes`]: Now works in local macros
50+
[#10257](https://github.com/rust-lang/rust-clippy/pull/10257)
51+
* [`unused_io_amount`]: Now detects usages of `is_ok` and `is_err`
52+
[#10225](https://github.com/rust-lang/rust-clippy/pull/10225)
53+
* [`missing_docs_in_private_items`]: Added new configuration `missing-docs-in-crate-items` to lint
54+
on items visible within the current crate. For example, `pub(crate)` items.
55+
[#10303](https://github.com/rust-lang/rust-clippy/pull/10303)
56+
* [`almost_swapped`]: Now detects almost swaps using `let` statements
57+
[#10177](https://github.com/rust-lang/rust-clippy/pull/10177)
58+
* [`wildcard_enum_match_arm`]: Now lints missing private variants, for local enums
59+
[#10250](https://github.com/rust-lang/rust-clippy/pull/10250)
60+
61+
### False Positive Fixes
62+
63+
* [`explicit_auto_deref`]: Now considers projections, when determining if auto deref is applicable
64+
[#10386](https://github.com/rust-lang/rust-clippy/pull/10386)
65+
* [`manual_let_else`]: Now considers side effects of branches, before linting
66+
[#10336](https://github.com/rust-lang/rust-clippy/pull/10336)
67+
* [`uninlined_format_args`]: No longer lints for arguments with generic parameters
68+
[#10343](https://github.com/rust-lang/rust-clippy/pull/10343)
69+
* [`needless_lifetimes`]: No longer lints signatures in macros, if the lifetime is a metavariable
70+
[#10380](https://github.com/rust-lang/rust-clippy/pull/10380)
71+
* [`len_without_is_empty`]: No longer lints, if `len` as a non-default signature
72+
[#10255](https://github.com/rust-lang/rust-clippy/pull/10255)
73+
* [`unusual_byte_groupings`]: Relaxed the required restrictions for specific sizes, to reduce false
74+
positives
75+
[#10353](https://github.com/rust-lang/rust-clippy/pull/10353)
76+
* [`manual_let_else`]: No longer lints `if-else` blocks if they can divergent
77+
[#10332](https://github.com/rust-lang/rust-clippy/pull/10332)
78+
* [`expect_used`], [`unwrap_used`], [`dbg_macro`], [`print_stdout`], [`print_stderr`]: No longer lint
79+
in test functions, if `allow-expect-in-tests` is set
80+
[#10391](https://github.com/rust-lang/rust-clippy/pull/10391)
81+
* [`unnecessary_safety_comment`]: No longer lints code inside macros
82+
[#10106](https://github.com/rust-lang/rust-clippy/pull/10106)
83+
* [`never_loop`]: No longer lints, for statements following break statements for outer blocks.
84+
[#10311](https://github.com/rust-lang/rust-clippy/pull/10311)
85+
86+
### Suggestion Fixes/Improvements
87+
88+
* [`box_default`]: The suggestion now includes the type for trait objects, when needed
89+
[#10382](https://github.com/rust-lang/rust-clippy/pull/10382)
90+
* [`cast_possible_truncation`]: Now suggests using `try_from` or allowing the lint
91+
[#10038](https://github.com/rust-lang/rust-clippy/pull/10038)
92+
* [`invalid_regex`]: Regex errors for non-literals or regular strings containing escape sequences will
93+
now show the complete error
94+
[#10231](https://github.com/rust-lang/rust-clippy/pull/10231)
95+
* [`transmutes_expressible_as_ptr_casts`]: The suggestion now works, if the base type is borrowed
96+
[#10193](https://github.com/rust-lang/rust-clippy/pull/10193)
97+
* [`needless_return`]: Now removes all semicolons on the same line
98+
[#10187](https://github.com/rust-lang/rust-clippy/pull/10187)
99+
* [`suspicious_to_owned`]: The suggestion now shows all options clearly
100+
[#10295](https://github.com/rust-lang/rust-clippy/pull/10295)
101+
* [`bytes_nth`]: Now suggests the correct replacement based on the context
102+
[#10361](https://github.com/rust-lang/rust-clippy/pull/10361)
103+
* [`bool_assert_comparison`]: The suggestion is now machine applicable
104+
[#10218](https://github.com/rust-lang/rust-clippy/pull/10218)
105+
* [`cast_possible_truncation`]: Corrected the lint name in the help message
106+
[#10330](https://github.com/rust-lang/rust-clippy/pull/10330)
107+
* [`needless_return`]: The suggestion now works on if sequences
108+
[#10345](https://github.com/rust-lang/rust-clippy/pull/10345)
109+
* [`needless_lifetimes`]: The suggestion is now machine applicable
110+
[#10222](https://github.com/rust-lang/rust-clippy/pull/10222)
111+
* [`map_entry`]: The suggestion no longer expands macros
112+
[#10346](https://github.com/rust-lang/rust-clippy/pull/10346)
113+
114+
### ICE Fixes
115+
116+
* [`needless_pass_by_value`]: Fixed an ICE, caused by how late bounds were handled
117+
[#10328](https://github.com/rust-lang/rust-clippy/pull/10328)
118+
* [`needless_borrow`]: No longer panics on ambiguous projections
119+
[#10403](https://github.com/rust-lang/rust-clippy/pull/10403)
120+
121+
### Documentation Improvements
122+
123+
* All configurations are now documented in the Clippy Book
124+
[#10199](https://github.com/rust-lang/rust-clippy/pull/10199)
10125

11126
## Rust 1.68
12127

13-
Current stable, released 2023-03-09
128+
Released 2023-03-09
14129

15130
[d822110d...7f27e2e7](https://github.com/rust-lang/rust-clippy/compare/d822110d...7f27e2e7)
16131

clippy_lints/src/functions/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ declare_clippy_lint! {
348348
/// // [...]
349349
/// }
350350
/// ```
351-
#[clippy::version = "1.68.0"]
351+
#[clippy::version = "1.69.0"]
352352
pub IMPL_TRAIT_IN_PARAMS,
353353
restriction,
354354
"`impl Trait` is used in the function's parameters"

clippy_lints/src/methods/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3185,7 +3185,7 @@ declare_clippy_lint! {
31853185
/// ```rust
31863186
/// std::process::Command::new("echo").args(["-n", "hello"]).spawn().unwrap();
31873187
/// ```
3188-
#[clippy::version = "1.67.0"]
3188+
#[clippy::version = "1.69.0"]
31893189
pub SUSPICIOUS_COMMAND_ARG_SPACE,
31903190
suspicious,
31913191
"single command line argument that looks like it should be multiple arguments"

clippy_lints/src/multiple_unsafe_ops_per_block.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ declare_clippy_lint! {
5959
/// unsafe { char::from_u32_unchecked(int_value) }
6060
/// }
6161
/// ```
62-
#[clippy::version = "1.68.0"]
62+
#[clippy::version = "1.69.0"]
6363
pub MULTIPLE_UNSAFE_OPS_PER_BLOCK,
6464
restriction,
6565
"more than one unsafe operation per `unsafe` block"

clippy_lints/src/question_mark_used.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ declare_clippy_lint! {
2424
/// ```ignore
2525
/// utility_macro!(expr);
2626
/// ```
27-
#[clippy::version = "pre 1.29.0"]
27+
#[clippy::version = "1.69.0"]
2828
pub QUESTION_MARK_USED,
2929
restriction,
3030
"complains if the question mark operator is used"

clippy_lints/src/significant_drop_tightening.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ declare_clippy_lint! {
4646
/// do_heavy_computation_that_takes_time(owned_rslt);
4747
/// }
4848
/// ```
49-
#[clippy::version = "1.67.0"]
49+
#[clippy::version = "1.69.0"]
5050
pub SIGNIFICANT_DROP_TIGHTENING,
5151
nursery,
5252
"Searches for elements marked with `#[clippy::has_significant_drop]` that could be early dropped but are in fact dropped at the end of their scopes"

0 commit comments

Comments
 (0)