File tree 2 files changed +1
-7
lines changed
compiler/rustc_parse_format/src
2 files changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -893,7 +893,7 @@ impl<'a> Parser<'a> {
893
893
0 ,
894
894
ParseError {
895
895
description : "expected format parameter to occur after `:`" . to_owned ( ) ,
896
- note : Some ( format ! ( "`{}` comes after `:`." , alignment ) ) ,
896
+ note : None ,
897
897
label : format ! ( "expected `{}` to occur after `:`" , alignment) . to_owned ( ) ,
898
898
span : pos. to ( pos) ,
899
899
secondary_label : None ,
Original file line number Diff line number Diff line change @@ -55,24 +55,18 @@ error: invalid format string: expected format parameter to occur after `:`
55
55
|
56
56
LL | format!("Hello {<5:}!", "x");
57
57
| ^ expected `<` to occur after `:` in format string
58
- |
59
- = note: `<` comes after `:`.
60
58
61
59
error: invalid format string: expected format parameter to occur after `:`
62
60
--> $DIR/format-string-wrong-order.rs:17:21
63
61
|
64
62
LL | format!("Hello {^5:}!", "x");
65
63
| ^ expected `^` to occur after `:` in format string
66
- |
67
- = note: `^` comes after `:`.
68
64
69
65
error: invalid format string: expected format parameter to occur after `:`
70
66
--> $DIR/format-string-wrong-order.rs:19:21
71
67
|
72
68
LL | format!("Hello {>5:}!", "x");
73
69
| ^ expected `>` to occur after `:` in format string
74
- |
75
- = note: `>` comes after `:`.
76
70
77
71
error: aborting due to 9 previous errors
78
72
You can’t perform that action at this time.
0 commit comments