@@ -59,8 +59,7 @@ fn associated_item(tcx: TyCtxt<'_>, def_id: DefId) -> ty::AssocItem {
5959 if let Some ( impl_item_ref) =
6060 impl_. items . iter ( ) . find ( |i| i. id . def_id . to_def_id ( ) == def_id)
6161 {
62- let assoc_item =
63- associated_item_from_impl_item_ref ( tcx, parent_def_id, impl_item_ref) ;
62+ let assoc_item = associated_item_from_impl_item_ref ( parent_def_id, impl_item_ref) ;
6463 debug_assert_eq ! ( assoc_item. def_id, def_id) ;
6564 return assoc_item;
6665 }
@@ -70,8 +69,7 @@ fn associated_item(tcx: TyCtxt<'_>, def_id: DefId) -> ty::AssocItem {
7069 if let Some ( trait_item_ref) =
7170 trait_item_refs. iter ( ) . find ( |i| i. id . def_id . to_def_id ( ) == def_id)
7271 {
73- let assoc_item =
74- associated_item_from_trait_item_ref ( tcx, parent_def_id, trait_item_ref) ;
72+ let assoc_item = associated_item_from_trait_item_ref ( parent_def_id, trait_item_ref) ;
7573 debug_assert_eq ! ( assoc_item. def_id, def_id) ;
7674 return assoc_item;
7775 }
@@ -88,7 +86,6 @@ fn associated_item(tcx: TyCtxt<'_>, def_id: DefId) -> ty::AssocItem {
8886}
8987
9088fn associated_item_from_trait_item_ref (
91- tcx : TyCtxt < ' _ > ,
9289 parent_def_id : LocalDefId ,
9390 trait_item_ref : & hir:: TraitItemRef ,
9491) -> ty:: AssocItem {
@@ -102,7 +99,6 @@ fn associated_item_from_trait_item_ref(
10299 ty:: AssocItem {
103100 name : trait_item_ref. ident . name ,
104101 kind,
105- vis : tcx. visibility ( def_id) ,
106102 def_id : def_id. to_def_id ( ) ,
107103 trait_item_def_id : Some ( def_id. to_def_id ( ) ) ,
108104 container : ty:: TraitContainer ( parent_def_id. to_def_id ( ) ) ,
@@ -111,7 +107,6 @@ fn associated_item_from_trait_item_ref(
111107}
112108
113109fn associated_item_from_impl_item_ref (
114- tcx : TyCtxt < ' _ > ,
115110 parent_def_id : LocalDefId ,
116111 impl_item_ref : & hir:: ImplItemRef ,
117112) -> ty:: AssocItem {
@@ -125,7 +120,6 @@ fn associated_item_from_impl_item_ref(
125120 ty:: AssocItem {
126121 name : impl_item_ref. ident . name ,
127122 kind,
128- vis : tcx. visibility ( def_id) ,
129123 def_id : def_id. to_def_id ( ) ,
130124 trait_item_def_id : impl_item_ref. trait_item_def_id ,
131125 container : ty:: ImplContainer ( parent_def_id. to_def_id ( ) ) ,
0 commit comments