From 75624dc486ff5381dabe2c854776cefd8a8eed2d Mon Sep 17 00:00:00 2001 From: arya dradjica Date: Thu, 19 Feb 2026 11:15:57 +0100 Subject: [PATCH] [macros] Remove type defaults from impl block generics Caught while defining 'ZoneMD'. --- macros/src/impls.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/macros/src/impls.rs b/macros/src/impls.rs index 4c097199..bdb9b9cf 100644 --- a/macros/src/impls.rs +++ b/macros/src/impls.rs @@ -57,7 +57,12 @@ impl ImplSkeleton { } GenericParam::Type(value) => { - types.push(value.clone()); + types.push(TypeParam { + // Defaults are not allowed in 'impl' blocks. + eq_token: None, + default: None, + ..value.clone() + }); let id = value.ident.clone(); let id = syn::TypePath { qself: None,