[INFO] fetching crate smartcore_proba 0.4.0-proba.0... [INFO] testing smartcore_proba-0.4.0-proba.0 against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] extracting crate smartcore_proba 0.4.0-proba.0 into /workspace/builds/worker-6-tc1/source [INFO] started tweaking crates.io crate smartcore_proba 0.4.0-proba.0 [INFO] finished tweaking crates.io crate smartcore_proba 0.4.0-proba.0 [INFO] tweaked toml for crates.io crate smartcore_proba 0.4.0-proba.0 written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate smartcore_proba 0.4.0-proba.0 on toolchain cdb45c87e2cd43495379f7e867e3cc15dcee9f93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate smartcore_proba 0.4.0-proba.0 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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 6ddfd68232de773e2e75c64721bdc88ba0f234b66f7f6035b2315f5c14c020bf [INFO] running `Command { std: "docker" "start" "-a" "6ddfd68232de773e2e75c64721bdc88ba0f234b66f7f6035b2315f5c14c020bf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6ddfd68232de773e2e75c64721bdc88ba0f234b66f7f6035b2315f5c14c020bf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6ddfd68232de773e2e75c64721bdc88ba0f234b66f7f6035b2315f5c14c020bf", kill_on_drop: false }` [INFO] [stdout] 6ddfd68232de773e2e75c64721bdc88ba0f234b66f7f6035b2315f5c14c020bf [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6ef3179f5c9c4d2bd47c67d1505b99838e34268c790d01c6cad35cb9e3f84fae [INFO] running `Command { std: "docker" "start" "-a" "6ef3179f5c9c4d2bd47c67d1505b99838e34268c790d01c6cad35cb9e3f84fae", kill_on_drop: false }` [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling num-complex v0.4.6 [INFO] [stderr] Compiling approx v0.5.1 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling num-iter v0.1.45 [INFO] [stderr] Compiling num-rational v0.4.2 [INFO] [stderr] Compiling num v0.4.3 [INFO] [stderr] Compiling smartcore_proba v0.4.0-proba.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/optimization/line_search.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | f: &(dyn Fn(T) -> T), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 11 - f: &(dyn Fn(T) -> T), [INFO] [stdout] 11 + f: &dyn Fn(T) -> T, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/optimization/line_search.rs:12:14 [INFO] [stdout] | [INFO] [stdout] 12 | df: &(dyn Fn(T) -> T), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 12 - df: &(dyn Fn(T) -> T), [INFO] [stdout] 12 + df: &dyn Fn(T) -> T, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/optimization/line_search.rs:63:13 [INFO] [stdout] | [INFO] [stdout] 63 | f: &(dyn Fn(T) -> T), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 63 - f: &(dyn Fn(T) -> T), [INFO] [stdout] 63 + f: &dyn Fn(T) -> T, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/optimization/line_search.rs:64:13 [INFO] [stdout] | [INFO] [stdout] 64 | _: &(dyn Fn(T) -> T), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 64 - _: &(dyn Fn(T) -> T), [INFO] [stdout] 64 + _: &dyn Fn(T) -> T, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `QuickArgSort` is never used [INFO] [stdout] --> src/algorithm/sort/quick_sort.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait QuickArgSort { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: eliding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> src/linalg/basic/matrix.rs:145:72 [INFO] [stdout] | [INFO] [stdout] 145 | fn iter_mut<'b>(&'b mut self, axis: u8) -> Box + 'b> { [INFO] [stdout] | -- the lifetime is named here ^^^^^^ the same lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: consistently use `'b` [INFO] [stdout] | [INFO] [stdout] 145 | fn iter_mut<'b>(&'b mut self, axis: u8) -> Box + 'b> { [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 5.61s [INFO] running `Command { std: "docker" "inspect" "6ef3179f5c9c4d2bd47c67d1505b99838e34268c790d01c6cad35cb9e3f84fae", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6ef3179f5c9c4d2bd47c67d1505b99838e34268c790d01c6cad35cb9e3f84fae", kill_on_drop: false }` [INFO] [stdout] 6ef3179f5c9c4d2bd47c67d1505b99838e34268c790d01c6cad35cb9e3f84fae [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 66f959a43bf4ff8c4b0d77394761c8de08efec4d048da5f066c059bcef7200b9 [INFO] running `Command { std: "docker" "start" "-a" "66f959a43bf4ff8c4b0d77394761c8de08efec4d048da5f066c059bcef7200b9", kill_on_drop: false }` [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling itoa v1.0.15 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling ryu v1.0.20 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling itertools v0.12.1 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling num-complex v0.4.6 [INFO] [stderr] Compiling approx v0.5.1 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling num-iter v0.1.45 [INFO] [stderr] Compiling num-rational v0.4.2 [INFO] [stderr] Compiling num v0.4.3 [INFO] [stderr] Compiling bincode v1.3.3 [INFO] [stderr] Compiling smartcore_proba v0.4.0-proba.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/optimization/line_search.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | f: &(dyn Fn(T) -> T), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 11 - f: &(dyn Fn(T) -> T), [INFO] [stdout] 11 + f: &dyn Fn(T) -> T, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/optimization/line_search.rs:12:14 [INFO] [stdout] | [INFO] [stdout] 12 | df: &(dyn Fn(T) -> T), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 12 - df: &(dyn Fn(T) -> T), [INFO] [stdout] 12 + df: &dyn Fn(T) -> T, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/optimization/line_search.rs:63:13 [INFO] [stdout] | [INFO] [stdout] 63 | f: &(dyn Fn(T) -> T), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 63 - f: &(dyn Fn(T) -> T), [INFO] [stdout] 63 + f: &dyn Fn(T) -> T, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/optimization/line_search.rs:64:13 [INFO] [stdout] | [INFO] [stdout] 64 | _: &(dyn Fn(T) -> T), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 64 - _: &(dyn Fn(T) -> T), [INFO] [stdout] 64 + _: &dyn Fn(T) -> T, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `QuickArgSort` is never used [INFO] [stdout] --> src/algorithm/sort/quick_sort.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait QuickArgSort { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: eliding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> src/linalg/basic/matrix.rs:145:72 [INFO] [stdout] | [INFO] [stdout] 145 | fn iter_mut<'b>(&'b mut self, axis: u8) -> Box + 'b> { [INFO] [stdout] | -- the lifetime is named here ^^^^^^ the same lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: consistently use `'b` [INFO] [stdout] | [INFO] [stdout] 145 | fn iter_mut<'b>(&'b mut self, axis: u8) -> Box + 'b> { [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/optimization/line_search.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | f: &(dyn Fn(T) -> T), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 11 - f: &(dyn Fn(T) -> T), [INFO] [stdout] 11 + f: &dyn Fn(T) -> T, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/optimization/line_search.rs:12:14 [INFO] [stdout] | [INFO] [stdout] 12 | df: &(dyn Fn(T) -> T), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 12 - df: &(dyn Fn(T) -> T), [INFO] [stdout] 12 + df: &dyn Fn(T) -> T, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/optimization/line_search.rs:63:13 [INFO] [stdout] | [INFO] [stdout] 63 | f: &(dyn Fn(T) -> T), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 63 - f: &(dyn Fn(T) -> T), [INFO] [stdout] 63 + f: &dyn Fn(T) -> T, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/optimization/line_search.rs:64:13 [INFO] [stdout] | [INFO] [stdout] 64 | _: &(dyn Fn(T) -> T), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 64 - _: &(dyn Fn(T) -> T), [INFO] [stdout] 64 + _: &dyn Fn(T) -> T, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Result, error::Failed>: arrays::Array2<_>` is not satisfied [INFO] [stdout] --> src/ensemble/random_forest_classifier.rs:862:26 [INFO] [stdout] | [INFO] [stdout] 862 | let classifier = RandomForestClassifier::fit( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ the trait `arrays::Array2<_>` is not implemented for `Result, error::Failed>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `arrays::Array2` is implemented for `matrix::DenseMatrix` [INFO] [stdout] note: required by a bound in `random_forest_classifier::RandomForestClassifier` [INFO] [stdout] --> src/ensemble/random_forest_classifier.rs:104:8 [INFO] [stdout] | [INFO] [stdout] 101 | pub struct RandomForestClassifier< [INFO] [stdout] | ---------------------- required by a bound in this struct [INFO] [stdout] ... [INFO] [stdout] 104 | X: Array2, [INFO] [stdout] | ^^^^^^^^^^ required by this bound in `RandomForestClassifier` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Result, error::Failed>: arrays::Array2<_>` is not satisfied [INFO] [stdout] --> src/ensemble/random_forest_classifier.rs:863:13 [INFO] [stdout] | [INFO] [stdout] 862 | let classifier = RandomForestClassifier::fit( [INFO] [stdout] | --------------------------- required by a bound introduced by this call [INFO] [stdout] 863 | &x, [INFO] [stdout] | ^^ the trait `arrays::Array2<_>` is not implemented for `Result, error::Failed>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `arrays::Array2` is implemented for `matrix::DenseMatrix` [INFO] [stdout] note: required by a bound in `random_forest_classifier::RandomForestClassifier::::fit` [INFO] [stdout] --> src/ensemble/random_forest_classifier.rs:446:57 [INFO] [stdout] | [INFO] [stdout] 446 | impl, Y: Array1> [INFO] [stdout] | ^^^^^^^^^^ required by this bound in `RandomForestClassifier::::fit` [INFO] [stdout] ... [INFO] [stdout] 452 | pub fn fit( [INFO] [stdout] | --- required by a bound in this associated function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Result, error::Failed>: arrays::Array2<_>` is not satisfied [INFO] [stdout] --> src/ensemble/random_forest_classifier.rs:862:26 [INFO] [stdout] | [INFO] [stdout] 862 | let classifier = RandomForestClassifier::fit( [INFO] [stdout] | __________________________^ [INFO] [stdout] 863 | | &x, [INFO] [stdout] 864 | | &y, [INFO] [stdout] 865 | | RandomForestClassifierParameters { [INFO] [stdout] ... | [INFO] [stdout] 874 | | }, [INFO] [stdout] 875 | | ) [INFO] [stdout] | |_________^ the trait `arrays::Array2<_>` is not implemented for `Result, error::Failed>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `arrays::Array2` is implemented for `matrix::DenseMatrix` [INFO] [stdout] note: required by a bound in `random_forest_classifier::RandomForestClassifier` [INFO] [stdout] --> src/ensemble/random_forest_classifier.rs:104:8 [INFO] [stdout] | [INFO] [stdout] 101 | pub struct RandomForestClassifier< [INFO] [stdout] | ---------------------- required by a bound in this struct [INFO] [stdout] ... [INFO] [stdout] 104 | X: Array2, [INFO] [stdout] | ^^^^^^^^^^ required by this bound in `RandomForestClassifier` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Result, error::Failed>: arrays::Array2<_>` is not satisfied [INFO] [stdout] --> src/ensemble/random_forest_classifier.rs:862:26 [INFO] [stdout] | [INFO] [stdout] 862 | let classifier = RandomForestClassifier::fit( [INFO] [stdout] | __________________________^ [INFO] [stdout] 863 | | &x, [INFO] [stdout] 864 | | &y, [INFO] [stdout] 865 | | RandomForestClassifierParameters { [INFO] [stdout] ... | [INFO] [stdout] 876 | | .unwrap(); [INFO] [stdout] | |_________________^ the trait `arrays::Array2<_>` is not implemented for `Result, error::Failed>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `arrays::Array2` is implemented for `matrix::DenseMatrix` [INFO] [stdout] note: required by a bound in `random_forest_classifier::RandomForestClassifier` [INFO] [stdout] --> src/ensemble/random_forest_classifier.rs:104:8 [INFO] [stdout] | [INFO] [stdout] 101 | pub struct RandomForestClassifier< [INFO] [stdout] | ---------------------- required by a bound in this struct [INFO] [stdout] ... [INFO] [stdout] 104 | X: Array2, [INFO] [stdout] | ^^^^^^^^^^ required by this bound in `RandomForestClassifier` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `predict_proba` exists for struct `RandomForestClassifier<_, {integer}, Result<..., ...>, ...>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/ensemble/random_forest_classifier.rs:880:52 [INFO] [stdout] | [INFO] [stdout] 101 | / pub struct RandomForestClassifier< [INFO] [stdout] 102 | | TX: Number + FloatNumber + PartialOrd, [INFO] [stdout] 103 | | TY: Number + Ord, [INFO] [stdout] 104 | | X: Array2, [INFO] [stdout] 105 | | Y: Array1, [INFO] [stdout] 106 | | > { [INFO] [stdout] | |_- method `predict_proba` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 880 | let results: DenseMatrix = classifier.predict_proba(&x).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^ method cannot be called due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] note: trait bound `Result, error::Failed>: arrays::Array2<_>` was not satisfied [INFO] [stdout] --> src/ensemble/random_forest_classifier.rs:446:57 [INFO] [stdout] | [INFO] [stdout] 446 | impl, Y: Array1> [INFO] [stdout] | ^^^^^^^^^^ unsatisfied trait bound introduced here [INFO] [stdout] 447 | RandomForestClassifier [INFO] [stdout] | ------------------------------------ [INFO] [stdout] = note: the full name for the type has been written to '/opt/rustwide/target/debug/deps/smartcore_proba-9d0d19989150ba52.long-type-1850993074533654779.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `shape` found for enum `Result` in the current scope [INFO] [stdout] --> src/ensemble/random_forest_classifier.rs:881:28 [INFO] [stdout] | [INFO] [stdout] 881 | println!("{:?}", x.shape()); [INFO] [stdout] | ^^^^^ method not found in `Result, error::Failed>` [INFO] [stdout] | [INFO] [stdout] note: the method `shape` exists on the type `matrix::DenseMatrix` [INFO] [stdout] --> src/linalg/basic/arrays.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | fn shape(&self) -> S; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `arrays::Array` defines an item `shape`, perhaps you need to implement it [INFO] [stdout] --> src/linalg/basic/arrays.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | pub trait Array: Debug { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: consider using `Result::expect` to unwrap the `matrix::DenseMatrix` value, panicking if the value is a `Result::Err` [INFO] [stdout] | [INFO] [stdout] 881 | println!("{:?}", x.expect("REASON").shape()); [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `smartcore_proba` (lib test) due to 6 previous errors; 4 warnings emitted [INFO] running `Command { std: "docker" "inspect" "66f959a43bf4ff8c4b0d77394761c8de08efec4d048da5f066c059bcef7200b9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "66f959a43bf4ff8c4b0d77394761c8de08efec4d048da5f066c059bcef7200b9", kill_on_drop: false }` [INFO] [stdout] 66f959a43bf4ff8c4b0d77394761c8de08efec4d048da5f066c059bcef7200b9