1
Fork 0

Make push_outlives_components into a visitor

This commit is contained in:
Michael Goulet 2024-07-06 11:31:41 -04:00
parent 87d61f2540
commit c895985e75
2 changed files with 142 additions and 254 deletions

View file

@ -124,12 +124,7 @@ impl<'cx, 'tcx> VerifyBoundCx<'cx, 'tcx> {
// see the extensive comment in projection_must_outlive
let recursive_bound = {
let mut components = smallvec![];
compute_alias_components_recursive(
self.tcx,
alias_ty_as_ty,
&mut components,
&mut Default::default(),
);
compute_alias_components_recursive(self.tcx, alias_ty_as_ty, &mut components);
self.bound_from_components(&components)
};