Struct rustc_lint::metadata::encoder::EncodeContextUnstable [-] [+] [src]

pub struct EncodeContext<'a, 'tcx> where 'tcx: 'a {
    pub diag: &'a SpanHandler,
    pub tcx: &'a ctxt<'tcx>,
    pub reexports: &'a HashMap<u32, Vec<Export>, DefaultState<FnvHasher>>,
    pub item_symbols: &'a RefCell<HashMap<u32, String, DefaultState<FnvHasher>>>,
    pub link_meta: &'a LinkMeta,
    pub cstore: &'a CStore,
    pub encode_inlined_item: RefCell<Box<FnMut(&EncodeContext, &mut Encoder, InlinedItemRef) + 'a>>,
    pub type_abbrevs: RefCell<HashMap<&'tcx TyS<'tcx>, ty_abbrev, DefaultState<FnvHasher>>>,
    pub reachable: &'a HashSet<u32, DefaultState<FnvHasher>>,
}

Fields

diag
tcx
reexports
item_symbols
cstore
encode_inlined_item
type_abbrevs
reachable

Trait Implementations

impl<'a, 'tcx> get_ty_str_ctxt<'tcx> for EncodeContext<'a, 'tcx>

fn ty_str_ctxt(&'b self) -> ctxt<'b, 'tcx>