diff options
| author | Lieselotte <52315535+she3py@users.noreply.github.com> | 2024-10-14 23:22:51 +0200 |
|---|---|---|
| committer | Lieselotte <52315535+she3py@users.noreply.github.com> | 2024-10-14 23:22:51 +0200 |
| commit | dda3066805ef0a0ad5f2d0d2cdb6bc0b66d8c19b (patch) | |
| tree | ae5f32f841e40f05c401989c2f9ca7465714a7b9 /compiler/rustc_parse_format | |
| parent | 9322d183f45e0fd5a509820874cc5ff27744a479 (diff) | |
| download | rust-dda3066805ef0a0ad5f2d0d2cdb6bc0b66d8c19b.tar.gz rust-dda3066805ef0a0ad5f2d0d2cdb6bc0b66d8c19b.zip | |
Remove `'apostrophes'` from `rustc_parse_format`
Diffstat (limited to 'compiler/rustc_parse_format')
| -rw-r--r-- | compiler/rustc_parse_format/src/lib.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/compiler/rustc_parse_format/src/lib.rs b/compiler/rustc_parse_format/src/lib.rs index e7ef4385baf..1716f417969 100644 --- a/compiler/rustc_parse_format/src/lib.rs +++ b/compiler/rustc_parse_format/src/lib.rs @@ -473,19 +473,19 @@ impl<'a> Parser<'a> { } pos = peek_pos; - description = format!("expected `'}}'`, found `{maybe:?}`"); + description = format!("expected `}}`, found `{}`", maybe.escape_debug()); } else { - description = "expected `'}'` but string was terminated".to_owned(); + description = "expected `}` but string was terminated".to_owned(); // point at closing `"` pos = self.input.len() - if self.append_newline { 1 } else { 0 }; } let pos = self.to_span_index(pos); - let label = "expected `'}'`".to_owned(); + let label = "expected `}`".to_owned(); let (note, secondary_label) = if arg.format.fill == Some('}') { ( - Some("the character `'}'` is interpreted as a fill character because of the `:` that precedes it".to_owned()), + Some("the character `}` is interpreted as a fill character because of the `:` that precedes it".to_owned()), arg.format.fill_span.map(|sp| ("this is not interpreted as a formatting closing brace".to_owned(), sp)), ) } else { |
