pub fn lookup_field_type(tcx: ctxt,
                         struct_id: DefId,
                         id: DefId,
                         substs: &substs)
                      -> ty::t {
    let t = if id.crate == ast::LOCAL_CRATE {
        node_id_to_type(tcx, id.node)
    }
    else {
        match tcx.tcache.find(&id) {
           Some(&ty_param_bounds_and_ty {ty, _}) => ty,
           None => {
               let tpt = csearch::get_field_type(tcx, struct_id, id);
               tcx.tcache.insert(id, tpt);
               tpt.ty
           }
        }
    };
    subst(tcx, substs, t)
}
// Look up a field ID, whether or not it's local
// Takes a list of type substs in case the struct is generic
Look up a field ID, whether or not it's local
Takes a list of type substs in case the struct is generic
Look up a field ID whether or not it ' s local Takes a list of type substs in case the struct is generic
pub fn lookup_field_type(tcx: ctxt,
                         struct_id: DefId,
                         id: DefId,
                         substs: &substs)
                      -> ty::t {
    let t = if id.crate == ast::LOCAL_CRATE {
        node_id_to_type(tcx, id.node)
    }
    else {
        match tcx.tcache.find(&id) {
           Some(&ty_param_bounds_and_ty {ty, _}) => ty,
           None => {
               let tpt = csearch::get_field_type(tcx, struct_id, id);
               tcx.tcache.insert(id, tpt);
               tpt.ty
           }
        }
    };
    subst(tcx, substs, t)
}
pub fn lookup_field_type ( tcx : ctxt , struct_id : DefId , id : DefId , substs : & substs ) -> ty :: t { let t = if id . crate == ast :: LOCAL_CRATE { node_id_to_type ( tcx , id . node ) } else { match tcx . tcache . find ( & id ) { Some ( & ty_param_bounds_and_ty { ty , _ } ) => ty , None => { let tpt = csearch :: get_field_type ( tcx , struct_id , id ) ; tcx . tcache . insert ( id , tpt ) ; tpt . ty } } } ; subst ( tcx , substs , t ) }
Look up a field ID, whether or not it's local
Takes a list of type substs in case the struct is generic
Look up a field ID whether or not it ' s local Takes a list of type substs in case the struct is generic
tcx
ctxt
struct_id
DefId
id
DefId
substs
&substs
tcx
ctxt
struct_id
DefId
id
DefId
substs
&substs