@@ -59,8 +59,7 @@ fn associated_item(tcx: TyCtxt<'_>, def_id: DefId) -> ty::AssocItem {
59
59
if let Some ( impl_item_ref) =
60
60
impl_. items . iter ( ) . find ( |i| i. id . def_id . to_def_id ( ) == def_id)
61
61
{
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) ;
64
63
debug_assert_eq ! ( assoc_item. def_id, def_id) ;
65
64
return assoc_item;
66
65
}
@@ -70,8 +69,7 @@ fn associated_item(tcx: TyCtxt<'_>, def_id: DefId) -> ty::AssocItem {
70
69
if let Some ( trait_item_ref) =
71
70
trait_item_refs. iter ( ) . find ( |i| i. id . def_id . to_def_id ( ) == def_id)
72
71
{
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) ;
75
73
debug_assert_eq ! ( assoc_item. def_id, def_id) ;
76
74
return assoc_item;
77
75
}
@@ -88,7 +86,6 @@ fn associated_item(tcx: TyCtxt<'_>, def_id: DefId) -> ty::AssocItem {
88
86
}
89
87
90
88
fn associated_item_from_trait_item_ref (
91
- tcx : TyCtxt < ' _ > ,
92
89
parent_def_id : LocalDefId ,
93
90
trait_item_ref : & hir:: TraitItemRef ,
94
91
) -> ty:: AssocItem {
@@ -102,7 +99,6 @@ fn associated_item_from_trait_item_ref(
102
99
ty:: AssocItem {
103
100
name : trait_item_ref. ident . name ,
104
101
kind,
105
- vis : tcx. visibility ( def_id) ,
106
102
def_id : def_id. to_def_id ( ) ,
107
103
trait_item_def_id : Some ( def_id. to_def_id ( ) ) ,
108
104
container : ty:: TraitContainer ( parent_def_id. to_def_id ( ) ) ,
@@ -111,7 +107,6 @@ fn associated_item_from_trait_item_ref(
111
107
}
112
108
113
109
fn associated_item_from_impl_item_ref (
114
- tcx : TyCtxt < ' _ > ,
115
110
parent_def_id : LocalDefId ,
116
111
impl_item_ref : & hir:: ImplItemRef ,
117
112
) -> ty:: AssocItem {
@@ -125,7 +120,6 @@ fn associated_item_from_impl_item_ref(
125
120
ty:: AssocItem {
126
121
name : impl_item_ref. ident . name ,
127
122
kind,
128
- vis : tcx. visibility ( def_id) ,
129
123
def_id : def_id. to_def_id ( ) ,
130
124
trait_item_def_id : impl_item_ref. trait_item_def_id ,
131
125
container : ty:: ImplContainer ( parent_def_id. to_def_id ( ) ) ,
0 commit comments