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> {
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 }
You can’t perform that action at this time.
0 commit comments