about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNiko Matsakis <niko@alum.mit.edu>2018-10-18 10:44:33 -0400
committerNiko Matsakis <niko@alum.mit.edu>2018-10-19 09:34:28 -0400
commit061c9a2bede792edeb2473d7fea7c6d8c5e8f089 (patch)
tree27534728700ef18e5989d81b19e368e8a400cf8f
parent02e5a902e8fc9ffda11eae3cea0e4988c08198c5 (diff)
downloadrust-061c9a2bede792edeb2473d7fea7c6d8c5e8f089.tar.gz
rust-061c9a2bede792edeb2473d7fea7c6d8c5e8f089.zip
region_infer/mod.rs: rustfmt
-rw-r--r--src/librustc_mir/borrow_check/nll/region_infer/mod.rs16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/librustc_mir/borrow_check/nll/region_infer/mod.rs b/src/librustc_mir/borrow_check/nll/region_infer/mod.rs
index 95b3943746d..2c84a9e014e 100644
--- a/src/librustc_mir/borrow_check/nll/region_infer/mod.rs
+++ b/src/librustc_mir/borrow_check/nll/region_infer/mod.rs
@@ -67,10 +67,8 @@ pub struct RegionInferenceContext<'tcx> {
     constraint_sccs: Rc<Sccs<RegionVid, ConstraintSccIndex>>,
 
     /// Map closure bounds to a `Span` that should be used for error reporting.
-    closure_bounds_mapping: FxHashMap<
-        Location,
-        FxHashMap<(RegionVid, RegionVid), (ConstraintCategory, Span)>,
-    >,
+    closure_bounds_mapping:
+        FxHashMap<Location, FxHashMap<(RegionVid, RegionVid), (ConstraintCategory, Span)>>,
 
     /// Contains the minimum universe of any variable within the same
     /// SCC. We will ensure that no SCC contains values that are not
@@ -618,16 +616,18 @@ impl<'tcx> RegionInferenceContext<'tcx> {
             // Skip duplicate-ish errors.
             let type_test_span = type_test.locations.span(mir);
             let erased_generic_kind = tcx.erase_regions(&type_test.generic_kind);
-            if !deduplicate_errors.insert((erased_generic_kind, lower_bound_region, type_test.locations)) {
+            if !deduplicate_errors.insert((
+                erased_generic_kind,
+                lower_bound_region,
+                type_test.locations,
+            )) {
                 continue;
             } else {
                 debug!(
                     "check_type_test: reporting error for erased_generic_kind={:?}, \
                      lower_bound_region={:?}, \
                      type_test.locations={:?}",
-                    erased_generic_kind,
-                    lower_bound_region,
-                    type_test.locations,
+                    erased_generic_kind, lower_bound_region, type_test.locations,
                 );
             }