Skip to content

Commit

Permalink
Make push_outlives_components into a visitor
Browse files Browse the repository at this point in the history
  • Loading branch information
compiler-errors committed Jul 7, 2024
1 parent 87d61f2 commit c895985
Show file tree
Hide file tree
Showing 2 changed files with 119 additions and 231 deletions.
7 changes: 1 addition & 6 deletions compiler/rustc_infer/src/infer/outlives/verify.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
};

Expand Down
Loading

0 comments on commit c895985

Please sign in to comment.