Skip to content

Commit

Permalink
Add manual annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Feb 15, 2025
1 parent 0a99075 commit d5ebe50
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
3 changes: 3 additions & 0 deletions tests/ui/expect_tool_lint_rfc_2383.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,14 @@ mod rustc_warn {
#[expect(dead_code)]
//~^ ERROR: this lint expectation is unfulfilled
//~| NOTE: `-D unfulfilled-lint-expectations` implied by `-D warnings`
//~| HELP: to override `-D warnings` add `#[allow(unfulfilled_lint_expectations)]`
pub fn rustc_lints() {
let x = 42;

#[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;
}
}
Expand Down
12 changes: 6 additions & 6 deletions tests/ui/expect_tool_lint_rfc_2383.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -8,39 +8,39 @@ LL | #[expect(dead_code)]
= help: to override `-D warnings` add `#[allow(unfulfilled_lint_expectations)]`

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

error: this lint expectation is unfulfilled
--> tests/ui/expect_tool_lint_rfc_2383.rs:36:18
--> 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:107:14
--> tests/ui/expect_tool_lint_rfc_2383.rs:110:14
|
LL | #[expect(clippy::almost_swapped)]
| ^^^^^^^^^^^^^^^^^^^^^^

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

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

error: this lint expectation is unfulfilled
--> tests/ui/expect_tool_lint_rfc_2383.rs:127:14
--> tests/ui/expect_tool_lint_rfc_2383.rs:130:14
|
LL | #[expect(clippy::overly_complex_bool_expr)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Expand Down

0 comments on commit d5ebe50

Please sign in to comment.