File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed
src/librustc_parse/parser Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -130,10 +130,9 @@ impl<'a> Parser<'a> {
130
130
}
131
131
132
132
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.",
137
136
)
138
137
. emit ( ) ;
139
138
}
@@ -202,9 +201,8 @@ impl<'a> Parser<'a> {
202
201
if !lit. kind . is_unsuffixed ( ) {
203
202
self . struct_span_err ( lit. span , "suffixed literals are not allowed in attributes" )
204
203
. 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.)",
208
206
)
209
207
. emit ( ) ;
210
208
}
You can’t perform that action at this time.
0 commit comments