mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-17 06:26:55 +00:00
Auto merge of #11806 - xFrednet:changelog-1-74, r=Alexendoo
Changelog for Rust 1.74 🎃 Roses are red, Halloween is over, Have you considered, Buying a Mars rover? --- ### The cats of this release: <img height=500 src="https://github.com/rust-lang/rust-clippy/assets/17087237/095bd32e-b5e3-41db-8f0f-bdef7ca1a6d0" alt="The cats of this Clippy release" /> <sub>The cat for the next release can be nominated in the comments</sub> --- changelog: none
This commit is contained in:
commit
406d953820
63
CHANGELOG.md
63
CHANGELOG.md
@ -6,11 +6,70 @@ document.
|
||||
|
||||
## Unreleased / Beta / In Rust Nightly
|
||||
|
||||
[1e8fdf49...master](https://github.com/rust-lang/rust-clippy/compare/1e8fdf49...master)
|
||||
[7671c283...master](https://github.com/rust-lang/rust-clippy/compare/7671c283...master)
|
||||
|
||||
## Rust 1.74
|
||||
|
||||
Current stable, released 2023-11-16
|
||||
|
||||
[View all 94 merged pull requests](https://github.com/rust-lang/rust-clippy/pulls?q=merged%3A2023-08-11T15%3A29%3A18Z..2023-09-25T08%3A48%3A22Z+base%3Amaster)
|
||||
|
||||
### New Lints
|
||||
|
||||
* [`redundant_as_str`]
|
||||
[#11526](https://github.com/rust-lang/rust-clippy/pull/11526)
|
||||
* [`needless_borrows_for_generic_args`]
|
||||
[#11511](https://github.com/rust-lang/rust-clippy/pull/11511)
|
||||
* [`path_ends_with_ext`]
|
||||
[#11483](https://github.com/rust-lang/rust-clippy/pull/11483)
|
||||
* [`unnecessary_map_on_constructor`]
|
||||
[#11413](https://github.com/rust-lang/rust-clippy/pull/11413)
|
||||
* [`missing_asserts_for_indexing`]
|
||||
[#10692](https://github.com/rust-lang/rust-clippy/pull/10692)
|
||||
* [`iter_out_of_bounds`]
|
||||
[#11396](https://github.com/rust-lang/rust-clippy/pull/11396)
|
||||
* [`implied_bounds_in_impls`]
|
||||
[#11362](https://github.com/rust-lang/rust-clippy/pull/11362)
|
||||
* [`reserve_after_initialization`]
|
||||
[#11373](https://github.com/rust-lang/rust-clippy/pull/11373)
|
||||
* [`should_panic_without_expect`]
|
||||
[#11204](https://github.com/rust-lang/rust-clippy/pull/11204)
|
||||
|
||||
### Moves and Deprecations
|
||||
|
||||
* Renamed `incorrect_clone_impl_on_copy_type` to [`non_canonical_clone_impl`]
|
||||
[#11358](https://github.com/rust-lang/rust-clippy/pull/11358)
|
||||
* Renamed `incorrect_partial_ord_impl_on_ord_type` to [`non_canonical_partial_ord_impl`]
|
||||
[#11358](https://github.com/rust-lang/rust-clippy/pull/11358)
|
||||
* Moved [`non_canonical_clone_impl`] to `suspicious` (Now warn-by-default)
|
||||
[#11358](https://github.com/rust-lang/rust-clippy/pull/11358)
|
||||
* Moved [`non_canonical_partial_ord_impl`] to `suspicious` (Now warn-by-default)
|
||||
[#11358](https://github.com/rust-lang/rust-clippy/pull/11358)
|
||||
* Moved [`needless_pass_by_ref_mut`] to `nursery` (Now allow-by-default)
|
||||
[#11596](https://github.com/rust-lang/rust-clippy/pull/11596)
|
||||
|
||||
### Enhancements
|
||||
|
||||
* [`undocumented_unsafe_blocks`]: The config values [`accept-comment-above-statement`] and
|
||||
[`accept-comment-above-attributes`] to `true` by default
|
||||
[#11170](https://github.com/rust-lang/rust-clippy/pull/11170)
|
||||
* [`explicit_iter_loop`]: Added [`enforce-iter-loop-reborrow`] to disable reborrow linting by default
|
||||
[#11418](https://github.com/rust-lang/rust-clippy/pull/11418)
|
||||
|
||||
### ICE Fixes
|
||||
|
||||
* [`enum_variant_names`]: No longer crashes if the threshold is 0 and the enum has no variants
|
||||
[#11552](https://github.com/rust-lang/rust-clippy/pull/11552)
|
||||
* [`cast_possible_truncation`]: No longer crashes on values larger than `u64::MAX`
|
||||
[#11517](https://github.com/rust-lang/rust-clippy/pull/11517)
|
||||
* [`tuple_array_conversions`]: No longer crashes if the array length is not usize
|
||||
[#11379](https://github.com/rust-lang/rust-clippy/pull/11379)
|
||||
* [`useless_conversion`]: No longer crashes, when the receiver is a non-fn item
|
||||
[#11070](https://github.com/rust-lang/rust-clippy/pull/11070)
|
||||
|
||||
## Rust 1.73
|
||||
|
||||
Current stable, released 2023-10-05
|
||||
Released 2023-10-05
|
||||
|
||||
[View all 103 merged pull requests](https://github.com/rust-lang/rust-clippy/pulls?q=merged%3A2023-07-02T12%3A24%3A40Z..2023-08-11T11%3A09%3A56Z+base%3Amaster)
|
||||
|
||||
|
@ -371,7 +371,7 @@ declare_clippy_lint! {
|
||||
/// let _ = 1 / random();
|
||||
/// }
|
||||
/// ```
|
||||
#[clippy::version = "1.73.0"]
|
||||
#[clippy::version = "1.74.0"]
|
||||
pub SHOULD_PANIC_WITHOUT_EXPECT,
|
||||
pedantic,
|
||||
"ensures that all `should_panic` attributes specify its expected panic message"
|
||||
|
@ -43,7 +43,7 @@ declare_clippy_lint! {
|
||||
/// Box::new(123)
|
||||
/// }
|
||||
/// ```
|
||||
#[clippy::version = "1.73.0"]
|
||||
#[clippy::version = "1.74.0"]
|
||||
pub IMPLIED_BOUNDS_IN_IMPLS,
|
||||
nursery,
|
||||
"specifying bounds that are implied by other bounds in `impl Trait` type"
|
||||
|
@ -57,7 +57,7 @@ declare_clippy_lint! {
|
||||
/// v[0] + v[1] + v[2] + v[3]
|
||||
/// }
|
||||
/// ```
|
||||
#[clippy::version = "1.70.0"]
|
||||
#[clippy::version = "1.74.0"]
|
||||
pub MISSING_ASSERTS_FOR_INDEXING,
|
||||
restriction,
|
||||
"indexing into a slice multiple times without an `assert`"
|
||||
|
@ -50,7 +50,7 @@ declare_clippy_lint! {
|
||||
/// let x = "foo";
|
||||
/// f(x);
|
||||
/// ```
|
||||
#[clippy::version = "pre 1.29.0"]
|
||||
#[clippy::version = "1.74.0"]
|
||||
pub NEEDLESS_BORROWS_FOR_GENERIC_ARGS,
|
||||
style,
|
||||
"taking a reference that is going to be automatically dereferenced"
|
||||
|
@ -26,7 +26,7 @@ declare_clippy_lint! {
|
||||
/// ```no_run
|
||||
/// let mut v: Vec<usize> = Vec::with_capacity(10);
|
||||
/// ```
|
||||
#[clippy::version = "1.73.0"]
|
||||
#[clippy::version = "1.74.0"]
|
||||
pub RESERVE_AFTER_INITIALIZATION,
|
||||
complexity,
|
||||
"`reserve` called immediately after `Vec` creation"
|
||||
|
@ -23,7 +23,7 @@ declare_clippy_lint! {
|
||||
/// ```no_run
|
||||
/// Some(i32::swap_bytes(4));
|
||||
/// ```
|
||||
#[clippy::version = "1.73.0"]
|
||||
#[clippy::version = "1.74.0"]
|
||||
pub UNNECESSARY_MAP_ON_CONSTRUCTOR,
|
||||
complexity,
|
||||
"using `map`/`map_err` on `Option` or `Result` constructors"
|
||||
|
Loading…
Reference in New Issue
Block a user