@@ -6,11 +6,137 @@ document.
66
77## Unreleased / In Rust Nightly
88
9- [ b20d4c1...master] ( https://github.com/rust-lang/rust-clippy/compare/b20d4c1...master )
9+ [ 4911ab1...master] ( https://github.com/rust-lang/rust-clippy/compare/4911ab1...master )
10+
11+ ## Rust 1.50
12+
13+ Current beta, release 2021-02-11
14+
15+ [ b20d4c1...4911ab1] ( https://github.com/rust-lang/rust-clippy/compare/b20d4c1...4911ab1 )
16+
17+ ### New Lints
18+
19+ * [ ` suspicious_operation_groupings ` ] [ #6086 ] ( https://github.com/rust-lang/rust-clippy/pull/6086 )
20+ * [ ` size_of_in_element_count ` ] [ #6394 ] ( https://github.com/rust-lang/rust-clippy/pull/6394 )
21+ * [ ` unnecessary_wraps ` ] [ #6070 ] ( https://github.com/rust-lang/rust-clippy/pull/6070 )
22+ * [ ` let_underscore_drop ` ] [ #6305 ] ( https://github.com/rust-lang/rust-clippy/pull/6305 )
23+ * [ ` collapsible_match ` ] [ #6402 ] ( https://github.com/rust-lang/rust-clippy/pull/6402 )
24+ * [ ` redundant_else ` ] [ #6330 ] ( https://github.com/rust-lang/rust-clippy/pull/6330 )
25+ * [ ` zero_sized_map_values ` ] [ #6218 ] ( https://github.com/rust-lang/rust-clippy/pull/6218 )
26+ * [ ` print_stderr ` ] [ #6367 ] ( https://github.com/rust-lang/rust-clippy/pull/6367 )
27+ * [ ` string_from_utf8_as_bytes ` ] [ #6134 ] ( https://github.com/rust-lang/rust-clippy/pull/6134 )
28+
29+ ### Moves and Deprecations
30+
31+ * Previously deprecated [ ` str_to_string ` ] and [ ` string_to_string ` ] have been un-deprecated
32+ as ` restriction ` lints [ #6333 ] ( https://github.com/rust-lang/rust-clippy/pull/6333 )
33+ * Deprecate [ ` panic_params ` ] lint. This is now available in rustc as ` panic_fmt `
34+ [ #6351 ] ( https://github.com/rust-lang/rust-clippy/pull/6351 )
35+ * Move [ ` map_err_ignore ` ] to ` restriction `
36+ [ #6416 ] ( https://github.com/rust-lang/rust-clippy/pull/6416 )
37+ * Move [ ` await_holding_refcell_ref ` ] to ` pedantic `
38+ [ #6354 ] ( https://github.com/rust-lang/rust-clippy/pull/6354 )
39+ * Move [ ` await_holding_lock ` ] to ` pedantic `
40+ [ #6354 ] ( https://github.com/rust-lang/rust-clippy/pull/6354 )
41+
42+ ### Enhancements
43+
44+ * You can now tell Clippy about the MSRV your project supports. Please refer to
45+ the specific README section to learn more about MSRV support [ here] [ msrv_readme ]
46+ [ #6201 ] ( https://github.com/rust-lang/rust-clippy/pull/6201 )
47+ * Add the ` unreadable-literal-lint-fractions ` configuration to disable
48+ the ` unreadable_literal ` lint for fractions
49+ [ #6421 ] ( https://github.com/rust-lang/rust-clippy/pull/6421 )
50+ * Add ` --no-deps ` option to avoid running on path dependencies in workspaces
51+ [ #6188 ] ( https://github.com/rust-lang/rust-clippy/pull/6188 )
52+ * [ ` clone_on_copy ` ] : Now shows the type in the lint message
53+ [ #6443 ] ( https://github.com/rust-lang/rust-clippy/pull/6443 )
54+ * [ ` redundant_pattern_matching ` ] : Now also lints on ` std::task::Poll `
55+ [ #6339 ] ( https://github.com/rust-lang/rust-clippy/pull/6339 )
56+ * [ ` redundant_pattern_matching ` ] : Additionally also lints on ` std::net::IpAddr `
57+ [ #6377 ] ( https://github.com/rust-lang/rust-clippy/pull/6377 )
58+ * [ ` search_is_some ` ] : Now suggests ` contains ` instead of ` find(foo).is_some() `
59+ [ #6119 ] ( https://github.com/rust-lang/rust-clippy/pull/6119 )
60+ * [ ` clone_double_ref ` ] : Now prints the reference type in the lint message
61+ [ #6442 ] ( https://github.com/rust-lang/rust-clippy/pull/6442 )
62+ * [ ` modulo_one ` ] : Now also lints on -1.
63+ [ #6360 ] ( https://github.com/rust-lang/rust-clippy/pull/6360 )
64+ * [ ` empty_loop ` ] : Now lints no_std crates, too
65+ [ #6205 ] ( https://github.com/rust-lang/rust-clippy/pull/6205 )
66+ * [ ` or_fun_call ` ] : Now also lints when indexing ` HashMap ` or ` BTreeMap `
67+ [ #6267 ] ( https://github.com/rust-lang/rust-clippy/pull/6267 )
68+ * [ ` wrong_self_convention ` ] : Now also lints in trait definitions
69+ [ #6316 ] ( https://github.com/rust-lang/rust-clippy/pull/6316 )
70+ * [ ` needless_borrow ` ] : Print the type in the lint message
71+ [ #6449 ] ( https://github.com/rust-lang/rust-clippy/pull/6449 )
72+
73+ [ msrv_readme ] : https://github.com/rust-lang/rust-clippy#specifying-the-minimum-supported-rust-version
74+
75+ ### False Positive Fixes
76+
77+ * [ ` manual_range_contains ` ] : No longer lints in ` const fn `
78+ [ #6382 ] ( https://github.com/rust-lang/rust-clippy/pull/6382 )
79+ * [ ` unnecessary_lazy_evaluations ` ] : No longer lints if closure argument is used
80+ [ #6370 ] ( https://github.com/rust-lang/rust-clippy/pull/6370 )
81+ * [ ` match_single_binding ` ] : Now ignores cases with ` #[cfg()] ` macros
82+ [ #6435 ] ( https://github.com/rust-lang/rust-clippy/pull/6435 )
83+ * [ ` match_like_matches_macro ` ] : No longer lints on arms with attributes
84+ [ #6290 ] ( https://github.com/rust-lang/rust-clippy/pull/6290 )
85+ * [ ` map_clone ` ] : No longer lints with deref and clone
86+ [ #6269 ] ( https://github.com/rust-lang/rust-clippy/pull/6269 )
87+ * [ ` map_clone ` ] : No longer lints in the case of &mut
88+ [ #6301 ] ( https://github.com/rust-lang/rust-clippy/pull/6301 )
89+ * [ ` needless_update ` ] : Now ignores ` non_exhaustive ` structs
90+ [ #6464 ] ( https://github.com/rust-lang/rust-clippy/pull/6464 )
91+ * [ ` needless_collect ` ] : No longer lints when a collect is needed multiple times
92+ [ #6313 ] ( https://github.com/rust-lang/rust-clippy/pull/6313 )
93+ * [ ` unnecessary_cast ` ] No longer lints cfg-dependent types
94+ [ #6369 ] ( https://github.com/rust-lang/rust-clippy/pull/6369 )
95+ * [ ` declare_interior_mutable_const ` ] and [ ` borrow_interior_mutable_const ` ] :
96+ Both now ignore enums with frozen variants
97+ [ #6110 ] ( https://github.com/rust-lang/rust-clippy/pull/6110 )
98+
99+
100+ ### Suggestion Fixes/Improvements
101+
102+ * [ ` vec_box ` ] : Provide correct type scope suggestion
103+ [ #6271 ] ( https://github.com/rust-lang/rust-clippy/pull/6271 )
104+ * [ ` manual_range_contains ` ] : Give correct suggestion when using floats
105+ [ #6320 ] ( https://github.com/rust-lang/rust-clippy/pull/6320 )
106+ * [ ` unnecessary_lazy_evaluations ` ] : Don't always mark suggestion as MachineApplicable
107+ [ #6272 ] ( https://github.com/rust-lang/rust-clippy/pull/6272 )
108+ * [ ` manual_async ` ] : Improve suggestion formatting
109+ [ #6294 ] ( https://github.com/rust-lang/rust-clippy/pull/6294 )
110+ * [ ` unnecessary_cast ` ] : Fix incorrectly formatted float literal suggestion
111+ [ #6362 ] ( https://github.com/rust-lang/rust-clippy/pull/6362 )
112+
113+ ### ICE Fixes
114+
115+ * Fix a crash in [ ` from_iter_instead_of_collect ` ]
116+ [ #6304 ] ( https://github.com/rust-lang/rust-clippy/pull/6304 )
117+ * Fix a silent crash when parsing doc comments in [ ` needless_doctest_main ` ]
118+ [ #6458 ] ( https://github.com/rust-lang/rust-clippy/pull/6458 )
119+
120+ ### Documentation Improvements
121+
122+ * The lint website search has been improved ([ #6477 ] ( https://github.com/rust-lang/rust-clippy/pull/6477 ) ):
123+ * Searching for lints with dashes and spaces is possible now. For example
124+ ` missing-errors-doc ` and ` missing errors doc ` are now valid aliases for lint names
125+ * Improved fuzzy search in lint descriptions
126+ * Various README improvements
127+ [ #6287 ] ( https://github.com/rust-lang/rust-clippy/pull/6287 )
128+ * Add known problems to [ ` comparison_chain ` ] documentation
129+ [ #6390 ] ( https://github.com/rust-lang/rust-clippy/pull/6390 )
130+ * Fix example used in [ ` cargo_common_metadata ` ]
131+ [ #6293 ] ( https://github.com/rust-lang/rust-clippy/pull/6293 )
132+ * Improve [ ` map_clone ` ] documentation
133+ [ #6340 ] ( https://github.com/rust-lang/rust-clippy/pull/6340 )
134+
135+ ### Others
10136
11137## Rust 1.49
12138
13- Current beta, release 2020-12-31
139+ Current stable, released 2020-12-31
14140
15141[ e636b88...b20d4c1] ( https://github.com/rust-lang/rust-clippy/compare/e636b88...b20d4c1 )
16142
@@ -116,7 +242,7 @@ Current beta, release 2020-12-31
116242
117243## Rust 1.48
118244
119- Current stable, released 2020-11-19
245+ Released 2020-11-19
120246
121247[ 09bd400...e636b88] ( https://github.com/rust-lang/rust-clippy/compare/09bd400...e636b88 )
122248
0 commit comments