pub fn record_remote_impl(&self, tcx: TyCtxt<'a, 'gcx, 'tcx>,
                              impl_def_id: DefId,
                              impl_trait_ref: TraitRef<'tcx>,
                              parent_impl: DefId) {
        assert!(!impl_def_id.is_local());

        // if the impl has not previously been recorded
        if self.record_impl(tcx, impl_def_id, impl_trait_ref) {
            // if the impl is non-local, it's placed directly into the
            // specialization graph using parent information drawn from metadata.
            self.specialization_graph.borrow_mut()
                .record_impl_from_cstore(tcx, parent_impl, impl_def_id)
        }
    }
/// Records a trait-to-implementation mapping for a non-local impl.
///
/// The `parent_impl` is the immediately-less-specialized impl, or the
/// trait's def ID if the impl is not a specialization -- information that
/// should be pulled from the metadata.
Records a trait-to-implementation mapping for a non-local impl.
The `parent_impl` is the immediately-less-specialized impl, or the
trait's def ID if the impl is not a specialization -- information that
should be pulled from the metadata.
Records a trait - to - implementation mapping for a non - local impl . The ` parent_impl ` is the immediately - less - specialized impl or the trait ' s def ID if the impl is not a specialization -- information that should be pulled from the metadata .
pub fn record_remote_impl(&self, tcx: TyCtxt<'a, 'gcx, 'tcx>,
                              impl_def_id: DefId,
                              impl_trait_ref: TraitRef<'tcx>,
                              parent_impl: DefId) {
        assert!(!impl_def_id.is_local());
        // if the impl has not previously been recorded
        if self.record_impl(tcx, impl_def_id, impl_trait_ref) {
            // if the impl is non-local, it's placed directly into the
            // specialization graph using parent information drawn from metadata.
            self.specialization_graph.borrow_mut()
                .record_impl_from_cstore(tcx, parent_impl, impl_def_id)
        }
    }
pub fn record_remote_impl ( & self , tcx : TyCtxt < ' a , ' gcx , ' tcx > , impl_def_id : DefId , impl_trait_ref : TraitRef < ' tcx > , parent_impl : DefId ) { assert ! ( impl_def_id is_local ( ) ) ; // if the impl has not previously been recorded if self . record_impl ( tcx , impl_def_id , impl_trait_ref ) { // if the impl is non-local, it's placed directly into the // specialization graph using parent information drawn from metadata. self . specialization_graph . borrow_mut ( ) . record_impl_from_cstore ( tcx , parent_impl , impl_def_id ) } }
Records a trait-to-implementation mapping for a non-local impl.
Records a trait - to - implementation mapping for a non - local impl .
&self
tcx
TyCtxt<'a, 'gcx, 'tcx>
impl_def_id
DefId
impl_trait_ref
TraitRef<'tcx>
parent_impl
DefId
&self
tcx
TyCtxt<'a, 'gcx, 'tcx>
impl_def_id
DefId
impl_trait_ref
TraitRef<'tcx>
parent_impl
DefId