Skip to content

Commit

Permalink
Rollup merge of #78841 - LeSeulArtichaut:foldable-derive, r=lcnr
Browse files Browse the repository at this point in the history
Small cleanup in `TypeFoldable` derive macro

r? ```@lcnr```
  • Loading branch information
m-ou-se authored Nov 8, 2020
2 parents 5cffa8f + 087a934 commit 2489ff7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions compiler/rustc_macros/src/type_foldable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)?;
}
});
Expand Down

0 comments on commit 2489ff7

Please # to comment.