// 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> {
        match self.tcx.expect_def(ref_id) {
            Def::PrimTy(..) => None,
            Def::SelfTy(..) => None,
            def => Some(def.def_id()),
        }
    }
fn lookup_type_ref ( & self , ref_id : NodeId ) -> Option < DefId > { match self . tcx . expect_def ( ref_id ) { Def :: PrimTy ( .. ) => None , Def :: SelfTy ( .. ) => None , def => Some ( def . def_id ( ) ) , } }
looks up anything, not just a type
looks up anything not just a type
&self
ref_id
NodeId