pub fn populate_inherent_implementations_for_type_if_necessary(self,
                                                                   type_id: DefId) {
        if type_id.is_local() {
            return
        }

        // The type is not local, hence we are reading this out of
        // metadata and don't need to track edges.
        let _ignore = self.dep_graph.in_ignore();

        if self.populated_external_types.borrow().contains(&type_id) {
            return
        }

        debug!("populate_inherent_implementations_for_type_if_necessary: searching for {:?}",
               type_id);

        let inherent_impls = self.sess.cstore.inherent_implementations_for_type(type_id);

        self.inherent_impls.borrow_mut().insert(type_id, inherent_impls);
        self.populated_external_types.borrow_mut().insert(type_id);
    }
/// Populates the type context with all the inherent implementations for
/// the given type if necessary.
Populates the type context with all the inherent implementations for
the given type if necessary.
Populates the type context with all the inherent implementations for the given type if necessary .
pub fn populate_inherent_implementations_for_type_if_necessary(self,
                                                                   type_id: DefId) {
        if type_id.is_local() {
            return
        }
        // The type is not local, hence we are reading this out of
        // metadata and don't need to track edges.
        let _ignore = self.dep_graph.in_ignore();
        if self.populated_external_types.borrow().contains(&type_id) {
            return
        }
        debug!("populate_inherent_implementations_for_type_if_necessary: searching for {:?}",
               type_id);
        let inherent_impls = self.sess.cstore.inherent_implementations_for_type(type_id);
        self.inherent_impls.borrow_mut().insert(type_id, inherent_impls);
        self.populated_external_types.borrow_mut().insert(type_id);
    }
pub fn populate_inherent_implementations_for_type_if_necessary ( self , type_id : DefId ) { if type_id . is_local ( ) { return } // The type is not local, hence we are reading this out of // metadata and don't need to track edges. let _ignore = self . dep_graph . in_ignore ( ) ; if self . populated_external_types . borrow ( ) . contains ( & type_id ) { return } debug ! ( " " type_id ) ; let inherent_impls = self . sess . cstore . inherent_implementations_for_type ( type_id ) ; self . inherent_impls . borrow_mut ( ) . insert ( type_id , inherent_impls ) ; self . populated_external_types . borrow_mut ( ) . insert ( type_id ) ; }
Populates the type context with all the inherent implementations for
the given type if necessary.
Populates the type context with all the inherent implementations for the given type if necessary .
self
type_id
DefId