about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNiko Matsakis <niko@alum.mit.edu>2017-11-15 20:45:03 -0500
committerNiko Matsakis <niko@alum.mit.edu>2017-11-16 05:58:16 -0500
commit8c109f5681c08ed70f85926a2a18f8ed98fef77c (patch)
treea769f0e2326e12e6a8c8baa79336924e795b5a78
parent9e29662a9855461318067ba5e4c5c4154dad01ce (diff)
downloadrust-8c109f5681c08ed70f85926a2a18f8ed98fef77c.tar.gz
rust-8c109f5681c08ed70f85926a2a18f8ed98fef77c.zip
infer/outlives/obligations.rs: wrap some long lines
-rw-r--r--src/librustc/infer/outlives/obligations.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/librustc/infer/outlives/obligations.rs b/src/librustc/infer/outlives/obligations.rs
index 5d6217ebc80..c7081e59ec3 100644
--- a/src/librustc/infer/outlives/obligations.rs
+++ b/src/librustc/infer/outlives/obligations.rs
@@ -502,7 +502,9 @@ impl<'cx, 'gcx, 'tcx> TypeOutlives<'cx, 'gcx, 'tcx> {
         // dubious for projections, but it will work for simple cases
         // like `T` and `T::Item`. It may not work as well for things
         // like `<T as Foo<'a>>::Item`.
-        let mut param_bounds = self.collect_outlives_from_predicate_list(generic.to_ty(tcx), self.param_env.caller_bounds);
+        let generic_ty = generic.to_ty(tcx);
+        let c_b = self.param_env.caller_bounds;
+        let mut param_bounds = self.collect_outlives_from_predicate_list(generic_ty, c_b);
 
         // Next, collect regions we scraped from the well-formedness
         // constraints in the fn signature. To do that, we walk the list