]> git.lizzy.rs Git - rust.git/commitdiff
infer/outlives/obligations.rs: wrap some long lines
authorNiko Matsakis <niko@alum.mit.edu>
Thu, 16 Nov 2017 01:45:03 +0000 (20:45 -0500)
committerNiko Matsakis <niko@alum.mit.edu>
Thu, 16 Nov 2017 10:58:16 +0000 (05:58 -0500)
src/librustc/infer/outlives/obligations.rs

index 5d6217ebc80be6664a7e650d041e1f431dec0718..c7081e59ec36f5b3559bc28f0e6fc07735ec042f 100644 (file)
@@ -502,7 +502,9 @@ fn declared_generic_bounds_from_env(
         // 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