[INFO] cloning repository https://github.com/KGANESHKUMARK/order-book [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/KGANESHKUMARK/order-book" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKGANESHKUMARK%2Forder-book", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKGANESHKUMARK%2Forder-book'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 65d64ca623d4124f21803eceb96aca5ab90a5b56 [INFO] testing KGANESHKUMARK/order-book against try#dec9417b8611e34e787a3e4c37686b5131f9e5c5 for pr-154210 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKGANESHKUMARK%2Forder-book" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/KGANESHKUMARK/order-book [INFO] finished tweaking git repo https://github.com/KGANESHKUMARK/order-book [INFO] tweaked toml for git repo https://github.com/KGANESHKUMARK/order-book written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/KGANESHKUMARK/order-book on toolchain dec9417b8611e34e787a3e4c37686b5131f9e5c5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/KGANESHKUMARK/order-book already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded linfa-logistic v0.7.0 [INFO] [stderr] Downloaded argmin-math v0.3.0 [INFO] [stderr] Downloaded noisy_float v0.2.0 [INFO] [stderr] Downloaded ordered-float v4.5.0 [INFO] [stderr] Downloaded anyhow v1.0.48 [INFO] [stderr] Downloaded sprs v0.11.2 [INFO] [stderr] Downloaded ndarray-stats v0.5.1 [INFO] [stderr] Downloaded matrixmultiply v0.3.9 [INFO] [stderr] Downloaded argmin v0.8.1 [INFO] [stderr] Downloaded linfa v0.7.0 [INFO] [stderr] Downloaded ndarray v0.16.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e9a0ecb35992b41338fb065277559e326588213f257fb6dcb705819e7baaff55 [INFO] running `Command { std: "docker" "start" "-a" "e9a0ecb35992b41338fb065277559e326588213f257fb6dcb705819e7baaff55", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e9a0ecb35992b41338fb065277559e326588213f257fb6dcb705819e7baaff55", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e9a0ecb35992b41338fb065277559e326588213f257fb6dcb705819e7baaff55", kill_on_drop: false }` [INFO] [stdout] e9a0ecb35992b41338fb065277559e326588213f257fb6dcb705819e7baaff55 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a29ff357f545e1f316c667e14820247a2ac22d33c713a6b7a456b344c5259443 [INFO] running `Command { std: "docker" "start" "-a" "a29ff357f545e1f316c667e14820247a2ac22d33c713a6b7a456b344c5259443", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.92 [INFO] [stderr] Compiling unicode-ident v1.0.14 [INFO] [stderr] Compiling libc v0.2.169 [INFO] [stderr] Compiling matrixmultiply v0.3.9 [INFO] [stderr] Compiling rawpointer v0.2.1 [INFO] [stderr] Compiling anyhow v1.0.48 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling linfa v0.7.0 [INFO] [stderr] Compiling either v1.13.0 [INFO] [stderr] Compiling instant v0.1.13 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling num-complex v0.4.6 [INFO] [stderr] Compiling approx v0.4.0 [INFO] [stderr] Compiling noisy_float v0.2.0 [INFO] [stderr] Compiling ordered-float v4.5.0 [INFO] [stderr] Compiling itertools v0.10.5 [INFO] [stderr] Compiling ndarray v0.15.6 [INFO] [stderr] Compiling ndarray v0.16.1 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling syn v2.0.90 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling rand_xoshiro v0.6.0 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Compiling sprs v0.11.2 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling ppv-lite86 v0.2.20 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling argmin-math v0.3.0 [INFO] [stderr] Compiling ndarray-stats v0.5.1 [INFO] [stderr] Compiling argmin v0.8.1 [INFO] [stderr] Compiling linfa-logistic v0.7.0 [INFO] [stderr] Compiling order-book v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0433]: cannot find module or crate `smartcore` in this scope [INFO] [stdout] --> src/main.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use smartcore::linear::linear_regression::*; [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `smartcore` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `smartcore`, use `cargo add smartcore` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find module or crate `smartcore` in this scope [INFO] [stdout] --> src/main.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use smartcore::linalg::basic::matrix::DenseMatrix; [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `smartcore` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `smartcore`, use `cargo add smartcore` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `tensorflow` [INFO] [stdout] --> src/main.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use tensorflow::{Graph, Session, SessionOptions, Tensor}; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `tensorflow` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `tensorflow`, use `cargo add tensorflow` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find module or crate `tch` in this scope [INFO] [stdout] --> src/main.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use tch::{nn, nn::Module, nn::OptimizerConfig, Tensor as TorchTensor}; [INFO] [stdout] | ^^^ use of unresolved module or unlinked crate `tch` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `tch`, use `cargo add tch` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find module or crate `ort` in this scope [INFO] [stdout] --> src/main.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | use ort::{environment::Environment, tensor::InputTensor, session::SessionBuilder}; [INFO] [stdout] | ^^^ use of unresolved module or unlinked crate `ort` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `ort`, use `cargo add ort` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `tch` [INFO] [stdout] --> src/main.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use tch::{nn, nn::Module, nn::OptimizerConfig, Tensor as TorchTensor}; [INFO] [stdout] | ^^^ use of unresolved module or unlinked crate `tch` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `tch`, use `cargo add tch` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find module or crate `tch` in this scope [INFO] [stdout] --> src/main.rs:50:32 [INFO] [stdout] | [INFO] [stdout] 50 | let vs = nn::VarStore::new(tch::Device::Cpu); [INFO] [stdout] | ^^^ use of unresolved module or unlinked crate `tch` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `tch`, use `cargo add tch` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find module or crate `tch` in this scope [INFO] [stdout] --> src/main.rs:56:51 [INFO] [stdout] | [INFO] [stdout] 56 | let loss = model.forward(&x).mse_loss(&y, tch::Reduction::Mean); [INFO] [stdout] | ^^^ use of unresolved module or unlinked crate `tch` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `tch`, use `cargo add tch` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this method takes 1 argument but 2 arguments were supplied [INFO] [stdout] --> src/main.rs:27:47 [INFO] [stdout] | [INFO] [stdout] 27 | let model = LogisticRegression::default().fit(&x, &y).unwrap(); [INFO] [stdout] | ^^^ -- unexpected argument #2 of type `&ArrayBase, Dim<[usize; 1]>>` [INFO] [stdout] | [INFO] [stdout] note: expected `&DatasetBase, _>`, found `&ArrayBase, ...>` [INFO] [stdout] --> src/main.rs:27:51 [INFO] [stdout] | [INFO] [stdout] 27 | let model = LogisticRegression::default().fit(&x, &y).unwrap(); [INFO] [stdout] | ^^ [INFO] [stdout] = note: expected reference `&DatasetBase>, _>` [INFO] [stdout] found reference `&ArrayBase, Dim<[usize; 2]>>` [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/linfa-0.7.0/src/traits.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | fn fit(&self, dataset: &DatasetBase) -> Result; [INFO] [stdout] | ^^^ [INFO] [stdout] help: remove the extra argument [INFO] [stdout] | [INFO] [stdout] 27 - let model = LogisticRegression::default().fit(&x, &y).unwrap(); [INFO] [stdout] 27 + let model = LogisticRegression::default().fit(/* dataset */).unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `FittedLogisticRegression<_, _>: Predict<&ArrayBase<..., ...>, _>` is not satisfied [INFO] [stdout] --> src/main.rs:28:30 [INFO] [stdout] | [INFO] [stdout] 28 | let pred = model.predict(&array![[1.0, 1.0]]); [INFO] [stdout] | ------- ^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the trait `linfa::prelude::Predict<&ArrayBase, Dim<[usize; 2]>>, _>` is not implemented for `FittedLogisticRegression<_, _>` [INFO] [stdout] = note: the full name for the type has been written to '/opt/rustwide/target/debug/deps/order_book-6a6878f26f575988.long-type-13140424541024939256.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `ArrayBase, Dim<[usize; 2]>>: Records` is not satisfied [INFO] [stdout] --> src/main.rs:28:31 [INFO] [stdout] | [INFO] [stdout] 28 | let pred = model.predict(&array![[1.0, 1.0]]); [INFO] [stdout] | ------- ^^^^^^^^^^^^^^^^^^ the trait `Records` is not implemented for `ArrayBase, Dim<[usize; 2]>>` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] help: the following other types implement trait `Records` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/linfa-0.7.0/src/dataset/impl_records.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | impl, I: Dimension> Records for ArrayBase { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `ndarray::ArrayBase` [INFO] [stdout] ... [INFO] [stdout] 18 | impl, T> Records for DatasetBase { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `DatasetBase` [INFO] [stdout] ... [INFO] [stdout] 31 | impl Records for () { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ `()` [INFO] [stdout] ... [INFO] [stdout] 44 | impl Records for &R { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `&R` [INFO] [stdout] = note: there are multiple different versions of crate `ndarray` in the dependency graph [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] = note: required for `&ArrayBase, Dim<[usize; 2]>>` to implement `Records` [INFO] [stdout] note: required by a bound in `predict` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/linfa-0.7.0/src/traits.rs:63:22 [INFO] [stdout] | [INFO] [stdout] 63 | pub trait Predict { [INFO] [stdout] | ^^^^^^^ required by this bound in `Predict::predict` [INFO] [stdout] 64 | fn predict(&self, x: R) -> T; [INFO] [stdout] | ------- required by a bound in this associated function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `LinearRegression` in this scope [INFO] [stdout] --> src/main.rs:35:17 [INFO] [stdout] | [INFO] [stdout] 35 | let model = LinearRegression::fit(&x, &y, Default::default()).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ use of undeclared type `LinearRegression` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0277, E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stderr] error: could not compile `order-book` (bin "order-book") due to 12 previous errors [INFO] running `Command { std: "docker" "inspect" "a29ff357f545e1f316c667e14820247a2ac22d33c713a6b7a456b344c5259443", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a29ff357f545e1f316c667e14820247a2ac22d33c713a6b7a456b344c5259443", kill_on_drop: false }` [INFO] [stdout] a29ff357f545e1f316c667e14820247a2ac22d33c713a6b7a456b344c5259443