properly bound with StaticValue or StaticType<MaskType: StaticType>
All checks were successful
/ test (push) Successful in 14m38s
All checks were successful
/ test (push) Successful in 14m38s
This commit is contained in:
parent
2dce478d48
commit
cd99dbc849
8 changed files with 37 additions and 45 deletions
|
@ -186,22 +186,9 @@ impl ValueDeriveGenerics {
|
|||
let predicates = &mut generics.make_where_clause().predicates;
|
||||
let static_type_predicates = &mut static_type_generics.make_where_clause().predicates;
|
||||
for type_param in type_params {
|
||||
predicates.push(parse_quote! {#type_param: ::fayalite::ty::Value});
|
||||
predicates.push(parse_quote! {
|
||||
<#type_param as ::fayalite::expr::ToExpr>::Type:
|
||||
::fayalite::ty::Type<Value = #type_param>
|
||||
});
|
||||
static_type_predicates.push(parse_quote! {#type_param: ::fayalite::ty::Value});
|
||||
static_type_predicates.push(parse_quote! {
|
||||
<#type_param as ::fayalite::expr::ToExpr>::Type:
|
||||
::fayalite::ty::StaticType<Value = #type_param>
|
||||
});
|
||||
static_type_predicates.push(parse_quote! {
|
||||
<
|
||||
<#type_param as ::fayalite::expr::ToExpr>::Type
|
||||
as ::fayalite::ty::Type
|
||||
>::MaskType: ::fayalite::ty::StaticType
|
||||
});
|
||||
predicates.push(parse_quote! {#type_param: ::fayalite::ty::Value<Type: ::fayalite::ty::Type<Value = #type_param>>});
|
||||
static_type_predicates
|
||||
.push(parse_quote! {#type_param: ::fayalite::ty::StaticValue});
|
||||
}
|
||||
}
|
||||
Self {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue