Document use of Symbol::to_string()
This commit is contained in:
parent
00f95468c4
commit
caefac034e
1 changed files with 2 additions and 0 deletions
|
@ -309,6 +309,8 @@ impl<'a> Parser<'a> {
|
||||||
{
|
{
|
||||||
Some(SuggEscapeToUseAsIdentifier {
|
Some(SuggEscapeToUseAsIdentifier {
|
||||||
span: ident.span.shrink_to_lo(),
|
span: ident.span.shrink_to_lo(),
|
||||||
|
// `Symbol::to_string()` is different from `Symbol::into_diagnostic_arg()`,
|
||||||
|
// which uses `Symbol::to_ident_string()` and "helpfully" adds an implicit `r#`
|
||||||
ident_name: ident.name.to_string(),
|
ident_name: ident.name.to_string(),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue