mirror of
https://github.com/rust-lang/rust
synced 2024-09-05 16:57:03 +00:00
Removing redudant note from parse error
This commit is contained in:
parent
5b30586ba8
commit
506c06636b
|
@ -893,7 +893,7 @@ fn suggest_format_align(&mut self, alignment: char) {
|
|||
0,
|
||||
ParseError {
|
||||
description: "expected format parameter to occur after `:`".to_owned(),
|
||||
note: Some(format!("`{}` comes after `:`.", alignment)),
|
||||
note: None,
|
||||
label: format!("expected `{}` to occur after `:`", alignment).to_owned(),
|
||||
span: pos.to(pos),
|
||||
secondary_label: None,
|
||||
|
|
|
@ -55,24 +55,18 @@ error: invalid format string: expected format parameter to occur after `:`
|
|||
|
|
||||
LL | format!("Hello {<5:}!", "x");
|
||||
| ^ expected `<` to occur after `:` in format string
|
||||
|
|
||||
= note: `<` comes after `:`.
|
||||
|
||||
error: invalid format string: expected format parameter to occur after `:`
|
||||
--> $DIR/format-string-wrong-order.rs:17:21
|
||||
|
|
||||
LL | format!("Hello {^5:}!", "x");
|
||||
| ^ expected `^` to occur after `:` in format string
|
||||
|
|
||||
= note: `^` comes after `:`.
|
||||
|
||||
error: invalid format string: expected format parameter to occur after `:`
|
||||
--> $DIR/format-string-wrong-order.rs:19:21
|
||||
|
|
||||
LL | format!("Hello {>5:}!", "x");
|
||||
| ^ expected `>` to occur after `:` in format string
|
||||
|
|
||||
= note: `>` comes after `:`.
|
||||
|
||||
error: aborting due to 9 previous errors
|
||||
|
||||
|
|
Loading…
Reference in a new issue