Skip to content

Commit 9880b37

Browse files
committed
Removed redundant note in compiler diagnostics
1 parent 1f78ec0 commit 9880b37

File tree

1 file changed

+1
-4
lines changed
  • compiler/rustc_parse_format/src

1 file changed

+1
-4
lines changed

compiler/rustc_parse_format/src/lib.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -859,10 +859,7 @@ impl<'input> Parser<'input> {
859859
0,
860860
ParseError {
861861
description: "expected alignment specifier after `:` in format string; example: `{{:>?}}`".to_owned(),
862-
note: Some(
863-
"alignment must be one of `<` (left), `^` (center), or `>` (right)"
864-
.to_string(),
865-
),
862+
note: None,
866863
label: format!("expected `{}` to occur after `:`", alignment),
867864
span: range,
868865
secondary_label: None,

0 commit comments

Comments
 (0)