Skip to content

Commit d5ebe50

Browse files
Add manual annotations
1 parent 0a99075 commit d5ebe50

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

tests/ui/expect_tool_lint_rfc_2383.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,14 @@ mod rustc_warn {
3030
#[expect(dead_code)]
3131
//~^ ERROR: this lint expectation is unfulfilled
3232
//~| NOTE: `-D unfulfilled-lint-expectations` implied by `-D warnings`
33+
//~| HELP: to override `-D warnings` add `#[allow(unfulfilled_lint_expectations)]`
3334
pub fn rustc_lints() {
3435
let x = 42;
3536

3637
#[expect(invalid_nan_comparisons)]
3738
//~^ ERROR: this lint expectation is unfulfilled
39+
//~| NOTE: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
40+
//~| ERROR: this lint expectation is unfulfilled
3841
let _b = x == 5;
3942
}
4043
}

tests/ui/expect_tool_lint_rfc_2383.stderr

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,39 +8,39 @@ LL | #[expect(dead_code)]
88
= help: to override `-D warnings` add `#[allow(unfulfilled_lint_expectations)]`
99

1010
error: this lint expectation is unfulfilled
11-
--> tests/ui/expect_tool_lint_rfc_2383.rs:36:18
11+
--> tests/ui/expect_tool_lint_rfc_2383.rs:37:18
1212
|
1313
LL | #[expect(invalid_nan_comparisons)]
1414
| ^^^^^^^^^^^^^^^^^^^^^^^
1515

1616
error: this lint expectation is unfulfilled
17-
--> tests/ui/expect_tool_lint_rfc_2383.rs:36:18
17+
--> tests/ui/expect_tool_lint_rfc_2383.rs:37:18
1818
|
1919
LL | #[expect(invalid_nan_comparisons)]
2020
| ^^^^^^^^^^^^^^^^^^^^^^^
2121
|
2222
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
2323

2424
error: this lint expectation is unfulfilled
25-
--> tests/ui/expect_tool_lint_rfc_2383.rs:107:14
25+
--> tests/ui/expect_tool_lint_rfc_2383.rs:110:14
2626
|
2727
LL | #[expect(clippy::almost_swapped)]
2828
| ^^^^^^^^^^^^^^^^^^^^^^
2929

3030
error: this lint expectation is unfulfilled
31-
--> tests/ui/expect_tool_lint_rfc_2383.rs:115:14
31+
--> tests/ui/expect_tool_lint_rfc_2383.rs:118:14
3232
|
3333
LL | #[expect(clippy::bytes_nth)]
3434
| ^^^^^^^^^^^^^^^^^
3535

3636
error: this lint expectation is unfulfilled
37-
--> tests/ui/expect_tool_lint_rfc_2383.rs:121:14
37+
--> tests/ui/expect_tool_lint_rfc_2383.rs:124:14
3838
|
3939
LL | #[expect(clippy::if_same_then_else)]
4040
| ^^^^^^^^^^^^^^^^^^^^^^^^^
4141

4242
error: this lint expectation is unfulfilled
43-
--> tests/ui/expect_tool_lint_rfc_2383.rs:127:14
43+
--> tests/ui/expect_tool_lint_rfc_2383.rs:130:14
4444
|
4545
LL | #[expect(clippy::overly_complex_bool_expr)]
4646
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

0 commit comments

Comments
 (0)