Skip to content

Commit 2792260

Browse files
committed
empty-liner-after-outer-attr: make lint adhere to lint message convention
1 parent 0db5cb1 commit 2792260

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

clippy_lints/src/attrs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,7 @@ fn check_empty_line_after_outer_attr(cx: &EarlyContext<'_>, item: &rustc_ast::as
605605
cx,
606606
EMPTY_LINE_AFTER_OUTER_ATTR,
607607
begin_of_attr_to_item,
608-
"Found an empty line after an outer attribute. \
608+
"found an empty line after an outer attribute. \
609609
Perhaps you forgot to add a `!` to make it an inner attribute?",
610610
);
611611
}

tests/ui/empty_line_after_outer_attribute.stderr

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error: Found an empty line after an outer attribute. Perhaps you forgot to add a `!` to make it an inner attribute?
1+
error: found an empty line after an outer attribute. Perhaps you forgot to add a `!` to make it an inner attribute?
22
--> $DIR/empty_line_after_outer_attribute.rs:11:1
33
|
44
LL | / #[crate_type = "lib"]
@@ -9,15 +9,15 @@ LL | | fn with_one_newline_and_comment() { assert!(true) }
99
|
1010
= note: `-D clippy::empty-line-after-outer-attr` implied by `-D warnings`
1111

12-
error: Found an empty line after an outer attribute. Perhaps you forgot to add a `!` to make it an inner attribute?
12+
error: found an empty line after an outer attribute. Perhaps you forgot to add a `!` to make it an inner attribute?
1313
--> $DIR/empty_line_after_outer_attribute.rs:23:1
1414
|
1515
LL | / #[crate_type = "lib"]
1616
LL | |
1717
LL | | fn with_one_newline() { assert!(true) }
1818
| |_
1919

20-
error: Found an empty line after an outer attribute. Perhaps you forgot to add a `!` to make it an inner attribute?
20+
error: found an empty line after an outer attribute. Perhaps you forgot to add a `!` to make it an inner attribute?
2121
--> $DIR/empty_line_after_outer_attribute.rs:28:1
2222
|
2323
LL | / #[crate_type = "lib"]
@@ -26,23 +26,23 @@ LL | |
2626
LL | | fn with_two_newlines() { assert!(true) }
2727
| |_
2828

29-
error: Found an empty line after an outer attribute. Perhaps you forgot to add a `!` to make it an inner attribute?
29+
error: found an empty line after an outer attribute. Perhaps you forgot to add a `!` to make it an inner attribute?
3030
--> $DIR/empty_line_after_outer_attribute.rs:35:1
3131
|
3232
LL | / #[crate_type = "lib"]
3333
LL | |
3434
LL | | enum Baz {
3535
| |_
3636

37-
error: Found an empty line after an outer attribute. Perhaps you forgot to add a `!` to make it an inner attribute?
37+
error: found an empty line after an outer attribute. Perhaps you forgot to add a `!` to make it an inner attribute?
3838
--> $DIR/empty_line_after_outer_attribute.rs:43:1
3939
|
4040
LL | / #[crate_type = "lib"]
4141
LL | |
4242
LL | | struct Foo {
4343
| |_
4444

45-
error: Found an empty line after an outer attribute. Perhaps you forgot to add a `!` to make it an inner attribute?
45+
error: found an empty line after an outer attribute. Perhaps you forgot to add a `!` to make it an inner attribute?
4646
--> $DIR/empty_line_after_outer_attribute.rs:51:1
4747
|
4848
LL | / #[crate_type = "lib"]

0 commit comments

Comments
 (0)