mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-29 20:46:07 +03:00
b0760d1d8e
rustc_parse_format: improve the error diagnostic for `+` sign flag
Added a new parser diagnostic in rustc_parse_format that detects when the `+` sign flag is used without a preceding colon in a format string (e.g., `{+}`) and provides a helpful error message and suggestion to use `{:+}` instead.
r? estebank