]> git.proxmox.com Git - rustc.git/blob - src/tools/clippy/clippy_lints/src/lib.deprecated.rs
New upstream version 1.57.0+dfsg1
[rustc.git] / src / tools / clippy / clippy_lints / src / lib.deprecated.rs
1 // This file was generated by `cargo dev update_lints`.
2 // Use that command to update this file and do not edit by hand.
3 // Manual edits will be overwritten.
4
5 {
6 store.register_removed(
7 "clippy::should_assert_eq",
8 "`assert!()` will be more flexible with RFC 2011",
9 );
10 store.register_removed(
11 "clippy::extend_from_slice",
12 "`.extend_from_slice(_)` is a faster way to extend a Vec by a slice",
13 );
14 store.register_removed(
15 "clippy::range_step_by_zero",
16 "`iterator.step_by(0)` panics nowadays",
17 );
18 store.register_removed(
19 "clippy::unstable_as_slice",
20 "`Vec::as_slice` has been stabilized in 1.7",
21 );
22 store.register_removed(
23 "clippy::unstable_as_mut_slice",
24 "`Vec::as_mut_slice` has been stabilized in 1.7",
25 );
26 store.register_removed(
27 "clippy::misaligned_transmute",
28 "this lint has been split into cast_ptr_alignment and transmute_ptr_to_ptr",
29 );
30 store.register_removed(
31 "clippy::assign_ops",
32 "using compound assignment operators (e.g., `+=`) is harmless",
33 );
34 store.register_removed(
35 "clippy::if_let_redundant_pattern_matching",
36 "this lint has been changed to redundant_pattern_matching",
37 );
38 store.register_removed(
39 "clippy::unsafe_vector_initialization",
40 "the replacement suggested by this lint had substantially different behavior",
41 );
42 store.register_removed(
43 "clippy::unused_collect",
44 "`collect` has been marked as #[must_use] in rustc and that covers all cases of this lint",
45 );
46 store.register_removed(
47 "clippy::replace_consts",
48 "associated-constants `MIN`/`MAX` of integers are preferred to `{min,max}_value()` and module constants",
49 );
50 store.register_removed(
51 "clippy::regex_macro",
52 "the regex! macro has been removed from the regex crate in 2018",
53 );
54 store.register_removed(
55 "clippy::find_map",
56 "this lint has been replaced by `manual_find_map`, a more specific lint",
57 );
58 store.register_removed(
59 "clippy::filter_map",
60 "this lint has been replaced by `manual_filter_map`, a more specific lint",
61 );
62 store.register_removed(
63 "clippy::pub_enum_variant_names",
64 "set the `avoid-breaking-exported-api` config option to `false` to enable the `enum_variant_names` lint for public items",
65 );
66 store.register_removed(
67 "clippy::wrong_pub_self_convention",
68 "set the `avoid-breaking-exported-api` config option to `false` to enable the `wrong_self_convention` lint for public items",
69 );
70 }