@@ -200,6 +200,7 @@ pub trait CrateStore<'tcx> {
200200 -> Option < DefIndex > ;
201201 fn def_key ( & self , def : DefId ) -> hir_map:: DefKey ;
202202 fn relative_def_path ( & self , def : DefId ) -> Option < hir_map:: DefPath > ;
203+ fn variant_kind ( & self , def_id : DefId ) -> Option < ty:: VariantKind > ;
203204 fn struct_ctor_def_id ( & self , struct_def_id : DefId ) -> Option < DefId > ;
204205 fn struct_field_names ( & self , def : DefId ) -> Vec < ast:: Name > ;
205206 fn item_children ( & self , did : DefId ) -> Vec < def:: Export > ;
@@ -283,7 +284,7 @@ impl<'tcx> CrateStore<'tcx> for DummyCrateStore {
283284 fn stability ( & self , def : DefId ) -> Option < attr:: Stability > { bug ! ( "stability" ) }
284285 fn deprecation ( & self , def : DefId ) -> Option < attr:: Deprecation > { bug ! ( "deprecation" ) }
285286 fn visibility ( & self , def : DefId ) -> ty:: Visibility { bug ! ( "visibility" ) }
286- fn closure_kind ( & self , def_id : DefId ) -> ty:: ClosureKind { bug ! ( "closure_kind" ) }
287+ fn closure_kind ( & self , def_id : DefId ) -> ty:: ClosureKind { bug ! ( "closure_kind" ) }
287288 fn closure_ty < ' a > ( & self , tcx : TyCtxt < ' a , ' tcx , ' tcx > , def_id : DefId )
288289 -> ty:: ClosureTy < ' tcx > { bug ! ( "closure_ty" ) }
289290 fn item_variances ( & self , def : DefId ) -> Vec < ty:: Variance > { bug ! ( "item_variances" ) }
@@ -376,6 +377,7 @@ impl<'tcx> CrateStore<'tcx> for DummyCrateStore {
376377 fn relative_def_path ( & self , def : DefId ) -> Option < hir_map:: DefPath > {
377378 bug ! ( "relative_def_path" )
378379 }
380+ fn variant_kind ( & self , def_id : DefId ) -> Option < ty:: VariantKind > { bug ! ( "variant_kind" ) }
379381 fn struct_ctor_def_id ( & self , struct_def_id : DefId ) -> Option < DefId >
380382 { bug ! ( "struct_ctor_def_id" ) }
381383 fn struct_field_names ( & self , def : DefId ) -> Vec < ast:: Name > { bug ! ( "struct_field_names" ) }
0 commit comments