Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 1a29a78

Browse files
camelidcjgillot
authored andcommitted
rm ItemKind::OpaqueTy
This introduce an additional collection of opaques on HIR, as they can no longer be listed using the free item list.
1 parent 743623d commit 1a29a78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_utils/src/check_proc_macro.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ fn item_search_pat(item: &Item<'_>) -> (Pat, Pat) {
220220
ItemKind::Const(..) => (Pat::Str("const"), Pat::Str(";")),
221221
ItemKind::Fn(sig, ..) => (fn_header_search_pat(sig.header), Pat::Str("")),
222222
ItemKind::ForeignMod { .. } => (Pat::Str("extern"), Pat::Str("}")),
223-
ItemKind::TyAlias(..) | ItemKind::OpaqueTy(_) => (Pat::Str("type"), Pat::Str(";")),
223+
ItemKind::TyAlias(..) => (Pat::Str("type"), Pat::Str(";")),
224224
ItemKind::Enum(..) => (Pat::Str("enum"), Pat::Str("}")),
225225
ItemKind::Struct(VariantData::Struct { .. }, _) => (Pat::Str("struct"), Pat::Str("}")),
226226
ItemKind::Struct(..) => (Pat::Str("struct"), Pat::Str(";")),

0 commit comments

Comments
 (0)