Rename LitKind::to_token_lit
as LitKind::synthesize_token_lit
.
This makes it clearer that it's not a lossless conversion, which I find helpful.
This commit is contained in:
parent
c090c6880c
commit
e658144586
6 changed files with 8 additions and 8 deletions
|
@ -1256,7 +1256,7 @@ impl<'a> State<'a> {
|
|||
|
||||
fn print_literal(&mut self, lit: &hir::Lit) {
|
||||
self.maybe_print_comment(lit.span.lo());
|
||||
self.word(lit.node.to_token_lit().to_string())
|
||||
self.word(lit.node.synthesize_token_lit().to_string())
|
||||
}
|
||||
|
||||
fn print_inline_asm(&mut self, asm: &hir::InlineAsm<'_>) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue