@@ -18,8 +18,8 @@ use rustc_middle::middle::stability;
1818use rustc_middle:: ty:: elaborate:: supertrait_def_ids;
1919use rustc_middle:: ty:: fast_reject:: { DeepRejectCtxt , TreatParams , simplify_type} ;
2020use 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 ,
2323} ;
2424use rustc_middle:: { bug, span_bug} ;
2525use rustc_session:: lint;
@@ -528,7 +528,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
528528 ProbeScope :: Single ( def_id) => {
529529 let item = self . tcx . associated_item ( def_id) ;
530530 // 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 ) ;
532532
533533 let trait_def_id = self . tcx . parent ( def_id) ;
534534 let trait_span = self . tcx . def_span ( trait_def_id) ;
@@ -1702,7 +1702,7 @@ impl<'tcx> Pick<'tcx> {
17021702 tcx. def_path_str( self . item. def_id) ,
17031703 ) ) ;
17041704 }
1705- ( ty:: AssocKind :: Const { name } , ty:: AssocItemContainer :: Trait ) => {
1705+ ( ty:: AssocKind :: Const { name } , ty:: AssocContainer :: Trait ) => {
17061706 let def_id = self . item . container_id ( tcx) ;
17071707 lint. span_suggestion (
17081708 span,
0 commit comments