@@ -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;
@@ -528,7 +528,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
528
528
ProbeScope :: Single ( def_id) => {
529
529
let item = self . tcx . associated_item ( def_id) ;
530
530
// FIXME(fn_delegation): Delegation to inherent methods is not yet supported.
531
- assert_eq ! ( item. container, AssocItemContainer :: Trait ) ;
531
+ assert_eq ! ( item. container, AssocContainer :: Trait ) ;
532
532
533
533
let trait_def_id = self . tcx . parent ( def_id) ;
534
534
let trait_span = self . tcx . def_span ( trait_def_id) ;
@@ -1702,7 +1702,7 @@ impl<'tcx> Pick<'tcx> {
1702
1702
tcx. def_path_str( self . item. def_id) ,
1703
1703
) ) ;
1704
1704
}
1705
- ( ty:: AssocKind :: Const { name } , ty:: AssocItemContainer :: Trait ) => {
1705
+ ( ty:: AssocKind :: Const { name } , ty:: AssocContainer :: Trait ) => {
1706
1706
let def_id = self . item . container_id ( tcx) ;
1707
1707
lint. span_suggestion (
1708
1708
span,
0 commit comments