rust/compiler/rustc_ast_pretty
Nicholas Nethercote 2fd364acff Remove token::Lit from ast::MetaItemLit.
`token::Lit` contains a `kind` field that indicates what kind of literal
it is. `ast::MetaItemLit` currently wraps a `token::Lit` but also has
its own `kind` field. This means that `ast::MetaItemLit` encodes the
literal kind in two different ways.

This commit changes `ast::MetaItemLit` so it no longer wraps
`token::Lit`. It now contains the `symbol` and `suffix` fields from
`token::Lit`, but not the `kind` field, eliminating the redundancy.
2022-12-02 13:49:19 +11:00
..
src Remove token::Lit from ast::MetaItemLit. 2022-12-02 13:49:19 +11:00
Cargo.toml Remove from compiler/ crates 2022-09-29 16:49:04 +09:00