@@ -28,6 +28,7 @@ use hir::map as hir_map;
28
28
use hir:: map:: definitions:: { Definitions , DefKey , DisambiguatedDefPathData } ;
29
29
use hir:: svh:: Svh ;
30
30
use middle:: lang_items;
31
+ use middle:: resolve_lifetime:: ObjectLifetimeDefault ;
31
32
use ty:: { self , Ty , TyCtxt } ;
32
33
use mir:: Mir ;
33
34
use session:: Session ;
@@ -183,6 +184,8 @@ pub trait CrateStore<'tcx> {
183
184
fn item_generics < ' a > ( & self , tcx : TyCtxt < ' a , ' tcx , ' tcx > , def : DefId )
184
185
-> ty:: Generics < ' tcx > ;
185
186
fn item_generics_own_param_counts ( & self , def : DefId ) -> ( usize , usize ) ;
187
+ fn item_generics_object_lifetime_defaults ( & self , def : DefId )
188
+ -> Vec < ObjectLifetimeDefault > ;
186
189
fn item_attrs ( & self , def_id : DefId ) -> Vec < ast:: Attribute > ;
187
190
fn trait_def < ' a > ( & self , tcx : TyCtxt < ' a , ' tcx , ' tcx > , def : DefId ) -> ty:: TraitDef ;
188
191
fn adt_def < ' a > ( & self , tcx : TyCtxt < ' a , ' tcx , ' tcx > , def : DefId ) -> & ' tcx ty:: AdtDef ;
@@ -334,6 +337,9 @@ impl<'tcx> CrateStore<'tcx> for DummyCrateStore {
334
337
-> ty:: Generics < ' tcx > { bug ! ( "item_generics" ) }
335
338
fn item_generics_own_param_counts ( & self , def : DefId ) -> ( usize , usize )
336
339
{ bug ! ( "item_generics_own_param_counts" ) }
340
+ fn item_generics_object_lifetime_defaults ( & self , def : DefId )
341
+ -> Vec < ObjectLifetimeDefault >
342
+ { bug ! ( "item_generics_object_lifetime_defaults" ) }
337
343
fn item_attrs ( & self , def_id : DefId ) -> Vec < ast:: Attribute > { bug ! ( "item_attrs" ) }
338
344
fn trait_def < ' a > ( & self , tcx : TyCtxt < ' a , ' tcx , ' tcx > , def : DefId ) -> ty:: TraitDef
339
345
{ bug ! ( "trait_def" ) }
0 commit comments