use rustc_metadata::cstore::CStore;
use rustc_target::spec::TargetTriple;
-use syntax::ast::NodeId;
+use syntax::ast::{Name, NodeId};
use syntax::codemap;
use syntax::edition::Edition;
use syntax::feature_gate::UnstableFeatures;
pub fake_def_ids: RefCell<FxHashMap<CrateNum, DefId>>,
pub all_fake_def_ids: RefCell<FxHashSet<DefId>>,
/// Maps (type_id, trait_id) -> auto trait impl
- pub generated_synthetics: RefCell<FxHashSet<(DefId, DefId)>>
+ pub generated_synthetics: RefCell<FxHashSet<(DefId, DefId)>>,
+ pub current_item_name: RefCell<Option<Name>>,
}
impl<'a, 'tcx, 'rcx> DocContext<'a, 'tcx, 'rcx> {
errors::HandlerFlags {
can_emit_warnings: true,
treat_err_as_bug: false,
+ report_delayed_bugs: false,
external_macro_backtrace: false,
..Default::default()
},
fake_def_ids: RefCell::new(FxHashMap()),
all_fake_def_ids: RefCell::new(FxHashSet()),
generated_synthetics: RefCell::new(FxHashSet()),
+ current_item_name: RefCell::new(None),
};
debug!("crate: {:?}", tcx.hir.krate());