rust/compiler/rustc_parse
Nicholas Nethercote d887615b4c 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.
2022-12-05 15:04:33 +11:00
..
src Parameterise Parser::{recover_unclosed_char,handle_missing_lit}. 2022-12-05 15:04:33 +11:00
Cargo.toml Use ThinVec in ast::Path. 2022-11-17 13:56:38 +11:00