@@ -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 ( tcx, trait_ref. self_ty ( ) , false ) {
52
52
debug ! ( "insert_blindly: impl_def_id={:?} st={:?}" , impl_def_id, st) ;
@@ -60,7 +60,7 @@ impl ChildrenExt for Children {
60
60
/// Removes an impl from this set of children. Used when replacing
61
61
/// an impl with a parent. The impl must be present in the list of
62
62
/// children already.
63
- fn remove_existing ( & mut self , tcx : TyCtxt < ' tcx > , impl_def_id : DefId ) {
63
+ fn remove_existing ( & mut self , tcx : TyCtxt < ' _ > , impl_def_id : DefId ) {
64
64
let trait_ref = tcx. impl_trait_ref ( impl_def_id) . unwrap ( ) ;
65
65
let vec: & mut Vec < DefId > ;
66
66
if let Some ( st) = fast_reject:: simplify_type ( tcx, trait_ref. self_ty ( ) , false ) {
@@ -79,7 +79,7 @@ impl ChildrenExt for Children {
79
79
/// specialization relationships.
80
80
fn insert (
81
81
& mut self ,
82
- tcx : TyCtxt < ' tcx > ,
82
+ tcx : TyCtxt < ' _ > ,
83
83
impl_def_id : DefId ,
84
84
simplified_self : Option < SimplifiedType > ,
85
85
) -> Result < Inserted , OverlapError > {
@@ -261,12 +261,12 @@ pub trait GraphExt {
261
261
/// information about the area of overlap is returned in the `Err`.
262
262
fn insert (
263
263
& mut self ,
264
- tcx : TyCtxt < ' tcx > ,
264
+ tcx : TyCtxt < ' _ > ,
265
265
impl_def_id : DefId ,
266
266
) -> Result < Option < FutureCompatOverlapError > , OverlapError > ;
267
267
268
268
/// Insert cached metadata mapping from a child impl back to its parent.
269
- fn record_impl_from_cstore ( & mut self , tcx : TyCtxt < ' tcx > , parent : DefId , child : DefId ) ;
269
+ fn record_impl_from_cstore ( & mut self , tcx : TyCtxt < ' _ > , parent : DefId , child : DefId ) ;
270
270
}
271
271
272
272
impl GraphExt for Graph {
@@ -275,7 +275,7 @@ impl GraphExt for Graph {
275
275
/// information about the area of overlap is returned in the `Err`.
276
276
fn insert (
277
277
& mut self ,
278
- tcx : TyCtxt < ' tcx > ,
278
+ tcx : TyCtxt < ' _ > ,
279
279
impl_def_id : DefId ,
280
280
) -> Result < Option < FutureCompatOverlapError > , OverlapError > {
281
281
assert ! ( impl_def_id. is_local( ) ) ;
@@ -370,7 +370,7 @@ impl GraphExt for Graph {
370
370
}
371
371
372
372
/// Insert cached metadata mapping from a child impl back to its parent.
373
- fn record_impl_from_cstore ( & mut self , tcx : TyCtxt < ' tcx > , parent : DefId , child : DefId ) {
373
+ fn record_impl_from_cstore ( & mut self , tcx : TyCtxt < ' _ > , parent : DefId , child : DefId ) {
374
374
if self . parent . insert ( child, parent) . is_some ( ) {
375
375
bug ! (
376
376
"When recording an impl from the crate store, information about its parent \
0 commit comments