Skip to content

Commit 061c9a2

Browse files
committed
region_infer/mod.rs: rustfmt
1 parent 02e5a90 commit 061c9a2

File tree

1 file changed

+8
-8
lines changed
  • src/librustc_mir/borrow_check/nll/region_infer

1 file changed

+8
-8
lines changed

src/librustc_mir/borrow_check/nll/region_infer/mod.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,8 @@ pub struct RegionInferenceContext<'tcx> {
6767
constraint_sccs: Rc<Sccs<RegionVid, ConstraintSccIndex>>,
6868

6969
/// Map closure bounds to a `Span` that should be used for error reporting.
70-
closure_bounds_mapping: FxHashMap<
71-
Location,
72-
FxHashMap<(RegionVid, RegionVid), (ConstraintCategory, Span)>,
73-
>,
70+
closure_bounds_mapping:
71+
FxHashMap<Location, FxHashMap<(RegionVid, RegionVid), (ConstraintCategory, Span)>>,
7472

7573
/// Contains the minimum universe of any variable within the same
7674
/// SCC. We will ensure that no SCC contains values that are not
@@ -618,16 +616,18 @@ impl<'tcx> RegionInferenceContext<'tcx> {
618616
// Skip duplicate-ish errors.
619617
let type_test_span = type_test.locations.span(mir);
620618
let erased_generic_kind = tcx.erase_regions(&type_test.generic_kind);
621-
if !deduplicate_errors.insert((erased_generic_kind, lower_bound_region, type_test.locations)) {
619+
if !deduplicate_errors.insert((
620+
erased_generic_kind,
621+
lower_bound_region,
622+
type_test.locations,
623+
)) {
622624
continue;
623625
} else {
624626
debug!(
625627
"check_type_test: reporting error for erased_generic_kind={:?}, \
626628
lower_bound_region={:?}, \
627629
type_test.locations={:?}",
628-
erased_generic_kind,
629-
lower_bound_region,
630-
type_test.locations,
630+
erased_generic_kind, lower_bound_region, type_test.locations,
631631
);
632632
}
633633

0 commit comments

Comments
 (0)