Rollup merge of #78841 - LeSeulArtichaut:foldable-derive, r=lcnr
Small cleanup in `TypeFoldable` derive macro r? ```@lcnr```
This commit is contained in:
commit
2489ff7123
@ -16,9 +16,8 @@ pub fn type_foldable_derive(mut s: synstructure::Structure<'_>) -> proc_macro2::
|
||||
})
|
||||
});
|
||||
|
||||
let body_visit = s.fold(quote!(), |acc, bind| {
|
||||
let body_visit = s.each(|bind| {
|
||||
quote! {
|
||||
#acc
|
||||
::rustc_middle::ty::fold::TypeFoldable::visit_with(#bind, __folder)?;
|
||||
}
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user