]> git.lizzy.rs Git - rust.git/commit - src/librustdoc/json/mod.rs
Auto merge of #105160 - nnethercote:rm-Lit-token_lit, r=petrochenkov
authorbors <bors@rust-lang.org>
Mon, 12 Dec 2022 05:16:50 +0000 (05:16 +0000)
committerbors <bors@rust-lang.org>
Mon, 12 Dec 2022 05:16:50 +0000 (05:16 +0000)
commit2cd2070af7643ad88d280a4933bc4fb60451e521
treebae3a424c82e36ea4cd91f596edee0208213f167
parentb397bc0727ad27340466166455c6edd327a589c4
parent7e0c6dba0d83dbee96bbf7eac7b4cb563e297a5f
Auto merge of #105160 - nnethercote:rm-Lit-token_lit, r=petrochenkov

Remove `token::Lit` from `ast::MetaItemLit`.

Currently `ast::MetaItemLit` represents the literal kind twice. This PR removes that redundancy. Best reviewed one commit at a time.

r? `@petrochenkov`
13 files changed:
compiler/rustc_ast/src/ast.rs
compiler/rustc_ast/src/util/literal.rs
compiler/rustc_ast_lowering/src/expr.rs
compiler/rustc_ast_lowering/src/lib.rs
compiler/rustc_ast_pretty/src/pprust/state.rs
compiler/rustc_ast_pretty/src/pprust/state/expr.rs
compiler/rustc_builtin_macros/src/concat_bytes.rs
compiler/rustc_expand/src/base.rs
compiler/rustc_expand/src/build.rs
compiler/rustc_hir_pretty/src/lib.rs
compiler/rustc_hir_typeck/src/fn_ctxt/checks.rs
compiler/rustc_parse/src/parser/expr.rs
src/librustdoc/clean/types.rs