Small cleanup in TypeFoldable derive macro

This commit is contained in:
LeSeulArtichaut 2020-11-07 18:20:42 +01:00
parent 0256d065d4
commit 087a9340d5

View File

@ -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)?;
}
});