diff options
| author | Mads Ravn <madsravn@gmail.com> | 2024-01-08 19:41:01 +0100 |
|---|---|---|
| committer | Mads Ravn <madsravn@gmail.com> | 2024-01-08 19:41:01 +0100 |
| commit | 506c06636b5fe4b59558cbb08cf87809175648b8 (patch) | |
| tree | b9f4b285f72a7626d1644d410b3f8394192032bf /compiler/rustc_parse_format/src | |
| parent | 5b30586ba8905a1a14d5d05522c697ab1b0800f7 (diff) | |
| download | rust-506c06636b5fe4b59558cbb08cf87809175648b8.tar.gz rust-506c06636b5fe4b59558cbb08cf87809175648b8.zip | |
Removing redudant note from parse error
Diffstat (limited to 'compiler/rustc_parse_format/src')
| -rw-r--r-- | compiler/rustc_parse_format/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_parse_format/src/lib.rs b/compiler/rustc_parse_format/src/lib.rs index eff54ac9308..1e1d45d6f70 100644 --- a/compiler/rustc_parse_format/src/lib.rs +++ b/compiler/rustc_parse_format/src/lib.rs @@ -893,7 +893,7 @@ impl<'a> Parser<'a> { 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, |
