Rollup merge of #78841 - LeSeulArtichaut:foldable-derive, r=lcnr
Small cleanup in `TypeFoldable` derive macro r? ```@lcnr```
This commit is contained in:
commit
2489ff7123
1 changed files with 1 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue