pub fn populate_implementations_for_primitive_if_necessary(&self,
                                                               primitive_def_id: DefId) {
        if primitive_def_id.is_local() {
            return
        }

        if self.populated_external_primitive_impls.borrow().contains(&primitive_def_id) {
            return
        }

        debug!("populate_implementations_for_primitive_if_necessary: searching for {:?}",
               primitive_def_id);

        let impl_items = csearch::get_impl_items(&self.sess.cstore, primitive_def_id);

        // Store the implementation info.
        self.impl_items.borrow_mut().insert(primitive_def_id, impl_items);
        self.populated_external_primitive_impls.borrow_mut().insert(primitive_def_id);
    }
/// Load primitive inherent implementations if necessary
Load primitive inherent implementations if necessary
Load primitive inherent implementations if necessary
pub fn populate_implementations_for_primitive_if_necessary(&self,
                                                               primitive_def_id: DefId) {
        if primitive_def_id.is_local() {
            return
        }
        if self.populated_external_primitive_impls.borrow().contains(&primitive_def_id) {
            return
        }
        debug!("populate_implementations_for_primitive_if_necessary: searching for {:?}",
               primitive_def_id);
        let impl_items = csearch::get_impl_items(&self.sess.cstore, primitive_def_id);
        // Store the implementation info.
        self.impl_items.borrow_mut().insert(primitive_def_id, impl_items);
        self.populated_external_primitive_impls.borrow_mut().insert(primitive_def_id);
    }
pub fn populate_implementations_for_primitive_if_necessary ( & self , primitive_def_id : DefId ) { if primitive_def_id . is_local ( ) { return } if self . populated_external_primitive_impls . borrow ( ) . contains ( & primitive_def_id ) { return } debug ! ( " " primitive_def_id ) ; let impl_items = csearch :: get_impl_items ( & self . sess . cstore , primitive_def_id ) ; // Store the implementation info. self . impl_items . borrow_mut ( ) . insert ( primitive_def_id , impl_items ) ; self . populated_external_primitive_impls . borrow_mut ( ) . insert ( primitive_def_id ) ; }
Load primitive inherent implementations if necessary
Load primitive inherent implementations if necessary
&self
primitive_def_id
DefId
&self
primitive_def_id
DefId