diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2022-08-17 12:32:49 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-08-17 12:32:49 +0200 |
| commit | d5dca26a94437d9b2c2d37cd515f2ac32c30919b (patch) | |
| tree | 4145261e4bd8e70cd79e7422f507c5684ee42eb4 /compiler/rustc_ast_pretty/src | |
| parent | bb77336c0a6708bdebcbf3a1df19b258919b582e (diff) | |
| parent | 5d3cc1713a8816e3b4f10dc2cbaf910b16dc8763 (diff) | |
| download | rust-d5dca26a94437d9b2c2d37cd515f2ac32c30919b.tar.gz rust-d5dca26a94437d9b2c2d37cd515f2ac32c30919b.zip | |
Rollup merge of #100018 - nnethercote:clean-up-LitKind, r=petrochenkov
Clean up `LitKind` r? ``@petrochenkov``
Diffstat (limited to 'compiler/rustc_ast_pretty/src')
| -rw-r--r-- | compiler/rustc_ast_pretty/src/pprust/state.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_ast_pretty/src/pprust/state.rs b/compiler/rustc_ast_pretty/src/pprust/state.rs index c454034efa7..8749a13c5dd 100644 --- a/compiler/rustc_ast_pretty/src/pprust/state.rs +++ b/compiler/rustc_ast_pretty/src/pprust/state.rs @@ -372,7 +372,7 @@ pub trait PrintState<'a>: std::ops::Deref<Target = pp::Printer> + std::ops::Dere fn print_literal(&mut self, lit: &ast::Lit) { self.maybe_print_comment(lit.span.lo()); - self.word(lit.token.to_string()) + self.word(lit.token_lit.to_string()) } fn print_string(&mut self, st: &str, style: ast::StrStyle) { |
