We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 00f9546 commit caefac0Copy full SHA for caefac0
compiler/rustc_parse/src/parser/diagnostics.rs
@@ -309,6 +309,8 @@ impl<'a> Parser<'a> {
309
{
310
Some(SuggEscapeToUseAsIdentifier {
311
span: ident.span.shrink_to_lo(),
312
+ // `Symbol::to_string()` is different from `Symbol::into_diagnostic_arg()`,
313
+ // which uses `Symbol::to_ident_string()` and "helpfully" adds an implicit `r#`
314
ident_name: ident.name.to_string(),
315
})
316
}
0 commit comments