Skip to content

Commit 3af9584

Browse files
committed
Add deprecated lint tests
1 parent 7dd356d commit 3af9584

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

tests/ui/deprecated.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,7 @@
1212
#[warn(clippy::unknown_clippy_lints)]
1313
#[warn(clippy::find_map)]
1414
#[warn(clippy::filter_map)]
15+
#[warn(clippy::pub_enum_variant_names)]
16+
#[warn(clippy::wrong_pub_self_convention)]
1517

1618
fn main() {}

tests/ui/deprecated.stderr

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,5 +84,17 @@ error: lint `clippy::filter_map` has been removed: this lint has been replaced b
8484
LL | #[warn(clippy::filter_map)]
8585
| ^^^^^^^^^^^^^^^^^^
8686

87-
error: aborting due to 14 previous errors
87+
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:15:8
89+
|
90+
LL | #[warn(clippy::pub_enum_variant_names)]
91+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
92+
93+
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:16:8
95+
|
96+
LL | #[warn(clippy::wrong_pub_self_convention)]
97+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
98+
99+
error: aborting due to 16 previous errors
88100

0 commit comments

Comments
 (0)