Skip to content

Commit 4cefbcf

Browse files
Don't add annotations in tests/ui/deprecated.rs
1 parent a04606c commit 4cefbcf

File tree

2 files changed

+15
-32
lines changed

2 files changed

+15
-32
lines changed

tests/ui/deprecated.rs

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,37 +3,20 @@
33
// Manual edits will be overwritten.
44

55
#![warn(clippy::should_assert_eq)]
6-
//~^ ERROR: lint `clippy::should_assert_eq` has been removed: `assert!()` will be more flexible with RFC 2011
7-
//~| NOTE: `-D renamed-and-removed-lints` implied by `-D warnings`
86
#![warn(clippy::extend_from_slice)]
9-
//~^ ERROR: lint `clippy::extend_from_slice` has been removed: `.extend_from_slice(_)` is a faster way to extend a Vec by a slice
107
#![warn(clippy::range_step_by_zero)]
11-
//~^ ERROR: lint `clippy::range_step_by_zero` has been removed: `iterator.step_by(0)` panics nowadays
128
#![warn(clippy::unstable_as_slice)]
13-
//~^ ERROR: lint `clippy::unstable_as_slice` has been removed: `Vec::as_slice` has been stabilized in 1.7
149
#![warn(clippy::unstable_as_mut_slice)]
15-
//~^ ERROR: lint `clippy::unstable_as_mut_slice` has been removed: `Vec::as_mut_slice` has been stabilized in 1.7
1610
#![warn(clippy::misaligned_transmute)]
17-
//~^ ERROR: lint `clippy::misaligned_transmute` has been removed: this lint has been split into cast_ptr_alignment and transmute_ptr_to_ptr
1811
#![warn(clippy::assign_ops)]
19-
//~^ ERROR: lint `clippy::assign_ops` has been removed: using compound assignment operators (e.g., `+=`) is harmless
2012
#![warn(clippy::if_let_redundant_pattern_matching)]
21-
//~^ ERROR: lint `clippy::if_let_redundant_pattern_matching` has been removed: this lint has been changed to redundant_pattern_matching
2213
#![warn(clippy::unsafe_vector_initialization)]
23-
//~^ ERROR: lint `clippy::unsafe_vector_initialization` has been removed: the replacement suggested by this lint had substantially different behavior
2414
#![warn(clippy::unused_collect)]
25-
//~^ ERROR: lint `clippy::unused_collect` has been removed: `collect` has been marked as #[must_use] in rustc and that covers all cases of this lint
2615
#![warn(clippy::replace_consts)]
27-
//~^ ERROR: lint `clippy::replace_consts` has been removed: associated-constants `MIN`/`MAX` of integers are preferred to `{min,max}_value()` and module constants
2816
#![warn(clippy::regex_macro)]
29-
//~^ ERROR: lint `clippy::regex_macro` has been removed: the regex! macro has been removed from the regex crate in 2018
3017
#![warn(clippy::find_map)]
31-
//~^ ERROR: lint `clippy::find_map` has been removed: this lint has been replaced by `manual_find_map`, a more specific lint
3218
#![warn(clippy::filter_map)]
33-
//~^ ERROR: lint `clippy::filter_map` has been removed: this lint has been replaced by `manual_filter_map`, a more specific lint
3419
#![warn(clippy::pub_enum_variant_names)]
35-
//~^ ERROR: lint `clippy::pub_enum_variant_names` has been removed: set the `avoid-breaking-exported-api` config option to `false` to enable the `enum_variant_names` lint for public items
3620
#![warn(clippy::wrong_pub_self_convention)]
37-
//~^ ERROR: lint `clippy::wrong_pub_self_convention` has been removed: set the `avoid-breaking-exported-api` config option to `false` to enable the `wrong_self_convention` lint for public items
3821

3922
fn main() {}

tests/ui/deprecated.stderr

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,91 +7,91 @@ LL | #![warn(clippy::should_assert_eq)]
77
= note: `-D renamed-and-removed-lints` implied by `-D warnings`
88

99
error: lint `clippy::extend_from_slice` has been removed: `.extend_from_slice(_)` is a faster way to extend a Vec by a slice
10-
--> $DIR/deprecated.rs:8:9
10+
--> $DIR/deprecated.rs:6:9
1111
|
1212
LL | #![warn(clippy::extend_from_slice)]
1313
| ^^^^^^^^^^^^^^^^^^^^^^^^^
1414

1515
error: lint `clippy::range_step_by_zero` has been removed: `iterator.step_by(0)` panics nowadays
16-
--> $DIR/deprecated.rs:10:9
16+
--> $DIR/deprecated.rs:7:9
1717
|
1818
LL | #![warn(clippy::range_step_by_zero)]
1919
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
2020

