]> git.lizzy.rs Git - rust.git/commitdiff
outlives/env: rustfmt
authorNiko Matsakis <niko@alum.mit.edu>
Wed, 12 Sep 2018 19:02:46 +0000 (15:02 -0400)
committerNiko Matsakis <niko@alum.mit.edu>
Wed, 26 Sep 2018 13:30:54 +0000 (09:30 -0400)
src/librustc/infer/outlives/env.rs

index 7f59a6794efbd15efcc67469326c9ecdbed3a53a..568e4412fdba2a9a11900c7997df4b49650d1413 100644 (file)
@@ -8,8 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-use infer::{GenericKind, InferCtxt};
 use infer::outlives::free_region_map::FreeRegionMap;
+use infer::{GenericKind, InferCtxt};
 use traits::query::outlives_bounds::{self, OutlivesBound};
 use ty::{self, Ty};
 
@@ -167,9 +167,11 @@ fn add_outlives_bounds<I>(
         for outlives_bound in outlives_bounds {
             debug!("add_outlives_bounds: outlives_bound={:?}", outlives_bound);
             match outlives_bound {
-                OutlivesBound::RegionSubRegion(r_a @ &ty::ReEarlyBound(_), &ty::ReVar(vid_b)) |
-                OutlivesBound::RegionSubRegion(r_a @ &ty::ReFree(_), &ty::ReVar(vid_b)) => {
-                    infcx.expect("no infcx provided but region vars found").add_given(r_a, vid_b);
+                OutlivesBound::RegionSubRegion(r_a @ &ty::ReEarlyBound(_), &ty::ReVar(vid_b))
+                | OutlivesBound::RegionSubRegion(r_a @ &ty::ReFree(_), &ty::ReVar(vid_b)) => {
+                    infcx
+                        .expect("no infcx provided but region vars found")
+                        .add_given(r_a, vid_b);
                 }
                 OutlivesBound::RegionSubParam(r_a, param_b) => {
                     self.region_bound_pairs