Skip to content

Commit 858f49e

Browse files
committed
infer/outlives/obligations.rs: wrap some long lines
1 parent 05b6644 commit 858f49e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/librustc/infer/outlives/obligations.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,9 @@ impl<'cx, 'gcx, 'tcx> TypeOutlives<'cx, 'gcx, 'tcx> {
502502
// dubious for projections, but it will work for simple cases
503503
// like `T` and `T::Item`. It may not work as well for things
504504
// like `<T as Foo<'a>>::Item`.
505-
let mut param_bounds = self.collect_outlives_from_predicate_list(generic.to_ty(tcx), self.param_env.caller_bounds);
505+
let generic_ty = generic.to_ty(tcx);
506+
let c_b = self.param_env.caller_bounds;
507+
let mut param_bounds = self.collect_outlives_from_predicate_list(generic_ty, c_b);
506508

507509
// Next, collect regions we scraped from the well-formedness
508510
// constraints in the fn signature. To do that, we walk the list

0 commit comments

Comments
 (0)