pub fn lookup<'tcx>(tcx: &ty::ctxt<'tcx>, id: DefId) -> Option<&'tcx Stability> {
    if let Some(st) = tcx.stability.borrow().map.get(&id) {
        return *st;
    }

    let st = lookup_uncached(tcx, id);
    tcx.stability.borrow_mut().map.insert(id, st);
    st
}
/// Lookup the stability for a node, loading external crate
/// metadata as necessary.
Lookup the stability for a node, loading external crate
metadata as necessary.
Lookup the stability for a node loading external crate metadata as necessary .
pub fn lookup<'tcx>(tcx: &ty::ctxt<'tcx>, id: DefId) -> Option<&'tcx Stability> {
    if let Some(st) = tcx.stability.borrow().map.get(&id) {
        return *st;
    }
    let st = lookup_uncached(tcx, id);
    tcx.stability.borrow_mut().map.insert(id, st);
    st
}
pub fn lookup < ' tcx > ( tcx : & ty :: ctxt < ' tcx > , id : DefId ) -> Option < & ' tcx Stability > { if let Some ( st ) = tcx . stability . borrow ( ) . map . get ( & id ) { return * st ; } let st = lookup_uncached ( tcx , id ) ; tcx . stability . borrow_mut ( ) . map . insert ( id , st ) ; st }
Lookup the stability for a node, loading external crate
metadata as necessary.
Lookup the stability for a node loading external crate metadata as necessary .
tcx
&ty::ctxt<'tcx>
id
DefId
tcx
&ty::ctxt<'tcx>
id
DefId