@@ -13,24 +13,6 @@ error: the since field must contain a semver-compliant version
13
13
LL | #[deprecated(since = "1")]
14
14
| ^^^^^^^^^^^
15
15
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
-
34
16
error: you have declared `#[inline(always)]` on `test_attr_lint`. This is usually a bad idea
35
17
--> tests/ui/attrs.rs:5:1
36
18
|
@@ -40,29 +22,5 @@ LL | #[inline(always)]
40
22
= note: `-D clippy::inline-always` implied by `-D warnings`
41
23
= help: to override `-D warnings` add `#[allow(clippy::inline_always)]`
42
24
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
68
26
0 commit comments