[INFO] fetching crate optimal-transport 0.2.0... [INFO] checking optimal-transport-0.2.0 against master#350d0ef0ec0493e6d21cfb265cb8211a0e74d766 for pr-145342-1 [INFO] extracting crate optimal-transport 0.2.0 into /workspace/builds/worker-7-tc1/source [INFO] started tweaking crates.io crate optimal-transport 0.2.0 [INFO] finished tweaking crates.io crate optimal-transport 0.2.0 [INFO] tweaked toml for crates.io crate optimal-transport 0.2.0 written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate optimal-transport 0.2.0 on toolchain 350d0ef0ec0493e6d21cfb265cb8211a0e74d766 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 48 packages to latest compatible versions [INFO] [stderr] Adding float-ord v0.2.0 (available: v0.3.2) [INFO] [stderr] Adding indoc-impl v0.3.6 (available: v0.3.7) [INFO] [stderr] Adding ndarray v0.13.1 (available: v0.16.1) [INFO] [stderr] Adding numpy v0.11.0 (available: v0.25.0) [INFO] [stderr] Adding pyo3 v0.11.1 (available: v0.25.1) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded pyo3cls v0.11.1 [INFO] [stderr] Downloaded pyo3-derive-backend v0.11.1 [INFO] [stderr] Downloaded numpy v0.11.0 [INFO] [stderr] Downloaded pyo3 v0.11.1 [INFO] [stderr] Downloaded mcmf v2.0.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 915eb6f815ecffe8ebb2852f232499c1a1b765e0029e3c42c9991d9c5c7fb983 [INFO] running `Command { std: "docker" "start" "-a" "915eb6f815ecffe8ebb2852f232499c1a1b765e0029e3c42c9991d9c5c7fb983", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "915eb6f815ecffe8ebb2852f232499c1a1b765e0029e3c42c9991d9c5c7fb983", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "915eb6f815ecffe8ebb2852f232499c1a1b765e0029e3c42c9991d9c5c7fb983", kill_on_drop: false }` [INFO] [stdout] 915eb6f815ecffe8ebb2852f232499c1a1b765e0029e3c42c9991d9c5c7fb983 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 72f81efb21395a9963220def7960a613981209f3adcd06525b85274fc18b23ba [INFO] running `Command { std: "docker" "start" "-a" "72f81efb21395a9963220def7960a613981209f3adcd06525b85274fc18b23ba", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.5.0 [INFO] [stderr] Compiling proc-macro2 v1.0.101 [INFO] [stderr] Compiling unicode-ident v1.0.18 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling proc-macro-hack v0.5.20+deprecated [INFO] [stderr] Compiling libc v0.2.175 [INFO] [stderr] Checking rawpointer v0.2.1 [INFO] [stderr] Compiling parking_lot_core v0.8.6 [INFO] [stderr] Checking cfg-if v1.0.3 [INFO] [stderr] Checking smallvec v1.15.1 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Compiling unindent v0.1.11 [INFO] [stderr] Compiling inventory v0.1.11 [INFO] [stderr] Compiling gcc v0.3.55 [INFO] [stderr] Compiling pyo3 v0.11.1 [INFO] [stderr] Compiling ndarray v0.13.1 [INFO] [stderr] Checking matrixmultiply v0.2.4 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Checking float-ord v0.2.0 [INFO] [stderr] Checking instant v0.1.13 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling lock_api v0.4.13 [INFO] [stderr] Compiling matrixmultiply v0.3.10 [INFO] [stderr] Compiling num-complex v0.2.4 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling mcmf v2.0.0 [INFO] [stderr] Compiling paste-impl v0.1.18 [INFO] [stderr] Checking paste v0.1.18 [INFO] [stderr] Checking parking_lot v0.11.2 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking num-complex v0.4.6 [INFO] [stderr] Checking ndarray v0.16.1 [INFO] [stderr] Compiling ghost v0.1.20 [INFO] [stderr] Compiling pyo3-derive-backend v0.11.1 [INFO] [stderr] Compiling indoc-impl v0.3.6 [INFO] [stderr] Compiling inventory-impl v0.1.11 [INFO] [stderr] Compiling ctor v0.1.26 [INFO] [stderr] Checking indoc v0.3.6 [INFO] [stderr] Compiling pyo3cls v0.11.1 [INFO] [stderr] Checking numpy v0.11.0 [INFO] [stderr] Checking optimal-transport v0.2.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `array` [INFO] [stdout] --> src/lp_solver.rs:1:38 [INFO] [stdout] | [INFO] [stdout] 1 | use ndarray::{Array, Array1, Array2, array}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `array` [INFO] [stdout] --> src/lp_solver.rs:1:38 [INFO] [stdout] | [INFO] [stdout] 1 | use ndarray::{Array, Array1, Array2, array}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: arguments to this function are incorrect [INFO] [stdout] --> src/lib.rs:13:33 [INFO] [stdout] | [INFO] [stdout] 13 | let (cost, transport_plan) = impl_calculate_1D_ot(&a.to_owned_array(), &b.to_owned_array(), &cost.to_owned_array()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: expected `ArrayBase, ...>`, found a different `ArrayBase, ...>` [INFO] [stdout] --> src/lib.rs:13:54 [INFO] [stdout] | [INFO] [stdout] 13 | let (cost, transport_plan) = impl_calculate_1D_ot(&a.to_owned_array(), &b.to_owned_array(), &cost.to_owned_array()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: two different versions of crate `ndarray` are being used; two types coming from two different versions of the same crate are different types even if they look the same [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/ndarray-0.13.1/src/lib.rs:1221:1 [INFO] [stdout] | [INFO] [stdout] 1221 | pub struct ArrayBase [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the expected type `ArrayBase` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/ndarray-0.16.1/src/lib.rs:1280:1 [INFO] [stdout] | [INFO] [stdout] 1280 | pub struct ArrayBase [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the found type `ndarray::ArrayBase` [INFO] [stdout] | [INFO] [stdout] ::: src/sinkhorn.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use ndarray::{Array1, Array2, Axis}; [INFO] [stdout] | ------- one version of crate `ndarray` used here, as a direct dependency of the current crate [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use numpy::{PyArray1, PyArray2}; [INFO] [stdout] | ----- one version of crate `ndarray` used here, as a dependency of crate `numpy` [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] note: expected `ArrayBase, ...>`, found a different `ArrayBase, ...>` [INFO] [stdout] --> src/lib.rs:13:75 [INFO] [stdout] | [INFO] [stdout] 13 | let (cost, transport_plan) = impl_calculate_1D_ot(&a.to_owned_array(), &b.to_owned_array(), &cost.to_owned_array()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: two different versions of crate `ndarray` are being used; two types coming from two different versions of the same crate are different types even if they look the same [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/ndarray-0.13.1/src/lib.rs:1221:1 [INFO] [stdout] | [INFO] [stdout] 1221 | pub struct ArrayBase [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the expected type `ArrayBase` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/ndarray-0.16.1/src/lib.rs:1280:1 [INFO] [stdout] | [INFO] [stdout] 1280 | pub struct ArrayBase [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the found type `ndarray::ArrayBase` [INFO] [stdout] | [INFO] [stdout] ::: src/sinkhorn.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use ndarray::{Array1, Array2, Axis}; [INFO] [stdout] | ------- one version of crate `ndarray` used here, as a direct dependency of the current crate [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use numpy::{PyArray1, PyArray2}; [INFO] [stdout] | ----- one version of crate `ndarray` used here, as a dependency of crate `numpy` [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] note: expected `ArrayBase, ...>`, found a different `ArrayBase, ...>` [INFO] [stdout] --> src/lib.rs:13:96 [INFO] [stdout] | [INFO] [stdout] 13 | let (cost, transport_plan) = impl_calculate_1D_ot(&a.to_owned_array(), &b.to_owned_array(), &cost.to_owned_array()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: two different versions of crate `ndarray` are being used; two types coming from two different versions of the same crate are different types even if they look the same [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/ndarray-0.13.1/src/lib.rs:1221:1 [INFO] [stdout] | [INFO] [stdout] 1221 | pub struct ArrayBase [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the expected type `ArrayBase` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/ndarray-0.16.1/src/lib.rs:1280:1 [INFO] [stdout] | [INFO] [stdout] 1280 | pub struct ArrayBase [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the found type `ndarray::ArrayBase` [INFO] [stdout] | [INFO] [stdout] ::: src/sinkhorn.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use ndarray::{Array1, Array2, Axis}; [INFO] [stdout] | ------- one version of crate `ndarray` used here, as a direct dependency of the current crate [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use numpy::{PyArray1, PyArray2}; [INFO] [stdout] | ----- one version of crate `ndarray` used here, as a dependency of crate `numpy` [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/lp_solver.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn calculate_1D_ot(a: &Array1::, b: &Array1::, cost: &Array2::) -> (i32, Array2::) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ ----------------- ----------------- -------------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: arguments to this function are incorrect [INFO] [stdout] --> src/lib.rs:13:33 [INFO] [stdout] | [INFO] [stdout] 13 | let (cost, transport_plan) = impl_calculate_1D_ot(&a.to_owned_array(), &b.to_owned_array(), &cost.to_owned_array()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: expected `ArrayBase, ...>`, found a different `ArrayBase, ...>` [INFO] [stdout] --> src/lib.rs:13:54 [INFO] [stdout] | [INFO] [stdout] 13 | let (cost, transport_plan) = impl_calculate_1D_ot(&a.to_owned_array(), &b.to_owned_array(), &cost.to_owned_array()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: two different versions of crate `ndarray` are being used; two types coming from two different versions of the same crate are different types even if they look the same [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/ndarray-0.13.1/src/lib.rs:1221:1 [INFO] [stdout] | [INFO] [stdout] 1221 | pub struct ArrayBase [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the expected type `ArrayBase` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/ndarray-0.16.1/src/lib.rs:1280:1 [INFO] [stdout] | [INFO] [stdout] 1280 | pub struct ArrayBase [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the found type `ndarray::ArrayBase` [INFO] [stdout] | [INFO] [stdout] ::: src/sinkhorn.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use ndarray::{Array1, Array2, Axis}; [INFO] [stdout] | ------- one version of crate `ndarray` used here, as a direct dependency of the current crate [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use numpy::{PyArray1, PyArray2}; [INFO] [stdout] | ----- one version of crate `ndarray` used here, as a dependency of crate `numpy` [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] note: expected `ArrayBase, ...>`, found a different `ArrayBase, ...>` [INFO] [stdout] --> src/lib.rs:13:75 [INFO] [stdout] | [INFO] [stdout] 13 | let (cost, transport_plan) = impl_calculate_1D_ot(&a.to_owned_array(), &b.to_owned_array(), &cost.to_owned_array()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: two different versions of crate `ndarray` are being used; two types coming from two different versions of the same crate are different types even if they look the same [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/ndarray-0.13.1/src/lib.rs:1221:1 [INFO] [stdout] | [INFO] [stdout] 1221 | pub struct ArrayBase [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the expected type `ArrayBase` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/ndarray-0.16.1/src/lib.rs:1280:1 [INFO] [stdout] | [INFO] [stdout] 1280 | pub struct ArrayBase [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the found type `ndarray::ArrayBase` [INFO] [stdout] | [INFO] [stdout] ::: src/sinkhorn.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use ndarray::{Array1, Array2, Axis}; [INFO] [stdout] | ------- one version of crate `ndarray` used here, as a direct dependency of the current crate [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use numpy::{PyArray1, PyArray2}; [INFO] [stdout] | ----- one version of crate `ndarray` used here, as a dependency of crate `numpy` [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] note: expected `ArrayBase, ...>`, found a different `ArrayBase, ...>` [INFO] [stdout] --> src/lib.rs:13:96 [INFO] [stdout] | [INFO] [stdout] 13 | let (cost, transport_plan) = impl_calculate_1D_ot(&a.to_owned_array(), &b.to_owned_array(), &cost.to_owned_array()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: two different versions of crate `ndarray` are being used; two types coming from two different versions of the same crate are different types even if they look the same [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/ndarray-0.13.1/src/lib.rs:1221:1 [INFO] [stdout] | [INFO] [stdout] 1221 | pub struct ArrayBase [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the expected type `ArrayBase` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/ndarray-0.16.1/src/lib.rs:1280:1 [INFO] [stdout] | [INFO] [stdout] 1280 | pub struct ArrayBase [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the found type `ndarray::ArrayBase` [INFO] [stdout] | [INFO] [stdout] ::: src/sinkhorn.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use ndarray::{Array1, Array2, Axis}; [INFO] [stdout] | ------- one version of crate `ndarray` used here, as a direct dependency of the current crate [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use numpy::{PyArray1, PyArray2}; [INFO] [stdout] | ----- one version of crate `ndarray` used here, as a dependency of crate `numpy` [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/lp_solver.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn calculate_1D_ot(a: &Array1::, b: &Array1::, cost: &Array2::) -> (i32, Array2::) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ ----------------- ----------------- -------------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `into_pyarray` found for struct `ArrayBase` in the current scope [INFO] [stdout] --> src/lib.rs:14:29 [INFO] [stdout] | [INFO] [stdout] 14 | Ok((cost, transport_plan.into_pyarray(py).to_owned())) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `into_py` with a similar name [INFO] [stdout] | [INFO] [stdout] 14 - Ok((cost, transport_plan.into_pyarray(py).to_owned())) [INFO] [stdout] 14 + Ok((cost, transport_plan.into_py(py).to_owned())) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `into_pyarray` found for struct `ArrayBase` in the current scope [INFO] [stdout] --> src/lib.rs:14:29 [INFO] [stdout] | [INFO] [stdout] 14 | Ok((cost, transport_plan.into_pyarray(py).to_owned())) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `into_py` with a similar name [INFO] [stdout] | [INFO] [stdout] 14 - Ok((cost, transport_plan.into_pyarray(py).to_owned())) [INFO] [stdout] 14 + Ok((cost, transport_plan.into_py(py).to_owned())) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: arguments to this function are incorrect [INFO] [stdout] --> src/lib.rs:19:25 [INFO] [stdout] | [INFO] [stdout] 19 | let transport_plan = impl_sinkhorn(a.to_owned_array(), b.to_owned_array(), cost.to_owned_array(), reg); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: expected `ArrayBase, ...>`, found a different `ArrayBase, ...>` [INFO] [stdout] --> src/lib.rs:19:39 [INFO] [stdout] | [INFO] [stdout] 19 | let transport_plan = impl_sinkhorn(a.to_owned_array(), b.to_owned_array(), cost.to_owned_array(), reg); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: two different versions of crate `ndarray` are being used; two types coming from two different versions of the same crate are different types even if they look the same [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/ndarray-0.13.1/src/lib.rs:1221:1 [INFO] [stdout] | [INFO] [stdout] 1221 | pub struct ArrayBase [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the expected type `ArrayBase` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/ndarray-0.16.1/src/lib.rs:1280:1 [INFO] [stdout] | [INFO] [stdout] 1280 | pub struct ArrayBase [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the found type `ndarray::ArrayBase` [INFO] [stdout] | [INFO] [stdout] ::: src/sinkhorn.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use ndarray::{Array1, Array2, Axis}; [INFO] [stdout] | ------- one version of crate `ndarray` used here, as a direct dependency of the current crate [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use numpy::{PyArray1, PyArray2}; [INFO] [stdout] | ----- one version of crate `ndarray` used here, as a dependency of crate `numpy` [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] note: expected `ArrayBase, ...>`, found a different `ArrayBase, ...>` [INFO] [stdout] --> src/lib.rs:19:59 [INFO] [stdout] | [INFO] [stdout] 19 | let transport_plan = impl_sinkhorn(a.to_owned_array(), b.to_owned_array(), cost.to_owned_array(), reg); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: two different versions of crate `ndarray` are being used; two types coming from two different versions of the same crate are different types even if they look the same [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/ndarray-0.13.1/src/lib.rs:1221:1 [INFO] [stdout] | [INFO] [stdout] 1221 | pub struct ArrayBase [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the expected type `ArrayBase` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/ndarray-0.16.1/src/lib.rs:1280:1 [INFO] [stdout] | [INFO] [stdout] 1280 | pub struct ArrayBase [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the found type `ndarray::ArrayBase` [INFO] [stdout] | [INFO] [stdout] ::: src/sinkhorn.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use ndarray::{Array1, Array2, Axis}; [INFO] [stdout] | ------- one version of crate `ndarray` used here, as a direct dependency of the current crate [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use numpy::{PyArray1, PyArray2}; [INFO] [stdout] | ----- one version of crate `ndarray` used here, as a dependency of crate `numpy` [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] note: expected `ArrayBase, ...>`, found a different `ArrayBase, ...>` [INFO] [stdout] --> src/lib.rs:19:79 [INFO] [stdout] | [INFO] [stdout] 19 | let transport_plan = impl_sinkhorn(a.to_owned_array(), b.to_owned_array(), cost.to_owned_array(), reg); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: two different versions of crate `ndarray` are being used; two types coming from two different versions of the same crate are different types even if they look the same [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/ndarray-0.13.1/src/lib.rs:1221:1 [INFO] [stdout] | [INFO] [stdout] 1221 | pub struct ArrayBase [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the expected type `ArrayBase` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/ndarray-0.16.1/src/lib.rs:1280:1 [INFO] [stdout] | [INFO] [stdout] 1280 | pub struct ArrayBase [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the found type `ndarray::ArrayBase` [INFO] [stdout] | [INFO] [stdout] ::: src/sinkhorn.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use ndarray::{Array1, Array2, Axis}; [INFO] [stdout] | ------- one version of crate `ndarray` used here, as a direct dependency of the current crate [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use numpy::{PyArray1, PyArray2}; [INFO] [stdout] | ----- one version of crate `ndarray` used here, as a dependency of crate `numpy` [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/sinkhorn.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn sinkhorn(a: Array1< f32 >, b: Array1< f32 >, cost: Array2< f32 >, reg: f32) -> Array2< f32 > [INFO] [stdout] | ^^^^^^^^ ---------------- ---------------- ------------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: arguments to this function are incorrect [INFO] [stdout] --> src/lib.rs:19:25 [INFO] [stdout] | [INFO] [stdout] 19 | let transport_plan = impl_sinkhorn(a.to_owned_array(), b.to_owned_array(), cost.to_owned_array(), reg); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: expected `ArrayBase, ...>`, found a different `ArrayBase, ...>` [INFO] [stdout] --> src/lib.rs:19:39 [INFO] [stdout] | [INFO] [stdout] 19 | let transport_plan = impl_sinkhorn(a.to_owned_array(), b.to_owned_array(), cost.to_owned_array(), reg); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: two different versions of crate `ndarray` are being used; two types coming from two different versions of the same crate are different types even if they look the same [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/ndarray-0.13.1/src/lib.rs:1221:1 [INFO] [stdout] | [INFO] [stdout] 1221 | pub struct ArrayBase [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the expected type `ArrayBase` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/ndarray-0.16.1/src/lib.rs:1280:1 [INFO] [stdout] | [INFO] [stdout] 1280 | pub struct ArrayBase [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the found type `ndarray::ArrayBase` [INFO] [stdout] | [INFO] [stdout] ::: src/sinkhorn.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use ndarray::{Array1, Array2, Axis}; [INFO] [stdout] | ------- one version of crate `ndarray` used here, as a direct dependency of the current crate [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use numpy::{PyArray1, PyArray2}; [INFO] [stdout] | ----- one version of crate `ndarray` used here, as a dependency of crate `numpy` [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] note: expected `ArrayBase, ...>`, found a different `ArrayBase, ...>` [INFO] [stdout] --> src/lib.rs:19:59 [INFO] [stdout] | [INFO] [stdout] 19 | let transport_plan = impl_sinkhorn(a.to_owned_array(), b.to_owned_array(), cost.to_owned_array(), reg); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: two different versions of crate `ndarray` are being used; two types coming from two different versions of the same crate are different types even if they look the same [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/ndarray-0.13.1/src/lib.rs:1221:1 [INFO] [stdout] | [INFO] [stdout] 1221 | pub struct ArrayBase [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the expected type `ArrayBase` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/ndarray-0.16.1/src/lib.rs:1280:1 [INFO] [stdout] | [INFO] [stdout] 1280 | pub struct ArrayBase [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the found type `ndarray::ArrayBase` [INFO] [stdout] | [INFO] [stdout] ::: src/sinkhorn.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use ndarray::{Array1, Array2, Axis}; [INFO] [stdout] | ------- one version of crate `ndarray` used here, as a direct dependency of the current crate [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use numpy::{PyArray1, PyArray2}; [INFO] [stdout] | ----- one version of crate `ndarray` used here, as a dependency of crate `numpy` [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] note: expected `ArrayBase, ...>`, found a different `ArrayBase, ...>` [INFO] [stdout] --> src/lib.rs:19:79 [INFO] [stdout] | [INFO] [stdout] 19 | let transport_plan = impl_sinkhorn(a.to_owned_array(), b.to_owned_array(), cost.to_owned_array(), reg); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: two different versions of crate `ndarray` are being used; two types coming from two different versions of the same crate are different types even if they look the same [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/ndarray-0.13.1/src/lib.rs:1221:1 [INFO] [stdout] | [INFO] [stdout] 1221 | pub struct ArrayBase [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the expected type `ArrayBase` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/ndarray-0.16.1/src/lib.rs:1280:1 [INFO] [stdout] | [INFO] [stdout] 1280 | pub struct ArrayBase [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the found type `ndarray::ArrayBase` [INFO] [stdout] | [INFO] [stdout] ::: src/sinkhorn.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use ndarray::{Array1, Array2, Axis}; [INFO] [stdout] | ------- one version of crate `ndarray` used here, as a direct dependency of the current crate [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use numpy::{PyArray1, PyArray2}; [INFO] [stdout] | ----- one version of crate `ndarray` used here, as a dependency of crate `numpy` [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/sinkhorn.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn sinkhorn(a: Array1< f32 >, b: Array1< f32 >, cost: Array2< f32 >, reg: f32) -> Array2< f32 > [INFO] [stdout] | ^^^^^^^^ ---------------- ---------------- ------------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `into_pyarray` found for struct `ArrayBase` in the current scope [INFO] [stdout] --> src/lib.rs:20:22 [INFO] [stdout] | [INFO] [stdout] 20 | Ok(transport_plan.into_pyarray(py).to_owned()) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `into_py` with a similar name [INFO] [stdout] | [INFO] [stdout] 20 - Ok(transport_plan.into_pyarray(py).to_owned()) [INFO] [stdout] 20 + Ok(transport_plan.into_py(py).to_owned()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `into_pyarray` found for struct `ArrayBase` in the current scope [INFO] [stdout] --> src/lib.rs:20:22 [INFO] [stdout] | [INFO] [stdout] 20 | Ok(transport_plan.into_pyarray(py).to_owned()) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `into_py` with a similar name [INFO] [stdout] | [INFO] [stdout] 20 - Ok(transport_plan.into_pyarray(py).to_owned()) [INFO] [stdout] 20 + Ok(transport_plan.into_py(py).to_owned()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `optimal-transport` (lib test) due to 4 previous errors; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `optimal-transport` (lib) due to 4 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "72f81efb21395a9963220def7960a613981209f3adcd06525b85274fc18b23ba", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "72f81efb21395a9963220def7960a613981209f3adcd06525b85274fc18b23ba", kill_on_drop: false }` [INFO] [stdout] 72f81efb21395a9963220def7960a613981209f3adcd06525b85274fc18b23ba