Auto merge of #6115 - ebroto:changelog_1_48, r=flip1995
Add changelog for 1.48 beta [Rendered](https://github.com/ebroto/rust-clippy/blob/changelog_1_48/CHANGELOG.md) I've not added the PRs fixing `same_item_push` because those were backported, namely: * [#5908](https://github.com/rust-lang/rust-clippy/pull/5908) * [#5997](https://github.com/rust-lang/rust-clippy/pull/5997) * [#6016](https://github.com/rust-lang/rust-clippy/pull/6016) The following PR was reverted, so I've ignored it too: * [#5984](https://github.com/rust-lang/rust-clippy/pull/5984) ~~Also, I took the liberty of adding a "Thanks" section, naming all the contributors to this release. I think they deserve visibility in the changelog. Please tell me if we want to add this or maybe it's redundant given we link to the PRs?~~ changelog: none r? `@flip1995`
This commit is contained in:
commit
6fb3b2c160
124
CHANGELOG.md
124
CHANGELOG.md
@ -6,11 +6,129 @@ document.
|
||||
|
||||
## Unreleased / In Rust Nightly
|
||||
|
||||
[09bd400...master](https://github.com/rust-lang/rust-clippy/compare/09bd400...master)
|
||||
[e636b88...master](https://github.com/rust-lang/rust-clippy/compare/e636b88...master)
|
||||
|
||||
## Rust 1.48
|
||||
|
||||
Current beta, release 2020-11-19
|
||||
|
||||
[09bd400...e636b88](https://github.com/rust-lang/rust-clippy/compare/09bd400...e636b88)
|
||||
|
||||
### New lints
|
||||
|
||||
* [`self_assignment`] [#5894](https://github.com/rust-lang/rust-clippy/pull/5894)
|
||||
* [`unnecessary_lazy_evaluations`] [#5720](https://github.com/rust-lang/rust-clippy/pull/5720)
|
||||
* [`manual_strip`] [#6038](https://github.com/rust-lang/rust-clippy/pull/6038)
|
||||
* [`map_err_ignore`] [#5998](https://github.com/rust-lang/rust-clippy/pull/5998)
|
||||
* [`rc_buffer`] [#6044](https://github.com/rust-lang/rust-clippy/pull/6044)
|
||||
* [`to_string_in_display`] [#5831](https://github.com/rust-lang/rust-clippy/pull/5831)
|
||||
* [`single_char_push_str`] [#5881](https://github.com/rust-lang/rust-clippy/pull/5881)
|
||||
|
||||
### Moves and Deprecations
|
||||
|
||||
* Downgrade [`verbose_bit_mask`] to pedantic
|
||||
[#6036](https://github.com/rust-lang/rust-clippy/pull/6036)
|
||||
|
||||
### Enhancements
|
||||
|
||||
* Extend [`precedence`] to handle chains of methods combined with unary negation
|
||||
[#5928](https://github.com/rust-lang/rust-clippy/pull/5928)
|
||||
* [`useless_vec`]: add a configuration value for the maximum allowed size on the stack
|
||||
[#5907](https://github.com/rust-lang/rust-clippy/pull/5907)
|
||||
* [`suspicious_arithmetic_impl`]: extend to implementations of `BitAnd`, `BitOr`, `BitXor`, `Rem`, `Shl`, and `Shr`
|
||||
[#5884](https://github.com/rust-lang/rust-clippy/pull/5884)
|
||||
* [`invalid_atomic_ordering`]: detect misuse of `compare_exchange`, `compare_exchange_weak`, and `fetch_update`
|
||||
[#6025](https://github.com/rust-lang/rust-clippy/pull/6025)
|
||||
* Avoid [`redundant_pattern_matching`] triggering in macros
|
||||
[#6069](https://github.com/rust-lang/rust-clippy/pull/6069)
|
||||
* [`option_if_let_else`]: distinguish pure from impure `else` expressions
|
||||
[#5937](https://github.com/rust-lang/rust-clippy/pull/5937)
|
||||
* [`needless_doctest_main`]: parse doctests instead of using textual search
|
||||
[#5912](https://github.com/rust-lang/rust-clippy/pull/5912)
|
||||
* [`wildcard_imports`]: allow `prelude` to appear in any segment of an import
|
||||
[#5929](https://github.com/rust-lang/rust-clippy/pull/5929)
|
||||
* Re-enable [`len_zero`] for ranges now that `range_is_empty` is stable
|
||||
[#5961](https://github.com/rust-lang/rust-clippy/pull/5961)
|
||||
* [`option_as_ref_deref`]: catch fully-qualified calls to `Deref::deref` and `DerefMut::deref_mut`
|
||||
[#5933](https://github.com/rust-lang/rust-clippy/pull/5933)
|
||||
|
||||
### False Positive Fixes
|
||||
|
||||
* [`useless_attribute`]: permit allowing [`wildcard_imports`] and [`enum_glob_use`]
|
||||
[#5994](https://github.com/rust-lang/rust-clippy/pull/5994)
|
||||
* [`transmute_ptr_to_ptr`]: avoid suggesting dereferencing raw pointers in const contexts
|
||||
[#5999](https://github.com/rust-lang/rust-clippy/pull/5999)
|
||||
* [`redundant_closure_call`]: take into account usages of the closure in nested functions and closures
|
||||
[#5920](https://github.com/rust-lang/rust-clippy/pull/5920)
|
||||
* Fix false positive in [`borrow_interior_mutable_const`] when referencing a field behind a pointer
|
||||
[#5949](https://github.com/rust-lang/rust-clippy/pull/5949)
|
||||
* [`doc_markdown`]: allow using "GraphQL" without backticks
|
||||
[#5996](https://github.com/rust-lang/rust-clippy/pull/5996)
|
||||
* [`to_string_in_display`]: avoid linting when calling `to_string()` on anything that is not `self`
|
||||
[#5971](https://github.com/rust-lang/rust-clippy/pull/5971)
|
||||
* [`indexing_slicing`] and [`out_of_bounds_indexing`] treat references to arrays as arrays
|
||||
[#6034](https://github.com/rust-lang/rust-clippy/pull/6034)
|
||||
* [`should_implement_trait`]: ignore methods with lifetime parameters
|
||||
[#5725](https://github.com/rust-lang/rust-clippy/pull/5725)
|
||||
* [`needless_return`]: avoid linting if a temporary borrows a local variable
|
||||
[#5903](https://github.com/rust-lang/rust-clippy/pull/5903)
|
||||
* Restrict [`unnecessary_sort_by`] to non-reference, Copy types
|
||||
[#6006](https://github.com/rust-lang/rust-clippy/pull/6006)
|
||||
* Avoid suggesting `from_bits`/`to_bits` in const contexts in [`transmute_int_to_float`]
|
||||
[#5919](https://github.com/rust-lang/rust-clippy/pull/5919)
|
||||
* [`declare_interior_mutable_const`] and [`borrow_interior_mutable_const`]: improve detection of interior mutable types
|
||||
[#6046](https://github.com/rust-lang/rust-clippy/pull/6046)
|
||||
|
||||
### Suggestion Fixes/Improvements
|
||||
|
||||
* [`let_and_return`]: add a cast to the suggestion when the return expression has adjustments
|
||||
[#5946](https://github.com/rust-lang/rust-clippy/pull/5946)
|
||||
* [`useless_conversion`]: show the type in the error message
|
||||
[#6035](https://github.com/rust-lang/rust-clippy/pull/6035)
|
||||
* [`unnecessary_mut_passed`]: discriminate between functions and methods in the error message
|
||||
[#5892](https://github.com/rust-lang/rust-clippy/pull/5892)
|
||||
* [`float_cmp`] and [`float_cmp_const`]: change wording to make margin of error less ambiguous
|
||||
[#6043](https://github.com/rust-lang/rust-clippy/pull/6043)
|
||||
* [`default_trait_access`]: do not use unnecessary type parameters in the suggestion
|
||||
[#5993](https://github.com/rust-lang/rust-clippy/pull/5993)
|
||||
* [`collapsible_if`]: don't use expanded code in the suggestion
|
||||
[#5992](https://github.com/rust-lang/rust-clippy/pull/5992)
|
||||
* Do not suggest empty format strings in [`print_with_newline`] and [`write_with_newline`]
|
||||
[#6042](https://github.com/rust-lang/rust-clippy/pull/6042)
|
||||
* [`unit_arg`]: improve the readability of the suggestion
|
||||
[#5931](https://github.com/rust-lang/rust-clippy/pull/5931)
|
||||
* [`stable_sort_primitive`]: print the type that is being sorted in the lint message
|
||||
[#5935](https://github.com/rust-lang/rust-clippy/pull/5935)
|
||||
* Show line count and max lines in [`too_many_lines`] lint message
|
||||
[#6009](https://github.com/rust-lang/rust-clippy/pull/6009)
|
||||
* Keep parentheses in the suggestion of [`useless_conversion`] where applicable
|
||||
[#5900](https://github.com/rust-lang/rust-clippy/pull/5900)
|
||||
* [`option_map_unit_fn`] and [`result_map_unit_fn`]: print the unit type `()` explicitly
|
||||
[#6024](https://github.com/rust-lang/rust-clippy/pull/6024)
|
||||
* [`redundant_allocation`]: suggest replacing `Rc<Box<T>>` with `Rc<T>`
|
||||
[#5899](https://github.com/rust-lang/rust-clippy/pull/5899)
|
||||
* Make lint messages adhere to rustc dev guide conventions
|
||||
[#5893](https://github.com/rust-lang/rust-clippy/pull/5893)
|
||||
|
||||
### ICE Fixes
|
||||
|
||||
* Fix ICE in [`repeat_once`]
|
||||
[#5948](https://github.com/rust-lang/rust-clippy/pull/5948)
|
||||
|
||||
### Documentation Improvements
|
||||
|
||||
* [`mutable_key_type`]: explain potential for false positives when the interior mutable type is not accessed in the `Hash` implementation
|
||||
[#6019](https://github.com/rust-lang/rust-clippy/pull/6019)
|
||||
* [`unnecessary_mut_passed`]: fix typo
|
||||
[#5913](https://github.com/rust-lang/rust-clippy/pull/5913)
|
||||
* Add example of false positive to [`ptr_arg`] docs.
|
||||
[#5885](https://github.com/rust-lang/rust-clippy/pull/5885)
|
||||
* [`box_vec`], [`vec_box`] and [`borrowed_box`]: add link to the documentation of `Box`
|
||||
[#6023](https://github.com/rust-lang/rust-clippy/pull/6023)
|
||||
|
||||
## Rust 1.47
|
||||
|
||||
Current beta, release 2020-10-08
|
||||
Current stable, released 2020-10-08
|
||||
|
||||
[c2c07fa...09bd400](https://github.com/rust-lang/rust-clippy/compare/c2c07fa...09bd400)
|
||||
|
||||
@ -112,7 +230,7 @@ Current beta, release 2020-10-08
|
||||
|
||||
## Rust 1.46
|
||||
|
||||
Current stable, released 2020-08-27
|
||||
Released 2020-08-27
|
||||
|
||||
[7ea7cd1...c2c07fa](https://github.com/rust-lang/rust-clippy/compare/7ea7cd1...c2c07fa)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user