]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_hir_pretty/src/lib.rs
Rename some things related to literals.
[rust.git] / compiler / rustc_hir_pretty / src / lib.rs
index e6fcb84730ea4701b8fd7c8e41d3e842600a7206..0f754dddbec845c0b350ae3cf82b721ac1445aa6 100644 (file)
@@ -1247,7 +1247,7 @@ fn print_expr_addr_of(
 
     fn print_literal(&mut self, lit: &hir::Lit) {
         self.maybe_print_comment(lit.span.lo());
-        self.word(lit.node.to_lit_token().to_string())
+        self.word(lit.node.to_token_lit().to_string())
     }
 
     fn print_inline_asm(&mut self, asm: &hir::InlineAsm<'_>) {