@@ -67,10 +67,8 @@ pub struct RegionInferenceContext<'tcx> {
67
67
constraint_sccs : Rc < Sccs < RegionVid , ConstraintSccIndex > > ,
68
68
69
69
/// 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 ) > > ,
74
72
75
73
/// Contains the minimum universe of any variable within the same
76
74
/// SCC. We will ensure that no SCC contains values that are not
@@ -618,16 +616,18 @@ impl<'tcx> RegionInferenceContext<'tcx> {
618
616
// Skip duplicate-ish errors.
619
617
let type_test_span = type_test. locations . span ( mir) ;
620
618
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
+ ) ) {
622
624
continue ;
623
625
} else {
624
626
debug ! (
625
627
"check_type_test: reporting error for erased_generic_kind={:?}, \
626
628
lower_bound_region={:?}, \
627
629
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,
631
631
) ;
632
632
}
633
633
0 commit comments