[INFO] fetching crate smartcore_proba 0.4.0-proba.0... [INFO] checking smartcore_proba-0.4.0-proba.0 against try#c659ee110de67e82444e4b6c8407c1a9af9c2cf6 for pr-145608-1 [INFO] extracting crate smartcore_proba 0.4.0-proba.0 into /workspace/builds/worker-5-tc2/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-5-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate smartcore_proba 0.4.0-proba.0 on toolchain c659ee110de67e82444e4b6c8407c1a9af9c2cf6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "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" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e46081b9135c4f9d61858f151260e75e43c21e2955a75c268f412ad2859bbaa7 [INFO] running `Command { std: "docker" "start" "-a" "e46081b9135c4f9d61858f151260e75e43c21e2955a75c268f412ad2859bbaa7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e46081b9135c4f9d61858f151260e75e43c21e2955a75c268f412ad2859bbaa7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e46081b9135c4f9d61858f151260e75e43c21e2955a75c268f412ad2859bbaa7", kill_on_drop: false }` [INFO] [stdout] e46081b9135c4f9d61858f151260e75e43c21e2955a75c268f412ad2859bbaa7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e234a022f7c16d8583d2d7e16a3b5344e516ae3f2af1aeb8aa5686ffa8c63f49 [INFO] running `Command { std: "docker" "start" "-a" "e234a022f7c16d8583d2d7e16a3b5344e516ae3f2af1aeb8aa5686ffa8c63f49", kill_on_drop: false }` [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Checking itertools v0.12.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking num-complex v0.4.6 [INFO] [stderr] Checking approx v0.5.1 [INFO] [stderr] Checking num-bigint v0.4.6 [INFO] [stderr] Checking num-iter v0.1.45 [INFO] [stderr] Checking num-rational v0.4.2 [INFO] [stderr] Checking num v0.4.3 [INFO] [stderr] Checking 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)]` 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] [stderr] Checking bincode v1.3.3 [INFO] [stderr] Checking serde_json v1.0.140 [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)]` 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)]` on by default [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] warning: eliding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> src/linalg/basic/matrix.rs:145:22 [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] 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-e361f93c36e68a1c.long-type-8009356609924845865.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" "e234a022f7c16d8583d2d7e16a3b5344e516ae3f2af1aeb8aa5686ffa8c63f49", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e234a022f7c16d8583d2d7e16a3b5344e516ae3f2af1aeb8aa5686ffa8c63f49", kill_on_drop: false }` [INFO] [stdout] e234a022f7c16d8583d2d7e16a3b5344e516ae3f2af1aeb8aa5686ffa8c63f49