2121
error: lint `clippy::unstable_as_slice` has been removed: `Vec::as_slice` has been stabilized in 1.7
22-
--> $DIR/deprecated.rs:12:9
22+
--> $DIR/deprecated.rs:8:9
2323
|
2424
LL | #![warn(clippy::unstable_as_slice)]
2525
| ^^^^^^^^^^^^^^^^^^^^^^^^^
2626

2727
error: lint `clippy::unstable_as_mut_slice` has been removed: `Vec::as_mut_slice` has been stabilized in 1.7
28-
--> $DIR/deprecated.rs:14:9
28+
--> $DIR/deprecated.rs:9:9
2929
|
3030
LL | #![warn(clippy::unstable_as_mut_slice)]
3131
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3232

3333
error: lint `clippy::misaligned_transmute` has been removed: this lint has been split into cast_ptr_alignment and transmute_ptr_to_ptr
34-
--> $DIR/deprecated.rs:16:9
34+
--> $DIR/deprecated.rs:10:9
3535
|
3636
LL | #![warn(clippy::misaligned_transmute)]
3737
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3838

3939
error: lint `clippy::assign_ops` has been removed: using compound assignment operators (e.g., `+=`) is harmless
40-
--> $DIR/deprecated.rs:18:9
40+
--> $DIR/deprecated.rs:11:9
4141
|
4242
LL | #![warn(clippy::assign_ops)]
4343
| ^^^^^^^^^^^^^^^^^^
4444

4545
error: lint `clippy::if_let_redundant_pattern_matching` has been removed: this lint has been changed to redundant_pattern_matching
46-
--> $DIR/deprecated.rs:20:9
46+
--> $DIR/deprecated.rs:12:9
4747
|
4848
LL | #![warn(clippy::if_let_redundant_pattern_matching)]
4949
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
5050

5151
error: lint `clippy::unsafe_vector_initialization` has been removed: the replacement suggested by this lint had substantially different behavior
52-
--> $DIR/deprecated.rs:22:9
52+
--> $DIR/deprecated.rs:13:9
5353
|
5454
LL | #![warn(clippy::unsafe_vector_initialization)]
5555
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
5656

5757
error: lint `clippy::unused_collect` has been removed: `collect` has been marked as #[must_use] in rustc and that covers all cases of this lint
58-
--> $DIR/deprecated.rs:24:9
58+
--> $DIR/deprecated.rs:14:9
5959
|
6060
LL | #![warn(clippy::unused_collect)]
6161
| ^^^^^^^^^^^^^^^^^^^^^^
6262

6363
error: lint `clippy::replace_consts` has been removed: associated-constants `MIN`/`MAX` of integers are preferred to `{min,max}_value()` and module constants
64-
--> $DIR/deprecated.rs:26:9
64+
--> $DIR/deprecated.rs:15:9
6565
|
6666
LL | #![warn(clippy::replace_consts)]
6767
| ^^^^^^^^^^^^^^^^^^^^^^
6868

6969
error: lint `clippy::regex_macro` has been removed: the regex! macro has been removed from the regex crate in 2018
70-
--> $DIR/deprecated.rs:28:9
70+
--> $DIR/deprecated.rs:16:9
7171
|
7272
LL | #![warn(clippy::regex_macro)]
7373
| ^^^^^^^^^^^^^^^^^^^
7474

7575
error: lint `clippy::find_map` has been removed: this lint has been replaced by `manual_find_map`, a more specific lint
76-
--> $DIR/deprecated.rs:30:9
76+
--> $DIR/deprecated.rs:17:9
7777
|
7878
LL | #![warn(clippy::find_map)]
7979
| ^^^^^^^^^^^^^^^^
8080

8181
error: lint `clippy::filter_map` has been removed: this lint has been replaced by `manual_filter_map`, a more specific lint
82-
--> $DIR/deprecated.rs:32:9
82+
--> $DIR/deprecated.rs:18:9
8383
|
8484
LL | #![warn(clippy::filter_map)]
8585
| ^^^^^^^^^^^^^^^^^^
8686

8787
error: lint `clippy::pub_enum_variant_names` has been removed: set the `avoid-breaking-exported-api` config option to `false` to enable the `enum_variant_names` lint for public items
88-
--> $DIR/deprecated.rs:34:9
88+
--> $DIR/deprecated.rs:19:9
8989
|
9090
LL | #![warn(clippy::pub_enum_variant_names)]
9191
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
9292

9393
error: lint `clippy::wrong_pub_self_convention` has been removed: set the `avoid-breaking-exported-api` config option to `false` to enable the `wrong_self_convention` lint for public items
94-
--> $DIR/deprecated.rs:36:9
94+
--> $DIR/deprecated.rs:20:9
9595
|
9696
LL | #![warn(clippy::wrong_pub_self_convention)]
9797
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

0 commit comments

Comments
 (0)