Derive TypeFoldable and TypeVisitable for mir::PlaceElement

This commit is contained in:
Oli Scherer
2022-09-15 13:43:44 +00:00
parent 10c0560cd2
commit d376012a43
4 changed files with 1 additions and 32 deletions

View File

@@ -2551,8 +2551,6 @@ impl UserTypeProjection {
}
}
TrivialTypeTraversalAndLiftImpls! { ProjectionKind, }
impl<'tcx> TypeFoldable<'tcx> for UserTypeProjection {
fn try_fold_with<F: FallibleTypeFolder<'tcx>>(self, folder: &mut F) -> Result<Self, F::Error> {
Ok(UserTypeProjection {