fn resolve_with_registry<'cfg>(
    ws: &Workspace<'cfg>,
    registry: &mut PackageRegistry<'cfg>,
    max_rust_version: Option<&RustVersion>
) -> CargoResult<Resolve>