fn lookup_type_ref(&self, ref_id: NodeId) -> Option<DefId> {
        if !self.analysis.ty_cx.def_map.borrow().contains_key(&ref_id) {
            self.sess.bug(&format!("def_map has no key for {} in lookup_type_ref",
                                  ref_id)[]);
        }
        let def = (*self.analysis.ty_cx.def_map.borrow())[ref_id];
        match def {
            def::DefPrimTy(_) => None,
            _ => Some(def.def_id()),
        }
    }
// looks up anything, not just a type
looks up anything, not just a type
looks up anything not just a type
fn lookup_type_ref(&self, ref_id: NodeId) -> Option<DefId> {
        if !self.analysis.ty_cx.def_map.borrow().contains_key(&ref_id) {
            self.sess.bug(&format!("def_map has no key for {} in lookup_type_ref",
                                  ref_id)[]);
        }
        let def = (*self.analysis.ty_cx.def_map.borrow())[ref_id];
        match def {
            def::DefPrimTy(_) => None,
            _ => Some(def.def_id()),
        }
    }
fn lookup_type_ref ( & self , ref_id : NodeId ) -> Option < DefId > { if ! self . analysis . ty_cx . def_map . borrow ( ) . contains_key ( & ref_id ) { self . sess . bug ( & format ! ( " " ref_id ) [ ] ) ; } let def = ( * self . analysis . ty_cx . def_map . borrow ( ) ) [ ref_id ] ; match def { def :: DefPrimTy ( _ ) => None , _ => Some ( def . def_id ( ) ) , } }
looks up anything, not just a type
looks up anything not just a type
&self
ref_id
NodeId
&self
ref_id
NodeId