]> git.lizzy.rs Git - rust.git/blobdiff - CHANGELOG.md
Don't lint `ptr_arg` for `&mut _` types in trait items
[rust.git] / CHANGELOG.md
index b209373d4ce2f49cf62f0d2b7ed9662c808e61c7..9548366daf9a12d49a023a50d21b2f3210276c0b 100644 (file)
@@ -6,13 +6,13 @@ document.
 
 ## Unreleased / In Rust Nightly
 
-[e181011...master](https://github.com/rust-lang/rust-clippy/compare/b7f3f7f...master)
+[e181011...master](https://github.com/rust-lang/rust-clippy/compare/e181011...master)
 
 ## Rust 1.58 (beta)
 
-Current beta (Release January 13 2022)
+Current beta, release 2022-01-13
 
-[b7f3f7f..e181011](https://github.com/rust-lang/rust-clippy/compare/b7f3f7f..e181011)
+[00e31fa...e181011](https://github.com/rust-lang/rust-clippy/compare/00e31fa...e181011)
 
 ### New lints
 
@@ -33,7 +33,6 @@ Current beta (Release January 13 2022)
 * [`string_slice`]
   [#7878](https://github.com/rust-lang/rust-clippy/pull/7878)
 
-
 ### Moves or deprecations of lints
 
 * Move [`non_send_fields_in_send_ty`] to `suspicious`
@@ -62,22 +61,22 @@ Current beta (Release January 13 2022)
   [#7795](https://github.com/rust-lang/rust-clippy/pull/7795)
 * Avoid [`eq_op`] in test functions
   [#7811](https://github.com/rust-lang/rust-clippy/pull/7811)
-* [`cast_possible_truncation`] no longer lints when cast is coming from `signum` method call
-  [#7850](https://github.com/rust-lang/rust-clippy/pull/7850)
+* [`cast_possible_truncation`] no longer lints when cast is coming from `signum`
+  method call [#7850](https://github.com/rust-lang/rust-clippy/pull/7850)
 * [`match_str_case_mismatch`] no longer lints on uncased characters
   [#7865](https://github.com/rust-lang/rust-clippy/pull/7865)
 * [`ptr_arg`] no longer lints references to type aliases
   [#7890](https://github.com/rust-lang/rust-clippy/pull/7890)
 * [`missing_safety_doc`] now also accepts "implementation safety" headers
   [#7856](https://github.com/rust-lang/rust-clippy/pull/7856)
-* [`missing_safety_doc`] no longer lints if any parent has `#[doc(hidden)]` attribute
-  [#7849](https://github.com/rust-lang/rust-clippy/pull/7849)
+* [`missing_safety_doc`] no longer lints if any parent has `#[doc(hidden)]`
+  attribute [#7849](https://github.com/rust-lang/rust-clippy/pull/7849)
 * [`if_not_else`] now ignores else-if statements
   [#7895](https://github.com/rust-lang/rust-clippy/pull/7895)
-* Avoid linting [`cast_possible_truncation`] on bit-reducing operations 
+* Avoid linting [`cast_possible_truncation`] on bit-reducing operations
   [#7819](https://github.com/rust-lang/rust-clippy/pull/7819)
-* Avoid linting [`field_reassign_with_default`] when `Drop` and `Copy` are involved
-  [#7794](https://github.com/rust-lang/rust-clippy/pull/7794)
+* Avoid linting [`field_reassign_with_default`] when `Drop` and `Copy` are
+  involved [#7794](https://github.com/rust-lang/rust-clippy/pull/7794)
 * [`unnecessary_sort_by`] now checks if argument implements `Ord` trait
   [#7824](https://github.com/rust-lang/rust-clippy/pull/7824)
 * Fix false positive in [`match_overlapping_arm`]
@@ -89,8 +88,8 @@ Current beta (Release January 13 2022)
 
 * Keep an initial `::` when [`doc_markdown`] suggests to use ticks
   [#7916](https://github.com/rust-lang/rust-clippy/pull/7916)
-* Add a machine applicable suggestion for the [`doc_markdown`] missing backticks lint
-  [#7904](https://github.com/rust-lang/rust-clippy/pull/7904)
+* Add a machine applicable suggestion for the [`doc_markdown`] missing backticks
+  lint [#7904](https://github.com/rust-lang/rust-clippy/pull/7904)
 * [`equatable_if_let`] no longer expands macros in the suggestion
   [#7788](https://github.com/rust-lang/rust-clippy/pull/7788)
 * Make [`shadow_reuse`] suggestion less verbose
@@ -105,7 +104,8 @@ Current beta (Release January 13 2022)
 
 ### Documentation improvements
 
-* Fixed naive doc formatting for `#[must_use]` lints ([`must_use_unit`], [`double_must_use`], [`must_use_candidate`], [`let_underscore_must_use`])
+* Fixed naive doc formatting for `#[must_use]` lints ([`must_use_unit`],
+  [`double_must_use`], [`must_use_candidate`], [`let_underscore_must_use`])
   [#7827](https://github.com/rust-lang/rust-clippy/pull/7827)
 * Fix typo in example for [`match_result_ok`]
   [#7815](https://github.com/rust-lang/rust-clippy/pull/7815)
@@ -114,19 +114,19 @@ Current beta (Release January 13 2022)
 
 * Allow giving reasons for [`disallowed_types`]
   [#7791](https://github.com/rust-lang/rust-clippy/pull/7791)
-* Fix [`manual_assert`] and [`match_wild_err_arm`] for `#![no_std]` and Rust 2021.
-  [#7851](https://github.com/rust-lang/rust-clippy/pull/7851)
-* Fix regression in [`semicolon_if_nothing_returned`] on macros containing while loops
-  [#7789](https://github.com/rust-lang/rust-clippy/pull/7789)
-* Added a new configuration `literal-suffix-style` to enforce a certain style writing [`unseparated_literal_suffix`]
+* Fix [`manual_assert`] and [`match_wild_err_arm`] for `#![no_std]` and Rust
+  2021. [#7851](https://github.com/rust-lang/rust-clippy/pull/7851)
+* Fix regression in [`semicolon_if_nothing_returned`] on macros containing while
+  loops [#7789](https://github.com/rust-lang/rust-clippy/pull/7789)
+* Added a new configuration `literal-suffix-style` to enforce a certain style
+  writing [`unseparated_literal_suffix`]
   [#7726](https://github.com/rust-lang/rust-clippy/pull/7726)
 
-
 ## Rust 1.57
 
-Current stable
+Current stable, released 2021-12-02
 
-[7bfc26e...b7f3f7f](https://github.com/rust-lang/rust-clippy/compare/7bfc26e...b7f3f7f)
+[7bfc26e...00e31fa](https://github.com/rust-lang/rust-clippy/compare/7bfc26e...00e31fa)
 
 ### New Lints
 
@@ -275,7 +275,7 @@ Current stable
 
 ## Rust 1.56
 
-Current stable, released 2021-10-21
+Released 2021-10-21
 
 [74d1561...7bfc26e](https://github.com/rust-lang/rust-clippy/compare/74d1561...7bfc26e)
 
@@ -981,7 +981,7 @@ Released 2021-03-25
   [#6532](https://github.com/rust-lang/rust-clippy/pull/6532)
 * [`single_match`] Suggest `if` over `if let` when possible
   [#6574](https://github.com/rust-lang/rust-clippy/pull/6574)
-* [`ref_in_deref`] Use parentheses correctly in suggestion
+* `ref_in_deref` Use parentheses correctly in suggestion
   [#6609](https://github.com/rust-lang/rust-clippy/pull/6609)
 * [`stable_sort_primitive`] Clarify error message
   [#6611](https://github.com/rust-lang/rust-clippy/pull/6611)
@@ -2887,6 +2887,7 @@ Released 2018-09-13
 [`blocks_in_if_conditions`]: https://rust-lang.github.io/rust-clippy/master/index.html#blocks_in_if_conditions
 [`bool_assert_comparison`]: https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison
 [`bool_comparison`]: https://rust-lang.github.io/rust-clippy/master/index.html#bool_comparison
+[`borrow_as_ptr`]: https://rust-lang.github.io/rust-clippy/master/index.html#borrow_as_ptr
 [`borrow_interior_mutable_const`]: https://rust-lang.github.io/rust-clippy/master/index.html#borrow_interior_mutable_const
 [`borrowed_box`]: https://rust-lang.github.io/rust-clippy/master/index.html#borrowed_box
 [`box_collection`]: https://rust-lang.github.io/rust-clippy/master/index.html#box_collection
@@ -2929,6 +2930,7 @@ Released 2018-09-13
 [`declare_interior_mutable_const`]: https://rust-lang.github.io/rust-clippy/master/index.html#declare_interior_mutable_const
 [`default_numeric_fallback`]: https://rust-lang.github.io/rust-clippy/master/index.html#default_numeric_fallback
 [`default_trait_access`]: https://rust-lang.github.io/rust-clippy/master/index.html#default_trait_access
+[`default_union_representation`]: https://rust-lang.github.io/rust-clippy/master/index.html#default_union_representation
 [`deprecated_cfg_attr`]: https://rust-lang.github.io/rust-clippy/master/index.html#deprecated_cfg_attr
 [`deprecated_semver`]: https://rust-lang.github.io/rust-clippy/master/index.html#deprecated_semver
 [`deref_addrof`]: https://rust-lang.github.io/rust-clippy/master/index.html#deref_addrof
@@ -3026,6 +3028,7 @@ Released 2018-09-13
 [`infinite_iter`]: https://rust-lang.github.io/rust-clippy/master/index.html#infinite_iter
 [`inherent_to_string`]: https://rust-lang.github.io/rust-clippy/master/index.html#inherent_to_string
 [`inherent_to_string_shadow_display`]: https://rust-lang.github.io/rust-clippy/master/index.html#inherent_to_string_shadow_display
+[`init_numbered_fields`]: https://rust-lang.github.io/rust-clippy/master/index.html#init_numbered_fields
 [`inline_always`]: https://rust-lang.github.io/rust-clippy/master/index.html#inline_always
 [`inline_asm_x86_att_syntax`]: https://rust-lang.github.io/rust-clippy/master/index.html#inline_asm_x86_att_syntax
 [`inline_asm_x86_intel_syntax`]: https://rust-lang.github.io/rust-clippy/master/index.html#inline_asm_x86_intel_syntax
@@ -3047,6 +3050,7 @@ Released 2018-09-13
 [`iter_not_returning_iterator`]: https://rust-lang.github.io/rust-clippy/master/index.html#iter_not_returning_iterator
 [`iter_nth`]: https://rust-lang.github.io/rust-clippy/master/index.html#iter_nth
 [`iter_nth_zero`]: https://rust-lang.github.io/rust-clippy/master/index.html#iter_nth_zero
+[`iter_overeager_cloned`]: https://rust-lang.github.io/rust-clippy/master/index.html#iter_overeager_cloned
 [`iter_skip_next`]: https://rust-lang.github.io/rust-clippy/master/index.html#iter_skip_next
 [`iterator_step_by_zero`]: https://rust-lang.github.io/rust-clippy/master/index.html#iterator_step_by_zero
 [`just_underscores_and_digits`]: https://rust-lang.github.io/rust-clippy/master/index.html#just_underscores_and_digits
@@ -3069,6 +3073,7 @@ Released 2018-09-13
 [`main_recursion`]: https://rust-lang.github.io/rust-clippy/master/index.html#main_recursion
 [`manual_assert`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_assert
 [`manual_async_fn`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_async_fn
+[`manual_bits`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_bits
 [`manual_filter_map`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_filter_map
 [`manual_find_map`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_find_map
 [`manual_flatten`]: https://rust-lang.github.io/rust-clippy/master/index.html#manual_flatten
@@ -3223,7 +3228,6 @@ Released 2018-09-13
 [`redundant_slicing`]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_slicing
 [`redundant_static_lifetimes`]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes
 [`ref_binding_to_reference`]: https://rust-lang.github.io/rust-clippy/master/index.html#ref_binding_to_reference
-[`ref_in_deref`]: https://rust-lang.github.io/rust-clippy/master/index.html#ref_in_deref
 [`ref_option_ref`]: https://rust-lang.github.io/rust-clippy/master/index.html#ref_option_ref
 [`regex_macro`]: https://rust-lang.github.io/rust-clippy/master/index.html#regex_macro
 [`repeat_once`]: https://rust-lang.github.io/rust-clippy/master/index.html#repeat_once
@@ -3252,6 +3256,7 @@ Released 2018-09-13
 [`should_implement_trait`]: https://rust-lang.github.io/rust-clippy/master/index.html#should_implement_trait
 [`similar_names`]: https://rust-lang.github.io/rust-clippy/master/index.html#similar_names
 [`single_char_add_str`]: https://rust-lang.github.io/rust-clippy/master/index.html#single_char_add_str
+[`single_char_lifetime_names`]: https://rust-lang.github.io/rust-clippy/master/index.html#single_char_lifetime_names
 [`single_char_pattern`]: https://rust-lang.github.io/rust-clippy/master/index.html#single_char_pattern
 [`single_component_path_imports`]: https://rust-lang.github.io/rust-clippy/master/index.html#single_component_path_imports
 [`single_element_loop`]: https://rust-lang.github.io/rust-clippy/master/index.html#single_element_loop