@@ -17,9 +17,8 @@ use hir::svh::Svh;
17
17
use infer:: canonical:: { self , Canonical } ;
18
18
use lint;
19
19
use middle:: borrowck:: BorrowCheckResult ;
20
- use middle:: cstore:: { ExternCrate , LinkagePreference , NativeLibrary ,
21
- ExternBodyNestedBodies , ForeignModule } ;
22
- use middle:: cstore:: { NativeLibraryKind , DepKind , CrateSource , ExternConstBody } ;
20
+ use middle:: cstore:: { ExternCrate , LinkagePreference , NativeLibrary , ForeignModule } ;
21
+ use middle:: cstore:: { NativeLibraryKind , DepKind , CrateSource } ;
23
22
use middle:: privacy:: AccessLevels ;
24
23
use middle:: reachable:: ReachableSet ;
25
24
use middle:: region;
@@ -254,9 +253,11 @@ define_maps! { <'tcx>
254
253
[ ] fn item_attrs: ItemAttrs ( DefId ) -> Lrc <[ ast:: Attribute ] >,
255
254
[ ] fn trans_fn_attrs: trans_fn_attrs( DefId ) -> TransFnAttrs ,
256
255
[ ] fn fn_arg_names: FnArgNames ( DefId ) -> Vec <ast:: Name >,
256
+ /// Gets the rendered value of the specified constant or associated constant.
257
+ /// Used by rustdoc.
258
+ [ ] fn rendered_const: RenderedConst ( DefId ) -> String ,
257
259
[ ] fn impl_parent: ImplParent ( DefId ) -> Option <DefId >,
258
260
[ ] fn trait_of_item: TraitOfItem ( DefId ) -> Option <DefId >,
259
- [ ] fn item_body_nested_bodies: ItemBodyNestedBodies ( DefId ) -> ExternBodyNestedBodies ,
260
261
[ ] fn const_is_rvalue_promotable_to_static: ConstIsRvaluePromotableToStatic ( DefId ) -> bool ,
261
262
[ ] fn rvalue_promotable_map: RvaluePromotableMap ( DefId ) -> Lrc <ItemLocalSet >,
262
263
[ ] fn is_mir_available: IsMirAvailable ( DefId ) -> bool ,
@@ -376,7 +377,6 @@ define_maps! { <'tcx>
376
377
[ ] fn get_lang_items: get_lang_items_node( CrateNum ) -> Lrc <LanguageItems >,
377
378
[ ] fn defined_lang_items: DefinedLangItems ( CrateNum ) -> Lrc <Vec <( DefId , usize ) >>,
378
379
[ ] fn missing_lang_items: MissingLangItems ( CrateNum ) -> Lrc <Vec <LangItem >>,
379
- [ ] fn extern_const_body: ExternConstBody ( DefId ) -> ExternConstBody <' tcx>,
380
380
[ ] fn visible_parent_map: visible_parent_map_node( CrateNum )
381
381
-> Lrc <DefIdMap <DefId >>,
382
382
[ ] fn missing_extern_crate_item: MissingExternCrateItem ( CrateNum ) -> bool ,
0 commit comments