We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4f02359 + 087a934 commit bbe77eaCopy full SHA for bbe77ea
compiler/rustc_macros/src/type_foldable.rs
@@ -16,9 +16,8 @@ pub fn type_foldable_derive(mut s: synstructure::Structure<'_>) -> proc_macro2::
16
})
17
});
18
19
- let body_visit = s.fold(quote!(), |acc, bind| {
+ let body_visit = s.each(|bind| {
20
quote! {
21
- #acc
22
::rustc_middle::ty::fold::TypeFoldable::visit_with(#bind, __folder)?;
23
}
24
0 commit comments