Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir-expand/src/builtin/derive_macro.rs')
-rw-r--r--crates/hir-expand/src/builtin/derive_macro.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/crates/hir-expand/src/builtin/derive_macro.rs b/crates/hir-expand/src/builtin/derive_macro.rs
index 8b031e3647..e8321cd8da 100644
--- a/crates/hir-expand/src/builtin/derive_macro.rs
+++ b/crates/hir-expand/src/builtin/derive_macro.rs
@@ -1494,6 +1494,9 @@ fn coerce_pointee_expand(
ast::Type::TupleType(ty) => any_long(ty.fields(), |ty| {
substitute_type_in_bound(editor, ty, param_name, replacement)
}),
+ ast::Type::PatternType(ty) => ty
+ .ty()
+ .is_some_and(|ty| substitute_type_in_bound(editor, ty, param_name, replacement)),
ast::Type::InferType(_) | ast::Type::MacroType(_) | ast::Type::NeverType(_) => false,
};