Skip to content

Commit ab9a8f2

Browse files
Update tests after reviewer suggestions
1 parent 5733c75 commit ab9a8f2

File tree

2 files changed

+45
-60
lines changed

2 files changed

+45
-60
lines changed

tests/ui/rename.fixed

+2-3
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
#![allow(clippy::new_without_default)]
88
#![allow(clippy::redundant_static_lifetimes)]
99
#![allow(clippy::bind_instead_of_map)]
10-
#![allow(clippy::blocks_in_if_conditions)]
11-
#![allow(clippy::blocks_in_if_conditions)]
1210
#![allow(clippy::box_collection)]
1311
#![allow(clippy::blocks_in_if_conditions)]
1412
#![allow(clippy::map_unwrap_or)]
@@ -34,9 +32,10 @@
3432
#![warn(clippy::new_without_default)]
3533
#![warn(clippy::redundant_static_lifetimes)]
3634
#![warn(clippy::cognitive_complexity)]
37-
#![warn(enum_intrinsics_non_enums)]
3835
#![warn(clippy::bind_instead_of_map)]
3936
#![warn(clippy::box_collection)]
37+
#![warn(clippy::blocks_in_if_conditions)]
38+
#![warn(clippy::blocks_in_if_conditions)]
4039
#![warn(clippy::map_unwrap_or)]
4140
#![warn(clippy::map_unwrap_or)]
4241
#![warn(clippy::map_unwrap_or)]

tests/ui/rename.stderr

+43-57
Original file line numberDiff line numberDiff line change
@@ -1,198 +1,184 @@
1-
error: lint `clippy::block_in_if_condition_expr` has been renamed to `clippy::blocks_in_if_conditions`
2-
--> $DIR/rename.rs:10:10
3-
|
4-
LL | #![allow(clippy::block_in_if_condition_expr)]
5-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use the new name: `clippy::blocks_in_if_conditions`
6-
|
7-
= note: `-D renamed-and-removed-lints` implied by `-D warnings`
8-
9-
error: lint `clippy::block_in_if_condition_stmt` has been renamed to `clippy::blocks_in_if_conditions`
10-
--> $DIR/rename.rs:11:10
11-
|
12-
LL | #![allow(clippy::block_in_if_condition_stmt)]
13-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use the new name: `clippy::blocks_in_if_conditions`
14-
15-
error: unknown lint: `clippy::for_loop_over_fallibles`
16-
--> $DIR/rename.rs:17:10
17-
|
18-
LL | #![allow(clippy::for_loop_over_fallibles)]
19-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: did you mean: `clippy::for_loops_over_fallibles`
20-
|
21-
= note: `-D unknown-lints` implied by `-D warnings`
22-
231
error: lint `clippy::stutter` has been renamed to `clippy::module_name_repetitions`
24-
--> $DIR/rename.rs:33:9
2+
--> $DIR/rename.rs:31:9
253
|
264
LL | #![warn(clippy::stutter)]
275
| ^^^^^^^^^^^^^^^ help: use the new name: `clippy::module_name_repetitions`
6+
|
7+
= note: `-D renamed-and-removed-lints` implied by `-D warnings`
288

299
error: lint `clippy::new_without_default_derive` has been renamed to `clippy::new_without_default`
30-
--> $DIR/rename.rs:34:9
10+
--> $DIR/rename.rs:32:9
3111
|
3212
LL | #![warn(clippy::new_without_default_derive)]
3313
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use the new name: `clippy::new_without_default`
3414

3515
error: lint `clippy::const_static_lifetime` has been renamed to `clippy::redundant_static_lifetimes`
36-
--> $DIR/rename.rs:35:9
16+
--> $DIR/rename.rs:33:9
3717
|
3818
LL | #![warn(clippy::const_static_lifetime)]
3919
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use the new name: `clippy::redundant_static_lifetimes`
4020

4121
error: lint `clippy::cyclomatic_complexity` has been renamed to `clippy::cognitive_complexity`
42-
--> $DIR/rename.rs:36:9
22+
--> $DIR/rename.rs:34:9
4323
|
4424
LL | #![warn(clippy::cyclomatic_complexity)]
4525
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use the new name: `clippy::cognitive_complexity`
4626

47-
error: lint `clippy::mem_discriminant_non_enum` has been renamed to `enum_intrinsics_non_enums`
48-
--> $DIR/rename.rs:37:9
49-
|
50-
LL | #![warn(clippy::mem_discriminant_non_enum)]
51-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use the new name: `enum_intrinsics_non_enums`
52-
5327
error: lint `clippy::option_and_then_some` has been renamed to `clippy::bind_instead_of_map`
54-
--> $DIR/rename.rs:38:9
28+
--> $DIR/rename.rs:35:9
5529
|
5630
LL | #![warn(clippy::option_and_then_some)]
5731
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use the new name: `clippy::bind_instead_of_map`
5832

