@@ -41,21 +41,19 @@ struct Checker<'a, 'tcx: 'a> {
41
41
42
42
impl < ' a , ' tcx > Checker < ' a , ' tcx > {
43
43
fn check < F > ( & self , trait_def_id : Option < DefId > , mut f : F ) -> & Self
44
- where F : FnMut ( TyCtxt < ' a , ' tcx , ' tcx > , DefId , DefId )
44
+ where F : FnMut ( TyCtxt < ' a , ' tcx , ' tcx > , DefId )
45
45
{
46
46
if Some ( self . trait_def_id ) == trait_def_id {
47
47
for & impl_id in self . tcx . hir . trait_impls ( self . trait_def_id ) {
48
48
let impl_def_id = self . tcx . hir . local_def_id ( impl_id) ;
49
- f ( self . tcx , self . trait_def_id , impl_def_id) ;
49
+ f ( self . tcx , impl_def_id) ;
50
50
}
51
51
}
52
52
self
53
53
}
54
54
}
55
55
56
- fn visit_implementation_of_drop < ' a , ' tcx > ( tcx : TyCtxt < ' a , ' tcx , ' tcx > ,
57
- _drop_did : DefId ,
58
- impl_did : DefId ) {
56
+ fn visit_implementation_of_drop < ' a , ' tcx > ( tcx : TyCtxt < ' a , ' tcx , ' tcx > , impl_did : DefId ) {
59
57
match tcx. type_of ( impl_did) . sty {
60
58
ty:: TyAdt ( ..) => { }
61
59
_ => {
@@ -87,9 +85,7 @@ fn visit_implementation_of_drop<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
87
85
}
88
86
}
89
87
90
- fn visit_implementation_of_copy < ' a , ' tcx > ( tcx : TyCtxt < ' a , ' tcx , ' tcx > ,
91
- _copy_did : DefId ,
92
- impl_did : DefId ) {
88
+ fn visit_implementation_of_copy < ' a , ' tcx > ( tcx : TyCtxt < ' a , ' tcx , ' tcx > , impl_did : DefId ) {
93
89
debug ! ( "visit_implementation_of_copy: impl_did={:?}" , impl_did) ;
94
90
95
91
let impl_node_id = if let Some ( n) = tcx. hir . as_local_node_id ( impl_did) {
@@ -157,9 +153,7 @@ fn visit_implementation_of_copy<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
157
153
}
158
154
}
159
155
160
- fn visit_implementation_of_coerce_unsized < ' a , ' tcx > ( tcx : TyCtxt < ' a , ' tcx , ' tcx > ,
161
- _: DefId ,
162
- impl_did : DefId ) {
156
+ fn visit_implementation_of_coerce_unsized < ' a , ' tcx > ( tcx : TyCtxt < ' a , ' tcx , ' tcx > , impl_did : DefId ) {
163
157
debug ! ( "visit_implementation_of_coerce_unsized: impl_did={:?}" ,
164
158
impl_did) ;
165
159
0 commit comments