Skip to content

Commit 83be689

Browse files
committed
parser/attr: adjust indentation.
1 parent e72df7e commit 83be689

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

src/librustc_parse/parser/attr.rs

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -130,10 +130,9 @@ impl<'a> Parser<'a> {
130130
}
131131

132132
diag.note(
133-
"inner attributes, like `#![no_std]`, annotate the item \
134-
enclosing them, and are usually found at the beginning of \
135-
source files. Outer attributes, like `#[test]`, annotate the \
136-
item following them.",
133+
"inner attributes, like `#![no_std]`, annotate the item enclosing them, \
134+
and are usually found at the beginning of source files. \
135+
Outer attributes, like `#[test]`, annotate the item following them.",
137136
)
138137
.emit();
139138
}
@@ -202,9 +201,8 @@ impl<'a> Parser<'a> {
202201
if !lit.kind.is_unsuffixed() {
203202
self.struct_span_err(lit.span, "suffixed literals are not allowed in attributes")
204203
.help(
205-
"instead of using a suffixed literal \
206-
(`1u8`, `1.0f32`, etc.), use an unsuffixed version \
207-
(`1`, `1.0`, etc.)",
204+
"instead of using a suffixed literal (`1u8`, `1.0f32`, etc.), \
205+
use an unsuffixed version (`1`, `1.0`, etc.)",
208206
)
209207
.emit();
210208
}

0 commit comments

Comments
 (0)