@@ -10,11 +10,6 @@ use rustc_hir::GenericBound::Trait;
1010use rustc_hir:: QPath :: Resolved ;
1111use rustc_hir:: WherePredicate :: BoundPredicate ;
1212use 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;
1813use rustc_infer:: infer:: { NllRegionVariableOrigin , RelateParamBound } ;
1914use rustc_middle:: bug;
2015use rustc_middle:: hir:: place:: PlaceBase ;
@@ -25,6 +20,12 @@ use rustc_middle::ty::{self, RegionVid, Ty};
2520use rustc_middle:: ty:: { Region , TyCtxt } ;
2621use rustc_span:: symbol:: { kw, Ident } ;
2722use 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 ;
2829use rustc_trait_selection:: infer:: InferCtxtExt ;
2930use rustc_trait_selection:: traits:: { Obligation , ObligationCtxt } ;
3031
0 commit comments