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
|
@ -333,7 +333,7 @@ impl<'a> ExtCtxt<'a> {
|
|||
}
|
||||
|
||||
fn expr_lit(&self, span: Span, lit_kind: ast::LitKind) -> P<ast::Expr> {
|
||||
let token_lit = lit_kind.to_token_lit();
|
||||
let token_lit = lit_kind.synthesize_token_lit();
|
||||
self.expr(span, ast::ExprKind::Lit(token_lit))
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue