[INFO] cloning repository https://github.com/tristannavi/rust_gp [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/tristannavi/rust_gp" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftristannavi%2Frust_gp", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftristannavi%2Frust_gp'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 5aec66383c806218f50f8672f1770e98498a9de4 [INFO] checking tristannavi/rust_gp against try#87f2ecc56b5f6032b075c8934ebc77f28d57183c for pr-148190 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftristannavi%2Frust_gp" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/tristannavi/rust_gp [INFO] finished tweaking git repo https://github.com/tristannavi/rust_gp [INFO] tweaked toml for git repo https://github.com/tristannavi/rust_gp written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/tristannavi/rust_gp on toolchain 87f2ecc56b5f6032b075c8934ebc77f28d57183c [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+87f2ecc56b5f6032b075c8934ebc77f28d57183c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/tristannavi/rust_gp 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" "+87f2ecc56b5f6032b075c8934ebc77f28d57183c" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:94a0c148923f5b2b52a63ef0eeb1882ad339ab61bce784c8077cbe41c61feb6c" "/opt/rustwide/cargo-home/bin/cargo" "+87f2ecc56b5f6032b075c8934ebc77f28d57183c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2f794b1a4ddf3bd9152c5d2130a816e259bf943ba603580b63247311e83e965c [INFO] running `Command { std: "docker" "start" "-a" "2f794b1a4ddf3bd9152c5d2130a816e259bf943ba603580b63247311e83e965c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2f794b1a4ddf3bd9152c5d2130a816e259bf943ba603580b63247311e83e965c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2f794b1a4ddf3bd9152c5d2130a816e259bf943ba603580b63247311e83e965c", kill_on_drop: false }` [INFO] [stdout] 2f794b1a4ddf3bd9152c5d2130a816e259bf943ba603580b63247311e83e965c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:94a0c148923f5b2b52a63ef0eeb1882ad339ab61bce784c8077cbe41c61feb6c" "/opt/rustwide/cargo-home/bin/cargo" "+87f2ecc56b5f6032b075c8934ebc77f28d57183c" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8e0072cfd025f62aba77e9315471e19336a7f9f35025413fceae50b3063a08fe [INFO] running `Command { std: "docker" "start" "-a" "8e0072cfd025f62aba77e9315471e19336a7f9f35025413fceae50b3063a08fe", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.71 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling libc v0.2.151 [INFO] [stderr] Compiling crossbeam-utils v0.8.20 [INFO] [stderr] Checking utf8parse v0.2.1 [INFO] [stderr] Checking anstyle v1.0.4 [INFO] [stderr] Checking anstyle-query v1.0.2 [INFO] [stderr] Compiling rayon-core v1.12.1 [INFO] [stderr] Compiling serde v1.0.193 [INFO] [stderr] Checking colorchoice v1.0.0 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Checking strsim v0.10.0 [INFO] [stderr] Checking ppv-lite86 v0.2.17 [INFO] [stderr] Checking clap_lex v0.6.0 [INFO] [stderr] Checking memchr v2.6.4 [INFO] [stderr] Checking either v1.12.0 [INFO] [stderr] Checking anstyle-parse v0.2.3 [INFO] [stderr] Checking itoa v1.0.10 [INFO] [stderr] Checking ryu v1.0.16 [INFO] [stderr] Checking log v0.4.20 [INFO] [stderr] Checking anstream v0.6.5 [INFO] [stderr] Checking clap_builder v4.4.12 [INFO] [stderr] Checking crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Checking csv-core v0.1.11 [INFO] [stderr] Compiling syn v2.0.43 [INFO] [stderr] Checking crossbeam-deque v0.8.5 [INFO] [stderr] Checking getrandom v0.2.11 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking rayon v1.10.0 [INFO] [stderr] Compiling serde_derive v1.0.193 [INFO] [stderr] Compiling clap_derive v4.4.7 [INFO] [stderr] Checking clap v4.4.12 [INFO] [stderr] Checking csv v1.3.0 [INFO] [stderr] Checking rust_gp v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/chromosome.rs:575:21 [INFO] [stdout] | [INFO] [stdout] 575 | for func in vec![square, log2] { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected `[fn(f64, f64) -> (f64, ...) {square}; _]`, found `[fn(f64, f64) -> (f64, String); 2]` [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected array `[fn(f64, f64) -> (f64, std::string::String) {square}; _]` [INFO] [stdout] found array `[fn(f64, f64) -> (f64, std::string::String); 2]` [INFO] [stdout] = help: consider casting the fn item to a fn pointer: `square as fn(f64, f64) -> (f64, std::string::String)` [INFO] [stdout] help: the return type of this call is `[fn(f64, f64) -> (f64, std::string::String); 2]` due to the type of the argument passed [INFO] [stdout] --> src/chromosome.rs:575:21 [INFO] [stdout] | [INFO] [stdout] 575 | for func in vec![square, log2] { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ this argument influences the return type of `write_box_via_move` [INFO] [stdout] note: function defined here [INFO] [stdout] --> /rustc/87f2ecc56b5f6032b075c8934ebc77f28d57183c/library/alloc/src/intrinsics.rs:15:7 [INFO] [stdout] = note: this error originates in the macro `vec` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/chromosome.rs:584:21 [INFO] [stdout] | [INFO] [stdout] 584 | for func in vec![add, subtract, divide, multiply, max, min] { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected `[fn(f64, f64) -> (f64, String) {add}; _]`, found `[fn(f64, f64) -> (f64, String); 6]` [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected array `[fn(f64, f64) -> (f64, std::string::String) {functions::add}; _]` [INFO] [stdout] found array `[fn(f64, f64) -> (f64, std::string::String); 6]` [INFO] [stdout] = help: consider casting the fn item to a fn pointer: `functions::add as fn(f64, f64) -> (f64, std::string::String)` [INFO] [stdout] help: the return type of this call is `[fn(f64, f64) -> (f64, std::string::String); 6]` due to the type of the argument passed [INFO] [stdout] --> src/chromosome.rs:584:21 [INFO] [stdout] | [INFO] [stdout] 584 | for func in vec![add, subtract, divide, multiply, max, min] { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this argument influences the return type of `write_box_via_move` [INFO] [stdout] note: function defined here [INFO] [stdout] --> /rustc/87f2ecc56b5f6032b075c8934ebc77f28d57183c/library/alloc/src/intrinsics.rs:15:7 [INFO] [stdout] = note: this error originates in the macro `vec` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/population.rs:149:13 [INFO] [stdout] | [INFO] [stdout] 149 | for mut c in &mut self.population { [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rust_gp` (bin "rust_gp" test) due to 2 previous errors; 2 warnings emitted [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/population.rs:149:13 [INFO] [stdout] | [INFO] [stdout] 149 | for mut c in &mut self.population { [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/population.rs:195:50 [INFO] [stdout] | [INFO] [stdout] 195 | self.population.par_iter_mut().for_each(|mut i| { let _ = i.evaluate_fitness_mse(dataset); }); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/population.rs:195:50 [INFO] [stdout] | [INFO] [stdout] 195 | self.population.par_iter_mut().for_each(|mut i| { let _ = i.evaluate_fitness_mse(dataset); }); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DebugGene` is never constructed [INFO] [stdout] --> src/chromosome.rs:71:16 [INFO] [stdout] | [INFO] [stdout] 71 | struct DebugGene {} [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new_variable`, `new_unary2`, and `new_binary2` are never used [INFO] [stdout] --> src/chromosome.rs:152:12 [INFO] [stdout] | [INFO] [stdout] 92 | impl Gene { [INFO] [stdout] | --------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 152 | pub fn new_variable(variable_number: usize) -> Gene { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 179 | pub fn new_unary2(left: usize, func: fn(f64, f64) -> (f64, String)) -> Gene { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 219 | pub fn new_binary2(curr_loc: usize, curr_loc2: usize, func: fn(f64, f64) -> (f64, String)) -> Gene { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new_from_genes_array`, `iter`, `function_string`, and `shuffle` are never used [INFO] [stdout] --> src/chromosome.rs:310:12 [INFO] [stdout] | [INFO] [stdout] 281 | impl Chromosome { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 310 | pub fn new_from_genes_array(genes_array: Vec) -> Chromosome { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 405 | fn iter(&self) -> impl Iterator { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 447 | pub fn function_string(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 470 | pub fn shuffle(&mut self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `DatasetTraits` is never used [INFO] [stdout] --> src/io.rs:43:11 [INFO] [stdout] | [INFO] [stdout] 43 | pub trait DatasetTraits { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PopulationParameters` is never constructed [INFO] [stdout] --> src/population.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct PopulationParameters { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `all_accessed` is never used [INFO] [stdout] --> src/population.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub trait PopulationTraits { [INFO] [stdout] | ---------------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 20 | fn all_accessed(&mut self); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "8e0072cfd025f62aba77e9315471e19336a7f9f35025413fceae50b3063a08fe", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8e0072cfd025f62aba77e9315471e19336a7f9f35025413fceae50b3063a08fe", kill_on_drop: false }` [INFO] [stdout] 8e0072cfd025f62aba77e9315471e19336a7f9f35025413fceae50b3063a08fe