]> git.lizzy.rs Git - rust.git/commit
Rename `LitKind::to_token_lit` as `LitKind::synthesize_token_lit`.
authorNicholas Nethercote <n.nethercote@gmail.com>
Tue, 29 Nov 2022 02:01:04 +0000 (13:01 +1100)
committerNicholas Nethercote <n.nethercote@gmail.com>
Thu, 1 Dec 2022 23:23:44 +0000 (10:23 +1100)
commite658144586e0fe4f77a7dadf7c80185fd0b71279
treef9a81b8ffbd8b03117b29893542368c0274b2d5e
parentc090c6880c0183ba248bde4a16e29ba29ac4fbba
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.
compiler/rustc_ast/src/attr/mod.rs
compiler/rustc_ast/src/util/literal.rs
compiler/rustc_ast_pretty/src/pprust/state/expr.rs
compiler/rustc_expand/src/build.rs
compiler/rustc_expand/src/proc_macro_server.rs
compiler/rustc_hir_pretty/src/lib.rs