diff options
| author | bors <bors@rust-lang.org> | 2022-12-12 05:16:50 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-12-12 05:16:50 +0000 |
| commit | 17a092f467fb75fa04eeca7e82a0672e1222024b (patch) | |
| tree | 16f398cfb5f961a1091375847363df62152fb277 /clippy_lints/src/utils | |
| parent | dc50bb0961e1033b9a0058800e563932b34b5e3a (diff) | |
| parent | 6481d37bb9f8506362d54b216ffcabba38735aca (diff) | |
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`
Diffstat (limited to 'clippy_lints/src/utils')
| -rw-r--r-- | clippy_lints/src/utils/author.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/utils/author.rs b/clippy_lints/src/utils/author.rs index 0c052d86eda..bd7daf0773c 100644 --- a/clippy_lints/src/utils/author.rs +++ b/clippy_lints/src/utils/author.rs @@ -299,7 +299,7 @@ impl<'a, 'tcx> PrintVisitor<'a, 'tcx> { }; kind!("Float(_, {float_ty})"); }, - LitKind::ByteStr(ref vec) => { + LitKind::ByteStr(ref vec, _) => { bind!(self, vec); kind!("ByteStr(ref {vec})"); chain!(self, "let [{:?}] = **{vec}", vec.value); |
