impl TypeVisitable in type traversal macros

This commit is contained in:
Alan Egerton 2022-06-17 11:05:17 +01:00
parent e4b9625b87
commit 9ffdc2de8c
No known key found for this signature in database
GPG key ID: 07CAC3CCA7E0643F
14 changed files with 57 additions and 35 deletions

View file

@ -762,7 +762,7 @@ pub enum ImplicitSelfKind {
None,
}
TrivialTypeFoldableAndLiftImpls! { BindingForm<'tcx>, }
TrivialTypeTraversalAndLiftImpls! { BindingForm<'tcx>, }
mod binding_form_impl {
use rustc_data_structures::stable_hasher::{HashStable, StableHasher};
@ -2641,7 +2641,7 @@ impl UserTypeProjection {
}
}
TrivialTypeFoldableAndLiftImpls! { ProjectionKind, }
TrivialTypeTraversalAndLiftImpls! { ProjectionKind, }
impl<'tcx> TypeFoldable<'tcx> for UserTypeProjection {
fn try_fold_with<F: FallibleTypeFolder<'tcx>>(self, folder: &mut F) -> Result<Self, F::Error> {