Skip to content

Commit 33bc375

Browse files
authored
Rollup merge of #78841 - LeSeulArtichaut:foldable-derive, r=lcnr
Small cleanup in `TypeFoldable` derive macro r? `@lcnr`
2 parents 66253cd + 087a934 commit 33bc375

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

compiler/rustc_macros/src/type_foldable.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,8 @@ pub fn type_foldable_derive(mut s: synstructure::Structure<'_>) -> proc_macro2::
1616
})
1717
});
1818

19-
let body_visit = s.fold(quote!(), |acc, bind| {
19+
let body_visit = s.each(|bind| {
2020
quote! {
21-
#acc
2221
::rustc_middle::ty::fold::TypeFoldable::visit_with(#bind, __folder)?;
2322
}
2423
});

0 commit comments

Comments
 (0)