5933
error: lint `clippy::box_vec` has been renamed to `clippy::box_collection`
60-
--> $DIR/rename.rs:39:9
34+
--> $DIR/rename.rs:36:9
6135
|
6236
LL | #![warn(clippy::box_vec)]
6337
| ^^^^^^^^^^^^^^^ help: use the new name: `clippy::box_collection`
6438

39+
error: lint `clippy::block_in_if_condition_expr` has been renamed to `clippy::blocks_in_if_conditions`
40+
--> $DIR/rename.rs:37:9
41+
|
42+
LL | #![warn(clippy::block_in_if_condition_expr)]
43+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use the new name: `clippy::blocks_in_if_conditions`
44+
45+
error: lint `clippy::block_in_if_condition_stmt` has been renamed to `clippy::blocks_in_if_conditions`
46+
--> $DIR/rename.rs:38:9
47+
|
48+
LL | #![warn(clippy::block_in_if_condition_stmt)]
49+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use the new name: `clippy::blocks_in_if_conditions`
50+
6551
error: lint `clippy::option_map_unwrap_or` has been renamed to `clippy::map_unwrap_or`
66-
--> $DIR/rename.rs:40:9
52+
--> $DIR/rename.rs:39:9
6753
|
6854
LL | #![warn(clippy::option_map_unwrap_or)]
6955
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use the new name: `clippy::map_unwrap_or`
7056

7157
error: lint `clippy::option_map_unwrap_or_else` has been renamed to `clippy::map_unwrap_or`
72-
--> $DIR/rename.rs:41:9
58+
--> $DIR/rename.rs:40:9
7359
|
7460
LL | #![warn(clippy::option_map_unwrap_or_else)]
7561
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use the new name: `clippy::map_unwrap_or`
7662

7763
error: lint `clippy::result_map_unwrap_or_else` has been renamed to `clippy::map_unwrap_or`
78-
--> $DIR/rename.rs:42:9
64+
--> $DIR/rename.rs:41:9
7965
|
8066
LL | #![warn(clippy::result_map_unwrap_or_else)]
8167
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use the new name: `clippy::map_unwrap_or`
8268

8369
error: lint `clippy::option_unwrap_used` has been renamed to `clippy::unwrap_used`
84-
--> $DIR/rename.rs:43:9
70+
--> $DIR/rename.rs:42:9
8571
|
8672
LL | #![warn(clippy::option_unwrap_used)]
8773
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use the new name: `clippy::unwrap_used`
8874

8975
error: lint `clippy::result_unwrap_used` has been renamed to `clippy::unwrap_used`
90-
--> $DIR/rename.rs:44:9
76+
--> $DIR/rename.rs:43:9
9177
|
9278
LL | #![warn(clippy::result_unwrap_used)]
9379
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use the new name: `clippy::unwrap_used`
9480

9581
error: lint `clippy::option_expect_used` has been renamed to `clippy::expect_used`
96-
--> $DIR/rename.rs:45:9
82+
--> $DIR/rename.rs:44:9
9783
|
9884
LL | #![warn(clippy::option_expect_used)]
9985
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use the new name: `clippy::expect_used`
10086

10187
error: lint `clippy::result_expect_used` has been renamed to `clippy::expect_used`
102-
--> $DIR/rename.rs:46:9
88+
--> $DIR/rename.rs:45:9
10389
|
10490
LL | #![warn(clippy::result_expect_used)]
10591
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use the new name: `clippy::expect_used`
10692

10793
error: lint `clippy::for_loop_over_option` has been renamed to `clippy::for_loops_over_fallibles`
108-
--> $DIR/rename.rs:47:9
94+
--> $DIR/rename.rs:46:9
10995
|
11096
LL | #![warn(clippy::for_loop_over_option)]
11197
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use the new name: `clippy::for_loops_over_fallibles`
11298

11399
error: lint `clippy::for_loop_over_result` has been renamed to `clippy::for_loops_over_fallibles`
114-
--> $DIR/rename.rs:48:9
100+
--> $DIR/rename.rs:47:9
115101
|
116102
LL | #![warn(clippy::for_loop_over_result)]
117103
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use the new name: `clippy::for_loops_over_fallibles`
118104

