mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 08:13:41 +00:00
Small cleanup in TypeFoldable
derive macro
This commit is contained in:
parent
0256d065d4
commit
087a9340d5
@ -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)?;
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user