Skip to content

Commit c895985

Browse files
Make push_outlives_components into a visitor
1 parent 87d61f2 commit c895985

File tree

2 files changed

+119
-231
lines changed

2 files changed

+119
-231
lines changed

compiler/rustc_infer/src/infer/outlives/verify.rs

+1-6
Original file line numberDiff line numberDiff line change
@@ -124,12 +124,7 @@ impl<'cx, 'tcx> VerifyBoundCx<'cx, 'tcx> {
124124
// see the extensive comment in projection_must_outlive
125125
let recursive_bound = {
126126
let mut components = smallvec![];
127-
compute_alias_components_recursive(
128-
self.tcx,
129-
alias_ty_as_ty,
130-
&mut components,
131-
&mut Default::default(),
132-
);
127+
compute_alias_components_recursive(self.tcx, alias_ty_as_ty, &mut components);
133128
self.bound_from_components(&components)
134129
};
135130

0 commit comments

Comments
 (0)