@@ -32,7 +32,7 @@ enum Inserted {
32
32
ShouldRecurseOn ( DefId ) ,
33
33
}
34
34
35
- trait ChildrenExt {
35
+ trait ChildrenExt < ' tcx > {
36
36
fn insert_blindly ( & mut self , tcx : TyCtxt < ' tcx > , impl_def_id : DefId ) ;
37
37
fn remove_existing ( & mut self , tcx : TyCtxt < ' tcx > , impl_def_id : DefId ) ;
38
38
@@ -44,9 +44,9 @@ trait ChildrenExt {
44
44
) -> Result < Inserted , OverlapError > ;
45
45
}
46
46
47
- impl ChildrenExt for Children {
47
+ impl ChildrenExt < ' _ > for Children {
48
48
/// Insert an impl into this set of children without comparing to any existing impls.
49
- fn insert_blindly ( & mut self , tcx : TyCtxt < ' tcx > , impl_def_id : DefId ) {
49
+ fn insert_blindly ( & mut self , tcx : TyCtxt < ' _ > , impl_def_id : DefId ) {
50
50
let trait_ref = tcx. impl_trait_ref ( impl_def_id) . unwrap ( ) ;
51
51
if let Some ( st) = fast_reject:: simplify_type (
52
52
tcx,
@@ -65,7 +65,7 @@ impl ChildrenExt for Children {
65
65
/// Removes an impl from this set of children. Used when replacing
66
66
/// an impl with a parent. The impl must be present in the list of
67
67
/// children already.
68
- fn remove_existing ( & mut self , tcx : TyCtxt < ' tcx > , impl_def_id : DefId ) {
68
+ fn remove_existing ( & mut self , tcx : TyCtxt < ' _ > , impl_def_id : DefId ) {
69
69
let trait_ref = tcx. impl_trait_ref ( impl_def_id) . unwrap ( ) ;
70
70
let vec: & mut Vec < DefId > ;
71
71
if let Some ( st) = fast_reject:: simplify_type (
@@ -89,7 +89,7 @@ impl ChildrenExt for Children {
89
89
/// specialization relationships.
90
90
fn insert (
91
91
& mut self ,
92
- tcx : TyCtxt < ' tcx > ,
92
+ tcx : TyCtxt < ' _ > ,
93
93
impl_def_id : DefId ,
94
94
simplified_self : Option < SimplifiedType > ,
95
95
) -> Result < Inserted , OverlapError > {
@@ -271,12 +271,12 @@ pub trait GraphExt {
271
271
/// information about the area of overlap is returned in the `Err`.
272
272
fn insert (
273
273
& mut self ,
274
- tcx : TyCtxt < ' tcx > ,
274
+ tcx : TyCtxt < ' _ > ,
275
275
impl_def_id : DefId ,
276
276
) -> Result < Option < FutureCompatOverlapError > , OverlapError > ;
277
277
278
278
/// Insert cached metadata mapping from a child impl back to its parent.
279
- fn record_impl_from_cstore ( & mut self , tcx : TyCtxt < ' tcx > , parent : DefId , child : DefId ) ;
279
+ fn record_impl_from_cstore ( & mut self , tcx : TyCtxt < ' _ > , parent : DefId , child : DefId ) ;
280
280
}
281
281
282
282
impl GraphExt for Graph {
@@ -285,7 +285,7 @@ impl GraphExt for Graph {
285
285
/// information about the area of overlap is returned in the `Err`.
286
286
fn insert (
287
287
& mut self ,
288
- tcx : TyCtxt < ' tcx > ,
288
+ tcx : TyCtxt < ' _ > ,
289
289
impl_def_id : DefId ,
290
290
) -> Result < Option < FutureCompatOverlapError > , OverlapError > {
291
291
assert ! ( impl_def_id. is_local( ) ) ;
@@ -385,7 +385,7 @@ impl GraphExt for Graph {
385
385
}
386
386
387
387
/// Insert cached metadata mapping from a child impl back to its parent.
388
- fn record_impl_from_cstore ( & mut self , tcx : TyCtxt < ' tcx > , parent : DefId , child : DefId ) {
388
+ fn record_impl_from_cstore ( & mut self , tcx : TyCtxt < ' _ > , parent : DefId , child : DefId ) {
389
389
if self . parent . insert ( child, parent) . is_some ( ) {
390
390
bug ! (
391
391
"When recording an impl from the crate store, information about its parent \
0 commit comments