119105
error: lint `clippy::identity_conversion` has been renamed to `clippy::useless_conversion`
120-
--> $DIR/rename.rs:49:9
106+
--> $DIR/rename.rs:48:9
121107
|
122108
LL | #![warn(clippy::identity_conversion)]
123109
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use the new name: `clippy::useless_conversion`
124110

125111
error: lint `clippy::zero_width_space` has been renamed to `clippy::invisible_characters`
126-
--> $DIR/rename.rs:50:9
112+
--> $DIR/rename.rs:49:9
127113
|
128114
LL | #![warn(clippy::zero_width_space)]
129115
| ^^^^^^^^^^^^^^^^^^^^^^^^ help: use the new name: `clippy::invisible_characters`
130116

131117
error: lint `clippy::single_char_push_str` has been renamed to `clippy::single_char_add_str`
132-
--> $DIR/rename.rs:51:9
118+
--> $DIR/rename.rs:50:9
133119
|
134120
LL | #![warn(clippy::single_char_push_str)]
135121
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use the new name: `clippy::single_char_add_str`
136122

137123
error: lint `clippy::if_let_some_result` has been renamed to `clippy::match_result_ok`
138-
--> $DIR/rename.rs:52:9
124+
--> $DIR/rename.rs:51:9
139125
|
140126
LL | #![warn(clippy::if_let_some_result)]
141127
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use the new name: `clippy::match_result_ok`
142128

143129
error: lint `clippy::invalid_ref` has been renamed to `invalid_value`
144-
--> $DIR/rename.rs:54:9
130+
--> $DIR/rename.rs:53:9
145131
|
146132
LL | #![warn(clippy::invalid_ref)]
147133
| ^^^^^^^^^^^^^^^^^^^ help: use the new name: `invalid_value`
148134

149135
error: lint `clippy::into_iter_on_array` has been renamed to `array_into_iter`
150-
--> $DIR/rename.rs:55:9
136+
--> $DIR/rename.rs:54:9
151137
|
152138
LL | #![warn(clippy::into_iter_on_array)]
153139
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use the new name: `array_into_iter`
154140

155141
error: lint `clippy::unused_label` has been renamed to `unused_labels`
156-
--> $DIR/rename.rs:56:9
142+
--> $DIR/rename.rs:55:9
157143
|
158144
LL | #![warn(clippy::unused_label)]
159145
| ^^^^^^^^^^^^^^^^^^^^ help: use the new name: `unused_labels`
160146

161147
error: lint `clippy::drop_bounds` has been renamed to `drop_bounds`
162-
--> $DIR/rename.rs:57:9
148+
--> $DIR/rename.rs:56:9
163149
|
164150
LL | #![warn(clippy::drop_bounds)]
165151
| ^^^^^^^^^^^^^^^^^^^ help: use the new name: `drop_bounds`
166152

167153
error: lint `clippy::temporary_cstring_as_ptr` has been renamed to `temporary_cstring_as_ptr`
168-
--> $DIR/rename.rs:58:9
154+
--> $DIR/rename.rs:57:9
169155
|
170156
LL | #![warn(clippy::temporary_cstring_as_ptr)]
171157
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use the new name: `temporary_cstring_as_ptr`
172158

173159
error: lint `clippy::panic_params` has been renamed to `non_fmt_panics`
174-
--> $DIR/rename.rs:59:9
160+
--> $DIR/rename.rs:58:9
175161
|
176162
LL | #![warn(clippy::panic_params)]
177163
| ^^^^^^^^^^^^^^^^^^^^ help: use the new name: `non_fmt_panics`
178164

179165
error: lint `clippy::unknown_clippy_lints` has been renamed to `unknown_lints`
180-
--> $DIR/rename.rs:60:9
166+
--> $DIR/rename.rs:59:9
181167
|
182168
LL | #![warn(clippy::unknown_clippy_lints)]
183169
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use the new name: `unknown_lints`
184170

185171
error: lint `clippy::invalid_atomic_ordering` has been renamed to `invalid_atomic_ordering`
186-
--> $DIR/rename.rs:61:9
172+
--> $DIR/rename.rs:60:9
187173
|
188174
LL | #![warn(clippy::invalid_atomic_ordering)]
189175
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use the new name: `invalid_atomic_ordering`
190176

191177
error: lint `clippy::mem_discriminant_non_enum` has been renamed to `enum_intrinsics_non_enums`
192-
--> $DIR/rename.rs:62:9
178+
--> $DIR/rename.rs:61:9
193179
|
194180
LL | #![warn(clippy::mem_discriminant_non_enum)]
195181
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use the new name: `enum_intrinsics_non_enums`
196182

197-
error: aborting due to 32 previous errors
183+
error: aborting due to 30 previous errors
198184

0 commit comments

Comments
 (0)