Skip to content

Commit

Permalink
former : experimenting
Browse files Browse the repository at this point in the history
  • Loading branch information
Wandalen committed Apr 10, 2024
1 parent 19427e9 commit 9983635
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions module/core/former_meta/src/derive/former.rs
Original file line number Diff line number Diff line change
Expand Up @@ -833,8 +833,9 @@ Result< TokenStream >
let field_forming_end_name = format!( "former{}End", ident.to_string().to_case( Case::Camel ) );
let field_forming_end = syn::Ident::new( &field_forming_end_name, ident.span() );

let field_ty = field.non_optional_ty;
let field_set = typ::all_type_parameters( field_ty );
// let field_ty = field.non_optional_ty;
let params = typ::type_parameters( &field.non_optional_ty, .. );
// let params = typ::all_type_parameters( field.non_optional_ty );
// let xxx = field_ty;
// let generics = field_ty.generics
// let ( generics_impl, generics_ty, generics_where ) = generics.split_for_impl();
Expand All @@ -850,7 +851,7 @@ Result< TokenStream >
#[ automatically_derived ]
impl< Definition > former::FormingEnd
<
former::VectorDefinition< #field_set, #former< Definition >, #former< Definition >, former::NoEnd >,
former::VectorDefinition< #( #params, )* #former< Definition >, #former< Definition >, former::NoEnd >,
// xxx : what is there is no generic parameters?
>
for #field_forming_end
Expand Down

0 comments on commit 9983635

Please sign in to comment.