@@ -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