deduplicate unused expect lints

This commit is contained in:
Edvin Bryntesson
2026-03-04 15:02:48 +01:00
committed by Jonathan Brouwer
parent d0594c1ad7
commit 39f52ee1e2
2 changed files with 5 additions and 15 deletions
-2
View File
@@ -36,8 +36,6 @@ pub fn rustc_lints() {
#[expect(invalid_nan_comparisons)]
//~^ ERROR: this lint expectation is unfulfilled
//~| NOTE: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
//~| ERROR: this lint expectation is unfulfilled
let _b = x == 5;
}
}
+5 -13
View File
@@ -14,36 +14,28 @@ LL | #[expect(invalid_nan_comparisons)]
| ^^^^^^^^^^^^^^^^^^^^^^^
error: this lint expectation is unfulfilled
--> tests/ui/expect_tool_lint_rfc_2383.rs:37:18
|
LL | #[expect(invalid_nan_comparisons)]
| ^^^^^^^^^^^^^^^^^^^^^^^
|
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
error: this lint expectation is unfulfilled
--> tests/ui/expect_tool_lint_rfc_2383.rs:110:14
--> tests/ui/expect_tool_lint_rfc_2383.rs:108:14
|
LL | #[expect(clippy::almost_swapped)]
| ^^^^^^^^^^^^^^^^^^^^^^
error: this lint expectation is unfulfilled
--> tests/ui/expect_tool_lint_rfc_2383.rs:118:14
--> tests/ui/expect_tool_lint_rfc_2383.rs:116:14
|
LL | #[expect(clippy::bytes_nth)]
| ^^^^^^^^^^^^^^^^^
error: this lint expectation is unfulfilled
--> tests/ui/expect_tool_lint_rfc_2383.rs:124:14
--> tests/ui/expect_tool_lint_rfc_2383.rs:122:14
|
LL | #[expect(clippy::if_same_then_else)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^
error: this lint expectation is unfulfilled
--> tests/ui/expect_tool_lint_rfc_2383.rs:130:14
--> tests/ui/expect_tool_lint_rfc_2383.rs:128:14
|
LL | #[expect(clippy::overly_complex_bool_expr)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: aborting due to 7 previous errors
error: aborting due to 6 previous errors