region_infer/mod.rs: rustfmt

This commit is contained in:
Niko Matsakis 2018-10-18 10:44:33 -04:00
parent 02e5a902e8
commit 061c9a2bed

View file

@ -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,
);
}