@@ -28,6 +28,7 @@ use std::collections::BTreeMap;
2828use std:: ops:: Deref ;
2929use std:: rc:: Rc ;
3030use syntax_pos:: { Span , DUMMY_SP } ;
31+ use syntax:: attr;
3132use syntax:: symbol:: Symbol ;
3233
3334trait Key {
@@ -292,6 +293,19 @@ impl<'tcx> QueryDescription for queries::def_span<'tcx> {
292293 }
293294}
294295
296+
297+ impl < ' tcx > QueryDescription for queries:: stability < ' tcx > {
298+ fn describe ( _: TyCtxt , _: DefId ) -> String {
299+ bug ! ( "stability" )
300+ }
301+ }
302+
303+ impl < ' tcx > QueryDescription for queries:: deprecation < ' tcx > {
304+ fn describe ( _: TyCtxt , _: DefId ) -> String {
305+ bug ! ( "deprecation" )
306+ }
307+ }
308+
295309impl < ' tcx > QueryDescription for queries:: item_body_nested_bodies < ' tcx > {
296310 fn describe ( tcx : TyCtxt , def_id : DefId ) -> String {
297311 format ! ( "nested item bodies of `{}`" , tcx. item_path_str( def_id) )
@@ -599,7 +613,8 @@ define_maps! { <'tcx>
599613
600614 [ ] describe_def: DescribeDef ( DefId ) -> Option <Def >,
601615 [ ] def_span: DefSpan ( DefId ) -> Span ,
602-
616+ [ ] stability: Stability ( DefId ) -> Option <attr:: Stability >,
617+ [ ] deprecation: Deprecation ( DefId ) -> Option <attr:: Deprecation >,
603618 [ ] item_body_nested_bodies: metadata_dep_node( DefId ) -> Rc <BTreeMap <hir:: BodyId , hir:: Body >>,
604619 [ ] const_is_rvalue_promotable_to_static: metadata_dep_node( DefId ) -> bool ,
605620 [ ] is_item_mir_available: metadata_dep_node( DefId ) -> bool ,
0 commit comments