Skip to content

Commit e3bb779

Browse files
authored
Rollup merge of rust-lang#130293 - gurry:130142-lint-level-issue, r=cjgillot
Fix lint levels not getting overridden by attrs on `Stmt` nodes Fixes rust-lang#130142. See comments on the issue for context. r? `@cjgillot`
2 parents 976131f + 9e69796 commit e3bb779

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

tests/ui/expect_tool_lint_rfc_2383.stderr

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,14 @@ error: this lint expectation is unfulfilled
1313
LL | #[expect(invalid_nan_comparisons)]
1414
| ^^^^^^^^^^^^^^^^^^^^^^^
1515

16+
error: this lint expectation is unfulfilled
17+
--> tests/ui/expect_tool_lint_rfc_2383.rs:36:18
18+
|
19+
LL | #[expect(invalid_nan_comparisons)]
20+
| ^^^^^^^^^^^^^^^^^^^^^^^
21+
|
22+
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
23+
1624
error: this lint expectation is unfulfilled
1725
--> tests/ui/expect_tool_lint_rfc_2383.rs:107:14
1826
|
@@ -37,5 +45,5 @@ error: this lint expectation is unfulfilled
3745
LL | #[expect(clippy::overly_complex_bool_expr)]
3846
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3947

40-
error: aborting due to 6 previous errors
48+
error: aborting due to 7 previous errors
4149

0 commit comments

Comments
 (0)