parser/attr: adjust indentation.
This commit is contained in:
parent
e72df7edad
commit
83be689b94
1 changed files with 5 additions and 7 deletions
|
@ -130,10 +130,9 @@ impl<'a> Parser<'a> {
|
||||||
}
|
}
|
||||||
|
|
||||||
diag.note(
|
diag.note(
|
||||||
"inner attributes, like `#![no_std]`, annotate the item \
|
"inner attributes, like `#![no_std]`, annotate the item enclosing them, \
|
||||||
enclosing them, and are usually found at the beginning of \
|
and are usually found at the beginning of source files. \
|
||||||
source files. Outer attributes, like `#[test]`, annotate the \
|
Outer attributes, like `#[test]`, annotate the item following them.",
|
||||||
item following them.",
|
|
||||||
)
|
)
|
||||||
.emit();
|
.emit();
|
||||||
}
|
}
|
||||||
|
@ -202,9 +201,8 @@ impl<'a> Parser<'a> {
|
||||||
if !lit.kind.is_unsuffixed() {
|
if !lit.kind.is_unsuffixed() {
|
||||||
self.struct_span_err(lit.span, "suffixed literals are not allowed in attributes")
|
self.struct_span_err(lit.span, "suffixed literals are not allowed in attributes")
|
||||||
.help(
|
.help(
|
||||||
"instead of using a suffixed literal \
|
"instead of using a suffixed literal (`1u8`, `1.0f32`, etc.), \
|
||||||
(`1u8`, `1.0f32`, etc.), use an unsuffixed version \
|
use an unsuffixed version (`1`, `1.0`, etc.)",
|
||||||
(`1`, `1.0`, etc.)",
|
|
||||||
)
|
)
|
||||||
.emit();
|
.emit();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue