Skip to content

Commit 10184ec

Browse files
Allowed clippy::tests/ui/attrs.2.fixed in tests/ui/attr.rs because when adding annotations, it doesn't work anymore
1 parent f666fd6 commit 10184ec

File tree

2 files changed

+2
-44
lines changed

2 files changed

+2
-44
lines changed

tests/ui/attrs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#![warn(clippy::inline_always, clippy::deprecated_semver)]
2-
#![allow(clippy::assertions_on_constants)]
2+
#![allow(clippy::assertions_on_constants, clippy::empty_line_after_outer_attr)]
33
#![allow(clippy::missing_docs_in_private_items, clippy::panic, clippy::unreachable)]
44

55
#[inline(always)]

tests/ui/attrs.stderr

Lines changed: 1 addition & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -13,24 +13,6 @@ error: the since field must contain a semver-compliant version
1313
LL | #[deprecated(since = "1")]
1414
| ^^^^^^^^^^^
1515

16-
error: empty lines after outer attribute
17-
--> tests/ui/attrs.rs:5:1
18-
|
19-
LL | / #[inline(always)]
20-
... |
21-
LL | |
22-
| |_^
23-
LL | fn test_attr_lint() {
24-
| ------------------- the attribute applies to this function
25-
|
26-
= note: `-D clippy::empty-line-after-outer-attr` implied by `-D warnings`
27-
= help: to override `-D warnings` add `#[allow(clippy::empty_line_after_outer_attr)]`
28-
= help: if the empty lines are unintentional remove them
29-
help: if the attribute should apply to the crate use an inner attribute
30-
|
31-
LL | #![inline(always)]
32-
| +
33-
3416
error: you have declared `#[inline(always)]` on `test_attr_lint`. This is usually a bad idea
3517
--> tests/ui/attrs.rs:5:1
3618
|
@@ -40,29 +22,5 @@ LL | #[inline(always)]
4022
= note: `-D clippy::inline-always` implied by `-D warnings`
4123
= help: to override `-D warnings` add `#[allow(clippy::inline_always)]`
4224

43-
error: empty lines after outer attribute
44-
--> tests/ui/attrs.rs:28:1
45-
|
46-
LL | / #[deprecated(since = "forever")]
47-
... |
48-
LL | |
49-
| |_^
50-
LL | pub const SOME_CONST: u8 = 42;
51-
| ------------------------ the attribute applies to this constant
52-
|
53-
= help: if the empty lines are unintentional remove them
54-
55-
error: empty line after outer attribute
56-
--> tests/ui/attrs.rs:34:1
57-
|
58-
LL | / #[deprecated(since = "1")]
59-
LL | |
60-
LL | |
61-
| |_^
62-
LL | pub const ANOTHER_CONST: u8 = 23;
63-
| --------------------------- the attribute applies to this constant
64-
|
65-
= help: if the empty line is unintentional remove it
66-
67-
error: aborting due to 6 previous errors
25+
error: aborting due to 3 previous errors
6826

0 commit comments

Comments
 (0)