about summary refs log tree commit diff
path: root/compiler/rustc_mir_transform/src/coverage/debug.rs
diff options
context:
space:
mode:
authorDylan DPC <99973273+Dylan-DPC@users.noreply.github.com>2023-09-17 11:23:25 +0000
committerGitHub <noreply@github.com>2023-09-17 11:23:25 +0000
commit0900712fe0d5eee89a65d122d724916978634cda (patch)
treee6336f7a12afd6f1592752211de19e9ef11e715c /compiler/rustc_mir_transform/src/coverage/debug.rs
parent6011fd4655810b43a97212ca33219ef0e99f8999 (diff)
parentd990eee0c8ae2ce465351b00abbdb8bfdd1caf4b (diff)
downloadrust-0900712fe0d5eee89a65d122d724916978634cda.tar.gz
rust-0900712fe0d5eee89a65d122d724916978634cda.zip
Rollup merge of #115611 - lukas-code:format!("{r#ident}"), r=compiler-errors
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
Diffstat (limited to 'compiler/rustc_mir_transform/src/coverage/debug.rs')
0 files changed, 0 insertions, 0 deletions