@@ -18,6 +18,7 @@ declare_deprecated_lint! {
18
18
/// ### Deprecation reason
19
19
/// This used to check for `assert!(a == b)` and recommend
20
20
/// replacement with `assert_eq!(a, b)`, but this is no longer needed after RFC 2011.
21
+ #[ clippy:: version = "unknown" ]
21
22
pub SHOULD_ASSERT_EQ ,
22
23
"`assert!()` will be more flexible with RFC 2011"
23
24
}
@@ -29,6 +30,7 @@ declare_deprecated_lint! {
29
30
/// ### Deprecation reason
30
31
/// This used to check for `Vec::extend`, which was slower than
31
32
/// `Vec::extend_from_slice`. Thanks to specialization, this is no longer true.
33
+ #[ clippy:: version = "unknown" ]
32
34
pub EXTEND_FROM_SLICE ,
33
35
"`.extend_from_slice(_)` is a faster way to extend a Vec by a slice"
34
36
}
@@ -42,6 +44,7 @@ declare_deprecated_lint! {
42
44
/// an infinite iterator, which is better expressed by `iter::repeat`,
43
45
/// but the method has been removed for `Iterator::step_by` which panics
44
46
/// if given a zero
47
+ #[ clippy:: version = "unknown" ]
45
48
pub RANGE_STEP_BY_ZERO ,
46
49
"`iterator.step_by(0)` panics nowadays"
47
50
}
@@ -53,6 +56,7 @@ declare_deprecated_lint! {
53
56
/// ### Deprecation reason
54
57
/// This used to check for `Vec::as_slice`, which was unstable with good
55
58
/// stable alternatives. `Vec::as_slice` has now been stabilized.
59
+ #[ clippy:: version = "unknown" ]
56
60
pub UNSTABLE_AS_SLICE ,
57
61
"`Vec::as_slice` has been stabilized in 1.7"
58
62
}
@@ -64,6 +68,7 @@ declare_deprecated_lint! {
64
68
/// ### Deprecation reason
65
69
/// This used to check for `Vec::as_mut_slice`, which was unstable with good
66
70
/// stable alternatives. `Vec::as_mut_slice` has now been stabilized.
71
+ #[ clippy:: version = "unknown" ]
67
72
pub UNSTABLE_AS_MUT_SLICE ,
68
73
"`Vec::as_mut_slice` has been stabilized in 1.7"
69
74
}
@@ -77,6 +82,7 @@ declare_deprecated_lint! {
77
82
/// between non-pointer types of differing alignment is well-defined behavior (it's semantically
78
83
/// equivalent to a memcpy). This lint has thus been refactored into two separate lints:
79
84
/// cast_ptr_alignment and transmute_ptr_to_ptr.
85
+ #[ clippy:: version = "unknown" ]
80
86
pub MISALIGNED_TRANSMUTE ,
81
87
"this lint has been split into cast_ptr_alignment and transmute_ptr_to_ptr"
82
88
}
@@ -89,6 +95,7 @@ declare_deprecated_lint! {
89
95
/// This lint is too subjective, not having a good reason for being in clippy.
90
96
/// Additionally, compound assignment operators may be overloaded separately from their non-assigning
91
97
/// counterparts, so this lint may suggest a change in behavior or the code may not compile.
98
+ #[ clippy:: version = "1.29.0 -> 1.30.0" ]
92
99
pub ASSIGN_OPS ,
93
100
"using compound assignment operators (e.g., `+=`) is harmless"
94
101
}
@@ -101,6 +108,7 @@ declare_deprecated_lint! {
101
108
/// The original rule will only lint for `if let`. After
102
109
/// making it support to lint `match`, naming as `if let` is not suitable for it.
103
110
/// So, this lint is deprecated.
111
+ #[ clippy:: version = "unknown" ]
104
112
pub IF_LET_REDUNDANT_PATTERN_MATCHING ,
105
113
"this lint has been changed to redundant_pattern_matching"
106
114
}
@@ -114,6 +122,7 @@ declare_deprecated_lint! {
114
122
/// Vec::with_capacity(n); vec.set_len(n);` with `let vec = vec![0; n];`. The
115
123
/// replacement has very different performance characteristics so the lint is
116
124
/// deprecated.
125
+ #[ clippy:: version = "unknown" ]
117
126
pub UNSAFE_VECTOR_INITIALIZATION ,
118
127
"the replacement suggested by this lint had substantially different behavior"
119
128
}
@@ -124,6 +133,7 @@ declare_deprecated_lint! {
124
133
///
125
134
/// ### Deprecation reason
126
135
/// This lint has been superseded by #[must_use] in rustc.
136
+ #[ clippy:: version = "1.29.0 -> 1.39.0" ]
127
137
pub UNUSED_COLLECT ,
128
138
"`collect` has been marked as #[must_use] in rustc and that covers all cases of this lint"
129
139
}
@@ -134,6 +144,7 @@ declare_deprecated_lint! {
134
144
///
135
145
/// ### Deprecation reason
136
146
/// Associated-constants are now preferred.
147
+ #[ clippy:: version = "1.29.0 -> 1.44.0" ]
137
148
pub REPLACE_CONSTS ,
138
149
"associated-constants `MIN`/`MAX` of integers are preferred to `{min,max}_value()` and module constants"
139
150
}
@@ -144,6 +155,7 @@ declare_deprecated_lint! {
144
155
///
145
156
/// ### Deprecation reason
146
157
/// The regex! macro does not exist anymore.
158
+ #[ clippy:: version = "1.29.0 -> 1.47.0" ]
147
159
pub REGEX_MACRO ,
148
160
"the regex! macro has been removed from the regex crate in 2018"
149
161
}
@@ -155,6 +167,7 @@ declare_deprecated_lint! {
155
167
/// ### Deprecation reason
156
168
/// This lint has been replaced by `manual_find_map`, a
157
169
/// more specific lint.
170
+ #[ clippy:: version = "1.36.0 -> 1.51.0" ]
158
171
pub FIND_MAP ,
159
172
"this lint has been replaced by `manual_find_map`, a more specific lint"
160
173
}
@@ -166,6 +179,7 @@ declare_deprecated_lint! {
166
179
/// ### Deprecation reason
167
180
/// This lint has been replaced by `manual_filter_map`, a
168
181
/// more specific lint.
182
+ #[ clippy:: version = "1.29.0 -> 1.53.0" ]
169
183
pub FILTER_MAP ,
170
184
"this lint has been replaced by `manual_filter_map`, a more specific lint"
171
185
}
@@ -178,6 +192,7 @@ declare_deprecated_lint! {
178
192
/// The `avoid_breaking_exported_api` config option was added, which
179
193
/// enables the `enum_variant_names` lint for public items.
180
194
/// ```
195
+ #[ clippy:: version = "1.29.0 -> 1.54.0" ]
181
196
pub PUB_ENUM_VARIANT_NAMES ,
182
197
"set the `avoid-breaking-exported-api` config option to `false` to enable the `enum_variant_names` lint for public items"
183
198
}
@@ -189,6 +204,7 @@ declare_deprecated_lint! {
189
204
/// ### Deprecation reason
190
205
/// The `avoid_breaking_exported_api` config option was added, which
191
206
/// enables the `wrong_self_conversion` lint for public items.
207
+ #[ clippy:: version = "1.29.0 -> 1.54.0" ]
192
208
pub WRONG_PUB_SELF_CONVENTION ,
193
209
"set the `avoid-breaking-exported-api` config option to `false` to enable the `wrong_self_convention` lint for public items"
194
210
}
0 commit comments