mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 06:44:35 +00:00
0900712fe0
add diagnostic for raw identifiers in format string Format strings don't support raw identifiers (e.g. `format!("{r#type}")`), but they do support keywords in the format string directly (e.g. `format!("{type}")`). This PR improves the error output when attempting to use a raw identifier in a format string and adds a machine-applicable suggestion to remove the `r#`. fixes https://github.com/rust-lang/rust/issues/115466 |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |