use syntax::parse::source_file_to_stream;
use syntax::symbol::Symbol;
use syntax_pos::{Span, NO_EXPANSION, FileName};
-use rustc_data_structures::indexed_set::IdxSet;
+use rustc_data_structures::bit_set::BitSet;
use rustc::hir;
macro_rules! provide {
mir
}
mir_const_qualif => {
- (cdata.mir_const_qualif(def_id.index), Lrc::new(IdxSet::new_empty(0)))
+ (cdata.mir_const_qualif(def_id.index), Lrc::new(BitSet::new_empty(0)))
}
fn_sig => { cdata.fn_sig(def_id.index, tcx) }
inherent_impls => { Lrc::new(cdata.get_inherent_implementations_for_type(def_id.index)) }
let cnum = cdata.cnum;
assert!(cnum != LOCAL_CRATE);
- // If this crate is a custom derive crate, then we're not even going to
- // link those in so we skip those crates.
- if cdata.root.macro_derive_registrar.is_some() {
- return Arc::new(Vec::new())
- }
-
Arc::new(cdata.exported_symbols(tcx))
}
}