@@ -18,8 +18,8 @@ use rustc_middle::middle::stability;
18
18
use rustc_middle:: ty:: elaborate:: supertrait_def_ids;
19
19
use rustc_middle:: ty:: fast_reject:: { DeepRejectCtxt , TreatParams , simplify_type} ;
20
20
use rustc_middle:: ty:: {
21
- self , AssocItem , AssocItemContainer , GenericArgs , GenericArgsRef , GenericParamDefKind ,
22
- ParamEnvAnd , Ty , TyCtxt , TypeVisitableExt , Upcast ,
21
+ self , AssocContainer , AssocItem , GenericArgs , GenericArgsRef , GenericParamDefKind , ParamEnvAnd ,
22
+ Ty , TyCtxt , TypeVisitableExt , Upcast ,
23
23
} ;
24
24
use rustc_middle:: { bug, span_bug} ;
25
25
use rustc_session:: lint;
@@ -530,7 +530,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
530
530
ProbeScope :: Single ( def_id) => {
531
531
let item = self . tcx . associated_item ( def_id) ;
532
532
// FIXME(fn_delegation): Delegation to inherent methods is not yet supported.
533
- assert_eq ! ( item. container, AssocItemContainer :: Trait ) ;
533
+ assert_eq ! ( item. container, AssocContainer :: Trait ) ;
534
534
535
535
let trait_def_id = self . tcx . parent ( def_id) ;
536
536
let trait_span = self . tcx . def_span ( trait_def_id) ;
@@ -1704,7 +1704,7 @@ impl<'tcx> Pick<'tcx> {
1704
1704
tcx. def_path_str( self . item. def_id) ,
1705
1705
) ) ;
1706
1706
}
1707
- ( ty:: AssocKind :: Const { name } , ty:: AssocItemContainer :: Trait ) => {
1707
+ ( ty:: AssocKind :: Const { name } , ty:: AssocContainer :: Trait ) => {
1708
1708
let def_id = self . item . container_id ( tcx) ;
1709
1709
lint. span_suggestion (
1710
1710
span,
0 commit comments