@@ -10,11 +10,6 @@ use rustc_hir::GenericBound::Trait;
10
10
use rustc_hir:: QPath :: Resolved ;
11
11
use rustc_hir:: WherePredicate :: BoundPredicate ;
12
12
use rustc_hir:: { PolyTraitRef , TyKind , WhereBoundPredicate } ;
13
- use rustc_infer:: error_reporting:: infer:: nice_region_error:: {
14
- self , find_anon_type, find_param_with_region, suggest_adding_lifetime_params,
15
- HirTraitObjectVisitor , NiceRegionError , TraitObjectVisitor ,
16
- } ;
17
- use rustc_infer:: error_reporting:: infer:: region:: unexpected_hidden_region_diagnostic;
18
13
use rustc_infer:: infer:: { NllRegionVariableOrigin , RelateParamBound } ;
19
14
use rustc_middle:: bug;
20
15
use rustc_middle:: hir:: place:: PlaceBase ;
@@ -25,6 +20,12 @@ use rustc_middle::ty::{self, RegionVid, Ty};
25
20
use rustc_middle:: ty:: { Region , TyCtxt } ;
26
21
use rustc_span:: symbol:: { kw, Ident } ;
27
22
use rustc_span:: Span ;
23
+ use rustc_trait_selection:: error_reporting:: infer:: nice_region_error:: {
24
+ self , find_anon_type, find_param_with_region, suggest_adding_lifetime_params,
25
+ HirTraitObjectVisitor , NiceRegionError , TraitObjectVisitor ,
26
+ } ;
27
+ use rustc_trait_selection:: error_reporting:: infer:: region:: unexpected_hidden_region_diagnostic;
28
+ use rustc_trait_selection:: error_reporting:: InferCtxtErrorExt ;
28
29
use rustc_trait_selection:: infer:: InferCtxtExt ;
29
30
use rustc_trait_selection:: traits:: { Obligation , ObligationCtxt } ;
30
31
0 commit comments