Skip to content

Commit

Permalink
Small cleanup in TypeFoldable derive macro
Browse files Browse the repository at this point in the history
  • Loading branch information
LeSeulArtichaut committed Nov 7, 2020
1 parent 0256d06 commit 087a934
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 087a934

Please sign in to comment.