rust/compiler/rustc_ast_pretty/src
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
..
pp Pretty print ItemKind::Use in rustfmt style 2022-02-07 21:51:05 -08:00
pprust Remove token::Lit from ast::MetaItemLit. 2022-12-02 13:49:19 +11:00
helpers.rs Prefer doc comments over //-comments in compiler 2022-11-27 11:19:04 +00:00
lib.rs Add diagnostic translation lints to crates that don't emit them 2022-08-18 19:29:02 +01:00
pp.rs fix most compiler/ doctests 2022-05-02 17:40:30 -07:00