about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/builder.rs
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2022-12-05 14:39:56 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2022-12-05 15:04:33 +1100
commitd887615b4c83d856cd3e40000968c047f2ff4019 (patch)
tree5bc313564dcd33003f3087167ababad74b664189 /compiler/rustc_codegen_llvm/src/builder.rs
parent4ae956f600e72d62a6b17d95705148442841cef0 (diff)
downloadrust-d887615b4c83d856cd3e40000968c047f2ff4019.tar.gz
rust-d887615b4c83d856cd3e40000968c047f2ff4019.zip
Parameterise `Parser::{recover_unclosed_char,handle_missing_lit}`.
These two methods both produce a `MetaItemLit`, and then some of the
call sites convert the `MetaItemLit` to a `token::Lit` with
`as_token_lit`.

This commit parameterises these two methods with a `mk_lit_char`
closure, which can be used to produce either `MetaItemLit` or
`token::Lit` directly as necessary.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/builder.rs')
0 files changed, 0 insertions, 0 deletions