// 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.tcx.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.tcx.def_map.borrow().get(&ref_id).unwrap().full_def();
        match def {
            def::DefPrimTy(_) => None,
            _ => Some(def.def_id()),
        }
    }
fn lookup_type_ref ( & self , ref_id : NodeId ) -> Option < DefId > { if ! self . tcx . def_map . borrow ( ) . contains_key ( & ref_id ) { self . sess . bug ( & format ! ( " " ref_id ) ) ; } let def = self . tcx . def_map . borrow ( ) . get ( & ref_id ) . unwrap ( ) . full_def ( ) ; 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