fn activate(cx: &mut Context,
            registry: &mut Registry,
            parent: Rc<Summary>,
            method: &Method)
            -> CargoResult<Option<DepsFrame>> {
    // Dependency graphs are required to be a DAG, so we keep a set of
    // packages we're visiting and bail if we hit a dupe.
    let id = parent.package_id().clone();
    if !cx.visited.insert(id.clone()) {
        bail!("cyclic package dependency: package `{}` depends on itself", id)
    }

    // If we're already activated, then that was easy!
    if cx.flag_activated(&parent, method) {
        cx.visited.remove(&id);
        return Ok(None);
    }
    trace!("activating {}", parent.package_id());

    let deps = try!(cx.build_deps(registry, &parent, method));

    Ok(Some(DepsFrame{
        parent: parent,
        remaining_siblings: RcVecIter::new(deps),
        id: id,
    }))
}
/// Attempts to activate the summary `parent` in the context `cx`.
///
/// This function will pull dependency summaries from the registry provided, and
/// the dependencies of the package will be determined by the `method` provided.
/// If `parent` was activated, this function returns the dependency frame to
/// iterate through next.
Attempts to activate the summary `parent` in the context `cx`.
This function will pull dependency summaries from the registry provided, and
the dependencies of the package will be determined by the `method` provided.
If `parent` was activated, this function returns the dependency frame to
iterate through next.
Attempts to activate the summary ` parent ` in the context ` cx ` . This function will pull dependency summaries from the registry provided and the dependencies of the package will be determined by the ` method ` provided . If ` parent ` was activated this function returns the dependency frame to iterate through next .
fn activate(cx: &mut Context,
            registry: &mut Registry,
            parent: Rc<Summary>,
            method: &Method)
            -> CargoResult<Option<DepsFrame>> {
    // Dependency graphs are required to be a DAG, so we keep a set of
    // packages we're visiting and bail if we hit a dupe.
    let id = parent.package_id().clone();
    if !cx.visited.insert(id.clone()) {
        bail!("cyclic package dependency: package `{}` depends on itself", id)
    }
    // If we're already activated, then that was easy!
    if cx.flag_activated(&parent, method) {
        cx.visited.remove(&id);
        return Ok(None);
    }
    trace!("activating {}", parent.package_id());
    let deps = try!(cx.build_deps(registry, &parent, method));
    Ok(Some(DepsFrame{
        parent: parent,
        remaining_siblings: RcVecIter::new(deps),
        id: id,
    }))
}
fn activate ( cx : & mut Context , registry : & mut Registry , parent : Rc < Summary > , method : & Method ) -> CargoResult < Option < DepsFrame > > { // Dependency graphs are required to be a DAG, so we keep a set of // packages we're visiting and bail if we hit a dupe. let id = parent . package_id ( ) . clone ( ) ; if ! cx . visited . insert ( id . clone ( ) ) { bail ! ( " " id ) } // If we're already activated, then that was easy! if cx . flag_activated ( & parent , method ) { cx . visited . remove ( & id ) ; return Ok ( None ) ; } trace ! ( " " parent package_id ( ) ) ; let deps = try ! ( cx build_deps ( registry parent method ) ) ; Ok ( Some ( DepsFrame { parent : parent , remaining_siblings : RcVecIter :: new ( deps ) , id : id , } ) ) }
Attempts to activate the summary `parent` in the context `cx`.
Attempts to activate the summary ` parent ` in the context ` cx ` .
cx
&mut Context
registry
&mut Registry
parent
Rc<Summary>
method
&Method
cx
&mut Context
registry
&mut Registry
parent
Rc<Summary>
method
&Method