[INFO] cloning repository https://github.com/Simon-Bertrand/NumRu [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Simon-Bertrand/NumRu" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSimon-Bertrand%2FNumRu", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSimon-Bertrand%2FNumRu'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 4d22b5c1b0977c490b6e6f04c3610f8fc65cefe9 [INFO] checking Simon-Bertrand/NumRu against master#af4a5a13a15fa0c60e06321077ef452f769b42fd for pr-122960-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSimon-Bertrand%2FNumRu" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Simon-Bertrand/NumRu on toolchain af4a5a13a15fa0c60e06321077ef452f769b42fd [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Simon-Bertrand/NumRu [INFO] finished tweaking git repo https://github.com/Simon-Bertrand/NumRu [INFO] tweaked toml for git repo https://github.com/Simon-Bertrand/NumRu written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/Simon-Bertrand/NumRu 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" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded num-bigint v0.4.2 [INFO] [stderr] Downloaded num-rational v0.4.0 [INFO] [stderr] Downloaded serde v1.0.130 [INFO] [stderr] Downloaded bstr v0.2.17 [INFO] [stderr] Downloaded libc v0.2.101 [INFO] [stderr] Downloaded csv v1.1.6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 26f027616271b3705b03acf0270fed5fca6afed4c676e1939bd3d200e02d2743 [INFO] running `Command { std: "docker" "start" "-a" "26f027616271b3705b03acf0270fed5fca6afed4c676e1939bd3d200e02d2743", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "26f027616271b3705b03acf0270fed5fca6afed4c676e1939bd3d200e02d2743", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "26f027616271b3705b03acf0270fed5fca6afed4c676e1939bd3d200e02d2743", kill_on_drop: false }` [INFO] [stdout] 26f027616271b3705b03acf0270fed5fca6afed4c676e1939bd3d200e02d2743 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 10f6e726bc28a6b128f58df1f5dadb790b22aabb7a4413b2ee815520d98527a9 [INFO] running `Command { std: "docker" "start" "-a" "10f6e726bc28a6b128f58df1f5dadb790b22aabb7a4413b2ee815520d98527a9", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.101 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling serde v1.0.130 [INFO] [stderr] Compiling num-bigint v0.4.2 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling num-rational v0.4.0 [INFO] [stderr] Checking ppv-lite86 v0.2.10 [INFO] [stderr] Checking regex-automata v0.1.10 [INFO] [stderr] Checking csv-core v0.1.10 [INFO] [stderr] Checking getrandom v0.2.3 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking colored v2.0.0 [INFO] [stderr] Checking rand_core v0.6.3 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.4 [INFO] [stderr] Checking bstr v0.2.17 [INFO] [stderr] Checking csv v1.1.6 [INFO] [stderr] Checking rust-matrix v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0425]: cannot find value `min` in this scope [INFO] [stdout] --> src/matrix/math/scalers.rs:47:70 [INFO] [stdout] | [INFO] [stdout] 47 | ... for el in this.row_iter(i){r.push((*el - min)/(max-min))} [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 + use core::cmp::min; [INFO] [stdout] | [INFO] [stdout] 1 + use std::cmp::min; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `max` in this scope [INFO] [stdout] --> src/matrix/math/scalers.rs:47:76 [INFO] [stdout] | [INFO] [stdout] 47 | ... for el in this.row_iter(i){r.push((*el - min)/(max-min))} [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 + use core::cmp::max; [INFO] [stdout] | [INFO] [stdout] 1 + use std::cmp::max; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `min` in this scope [INFO] [stdout] --> src/matrix/math/scalers.rs:47:80 [INFO] [stdout] | [INFO] [stdout] 47 | ... for el in this.row_iter(i){r.push((*el - min)/(max-min))} [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 + use core::cmp::min; [INFO] [stdout] | [INFO] [stdout] 1 + use std::cmp::min; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `From` is imported redundantly [INFO] [stdout] --> src/matrix/utils/conversion.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::convert::From; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/af4a5a13a15fa0c60e06321077ef452f769b42fd/library/std/src/prelude/mod.rs:134:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `From` is already defined here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `PartialEq` is imported redundantly [INFO] [stdout] --> src/matrix/math/operators.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::cmp::PartialEq; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/af4a5a13a15fa0c60e06321077ef452f769b42fd/library/std/src/prelude/mod.rs:134:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `PartialEq` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `PartialOrd` is imported redundantly [INFO] [stdout] --> src/matrix/math/operators.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::cmp::PartialOrd; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/af4a5a13a15fa0c60e06321077ef452f769b42fd/library/std/src/prelude/mod.rs:134:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `PartialOrd` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary braces around index expression [INFO] [stdout] --> src/matrix/matrix.rs:65:39 [INFO] [stdout] | [INFO] [stdout] 65 | ...a.values[{if self.axe {self.ind_axe*self.data.shape.1 + self.index-1} else {(self.index-1)*self.data.shape.1 + self.ind_axe}}]) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_braces)]` on by default [INFO] [stdout] help: remove these braces [INFO] [stdout] | [INFO] [stdout] 65 - return Some(&self.data.values[{if self.axe {self.ind_axe*self.data.shape.1 + self.index-1} else {(self.index-1)*self.data.shape.1 + self.ind_axe}}]) [INFO] [stdout] 65 + return Some(&self.data.values[if self.axe {self.ind_axe*self.data.shape.1 + self.index-1} else {(self.index-1)*self.data.shape.1 + self.ind_axe}]) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `min` in this scope [INFO] [stdout] --> src/matrix/math/scalers.rs:47:70 [INFO] [stdout] | [INFO] [stdout] 47 | ... for el in this.row_iter(i){r.push((*el - min)/(max-min))} [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 + use core::cmp::min; [INFO] [stdout] | [INFO] [stdout] 1 + use std::cmp::min; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `max` in this scope [INFO] [stdout] --> src/matrix/math/scalers.rs:47:76 [INFO] [stdout] | [INFO] [stdout] 47 | ... for el in this.row_iter(i){r.push((*el - min)/(max-min))} [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 + use core::cmp::max; [INFO] [stdout] | [INFO] [stdout] 1 + use std::cmp::max; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `min` in this scope [INFO] [stdout] --> src/matrix/math/scalers.rs:47:80 [INFO] [stdout] | [INFO] [stdout] 47 | ... for el in this.row_iter(i){r.push((*el - min)/(max-min))} [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 + use core::cmp::min; [INFO] [stdout] | [INFO] [stdout] 1 + use std::cmp::min; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `From` is imported redundantly [INFO] [stdout] --> src/matrix/utils/conversion.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::convert::From; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/af4a5a13a15fa0c60e06321077ef452f769b42fd/library/std/src/prelude/mod.rs:134:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `From` is already defined here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `PartialEq` is imported redundantly [INFO] [stdout] --> src/matrix/math/operators.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::cmp::PartialEq; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/af4a5a13a15fa0c60e06321077ef452f769b42fd/library/std/src/prelude/mod.rs:134:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `PartialEq` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `PartialOrd` is imported redundantly [INFO] [stdout] --> src/matrix/math/operators.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::cmp::PartialOrd; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/af4a5a13a15fa0c60e06321077ef452f769b42fd/library/std/src/prelude/mod.rs:134:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `PartialOrd` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary braces around index expression [INFO] [stdout] --> src/matrix/matrix.rs:65:39 [INFO] [stdout] | [INFO] [stdout] 65 | ...a.values[{if self.axe {self.ind_axe*self.data.shape.1 + self.index-1} else {(self.index-1)*self.data.shape.1 + self.ind_axe}}]) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_braces)]` on by default [INFO] [stdout] help: remove these braces [INFO] [stdout] | [INFO] [stdout] 65 - return Some(&self.data.values[{if self.axe {self.ind_axe*self.data.shape.1 + self.index-1} else {(self.index-1)*self.data.shape.1 + self.ind_axe}}]) [INFO] [stdout] 65 + return Some(&self.data.values[if self.axe {self.ind_axe*self.data.shape.1 + self.index-1} else {(self.index-1)*self.data.shape.1 + self.ind_axe}]) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0369]: cannot add `T` to `T` [INFO] [stdout] --> src/matrix/math/scalers.rs:16:48 [INFO] [stdout] | [INFO] [stdout] 16 | if shape%2 ==0 {(sorted_values[shape/2 -1] + sorted_values[shape/2])/FromPrimitive::from_usize(100).unwrap() * FromPrimitive::from_us... [INFO] [stdout] | ------------------------- ^ ---------------------- T [INFO] [stdout] | | [INFO] [stdout] | T [INFO] [stdout] | [INFO] [stdout] help: consider restricting type parameter `T` [INFO] [stdout] | [INFO] [stdout] 15 | fn core_percentile(sorted_values : &Vec, percentile : usize, shape : usize) -> T { [INFO] [stdout] | +++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/matrix/math/scalers.rs:15:86 [INFO] [stdout] | [INFO] [stdout] 15 | fn core_percentile(sorted_values : &Vec, percentile : usize, shape : usize) -> T { [INFO] [stdout] | --------------- - ^ expected type parameter `T`, found `()` [INFO] [stdout] | | | [INFO] [stdout] | | expected this type parameter [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] | [INFO] [stdout] = note: expected type parameter `T` [INFO] [stdout] found unit type `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0369]: cannot add `T` to `T` [INFO] [stdout] --> src/matrix/math/scalers.rs:16:48 [INFO] [stdout] | [INFO] [stdout] 16 | if shape%2 ==0 {(sorted_values[shape/2 -1] + sorted_values[shape/2])/FromPrimitive::from_usize(100).unwrap() * FromPrimitive::from_us... [INFO] [stdout] | ------------------------- ^ ---------------------- T [INFO] [stdout] | | [INFO] [stdout] | T [INFO] [stdout] | [INFO] [stdout] help: consider restricting type parameter `T` [INFO] [stdout] | [INFO] [stdout] 15 | fn core_percentile(sorted_values : &Vec, percentile : usize, shape : usize) -> T { [INFO] [stdout] | +++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/matrix/math/scalers.rs:15:86 [INFO] [stdout] | [INFO] [stdout] 15 | fn core_percentile(sorted_values : &Vec, percentile : usize, shape : usize) -> T { [INFO] [stdout] | --------------- - ^ expected type parameter `T`, found `()` [INFO] [stdout] | | | [INFO] [stdout] | | expected this type parameter [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] | [INFO] [stdout] = note: expected type parameter `T` [INFO] [stdout] found unit type `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors; 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0369, E0425. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-matrix` (lib test) due to 6 previous errors; 4 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 5 previous errors; 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0369, E0425. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-matrix` (lib) due to 6 previous errors; 4 warnings emitted [INFO] running `Command { std: "docker" "inspect" "10f6e726bc28a6b128f58df1f5dadb790b22aabb7a4413b2ee815520d98527a9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "10f6e726bc28a6b128f58df1f5dadb790b22aabb7a4413b2ee815520d98527a9", kill_on_drop: false }` [INFO] [stdout] 10f6e726bc28a6b128f58df1f5dadb790b22aabb7a4413b2ee815520d98527a9