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
|
@ -323,7 +323,7 @@ impl<'a> State<'a> {
|
|||
self.print_token_literal(*token_lit, expr.span);
|
||||
}
|
||||
ast::ExprKind::IncludedBytes(bytes) => {
|
||||
let lit = ast::LitKind::ByteStr(bytes.clone()).to_token_lit();
|
||||
let lit = ast::LitKind::ByteStr(bytes.clone()).synthesize_token_lit();
|
||||
self.print_token_literal(lit, expr.span)
|
||||
}
|
||||
ast::ExprKind::Cast(expr, ty) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue