[INFO] cloning repository https://github.com/Pennswood/mountain-car-genetic-learn-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Pennswood/mountain-car-genetic-learn-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FPennswood%2Fmountain-car-genetic-learn-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FPennswood%2Fmountain-car-genetic-learn-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d8e38de9efd7a8a4472994d28aa8f77716fd81b3 [INFO] testing Pennswood/mountain-car-genetic-learn-rust against 1.60.0 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FPennswood%2Fmountain-car-genetic-learn-rust" "/workspace/builds/worker-15/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-15/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Pennswood/mountain-car-genetic-learn-rust on toolchain 1.60.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Pennswood/mountain-car-genetic-learn-rust [INFO] finished tweaking git repo https://github.com/Pennswood/mountain-car-genetic-learn-rust [INFO] tweaked toml for git repo https://github.com/Pennswood/mountain-car-genetic-learn-rust written to /workspace/builds/worker-15/source/Cargo.toml [INFO] crate git repo https://github.com/Pennswood/mountain-car-genetic-learn-rust already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded genevo v0.7.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-15/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-15/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 821706af5603dab54dc64b23519785b82d3a36dbdbb44227e5d2ae2657ac4293 [INFO] running `Command { std: "docker" "start" "-a" "821706af5603dab54dc64b23519785b82d3a36dbdbb44227e5d2ae2657ac4293", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "821706af5603dab54dc64b23519785b82d3a36dbdbb44227e5d2ae2657ac4293", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "821706af5603dab54dc64b23519785b82d3a36dbdbb44227e5d2ae2657ac4293", kill_on_drop: false }` [INFO] [stdout] 821706af5603dab54dc64b23519785b82d3a36dbdbb44227e5d2ae2657ac4293 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-15/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-15/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1d0c012e312cb8e1b6a5fd69a05be45f2434bac134bc1f87c07da6c9f2214ab2 [INFO] running `Command { std: "docker" "start" "-a" "1d0c012e312cb8e1b6a5fd69a05be45f2434bac134bc1f87c07da6c9f2214ab2", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.108 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling getrandom v0.2.3 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Compiling time v0.1.44 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling rayon-core v1.9.1 [INFO] [stderr] Compiling rand_xoshiro v0.6.0 [INFO] [stderr] Compiling rand v0.8.4 [INFO] [stderr] Compiling chrono v0.4.19 [INFO] [stderr] Compiling rayon v1.5.1 [INFO] [stderr] Compiling genevo v0.7.0 [INFO] [stderr] Compiling genetic-learning v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0432]: unresolved import `crate::settings` [INFO] [stdout] --> src/bin/car_sim.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::settings; [INFO] [stdout] | ^^^^^^^^^^^^^^^ no `settings` in the root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/bin/car_sim.rs:33:21 [INFO] [stdout] | [INFO] [stdout] 33 | accel = (settings::ENGINE_POWER*(engine_action as f64)-curve[pos as usize].sin()*settings::GRAVITY); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 33 - accel = (settings::ENGINE_POWER*(engine_action as f64)-curve[pos as usize].sin()*settings::GRAVITY); [INFO] [stdout] 33 + accel = settings::ENGINE_POWER*(engine_action as f64)-curve[pos as usize].sin()*settings::GRAVITY; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stderr] error: could not compile `genetic-learning` due to 2 previous errors; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/bin/car_sim.rs:33:21 [INFO] [stdout] | [INFO] [stdout] 33 | accel = (settings::ENGINE_POWER*(engine_action as f64)-curve[pos as usize].sin()*settings::GRAVITY); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 33 - accel = (settings::ENGINE_POWER*(engine_action as f64)-curve[pos as usize].sin()*settings::GRAVITY); [INFO] [stdout] 33 + accel = settings::ENGINE_POWER*(engine_action as f64)-curve[pos as usize].sin()*settings::GRAVITY; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `engine_option` should have an upper camel case name [INFO] [stdout] --> src/bin/settings.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum engine_option { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `EngineOption` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/bin/settings.rs:67:25 [INFO] [stdout] | [INFO] [stdout] 67 | output[i] = (engine_option::IDLE); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 67 - output[i] = (engine_option::IDLE); [INFO] [stdout] 67 + output[i] = engine_option::IDLE; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/bin/settings.rs:69:25 [INFO] [stdout] | [INFO] [stdout] 69 | output[i] = (engine_option::RIGHT); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 69 - output[i] = (engine_option::RIGHT); [INFO] [stdout] 69 + output[i] = engine_option::RIGHT; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/bin/settings.rs:71:25 [INFO] [stdout] | [INFO] [stdout] 71 | output[i] = (engine_option::LEFT); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 71 - output[i] = (engine_option::LEFT); [INFO] [stdout] 71 + output[i] = engine_option::LEFT; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `engine_option` should have an upper camel case name [INFO] [stdout] --> src/bin/settings.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum engine_option { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `EngineOption` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/bin/settings.rs:67:25 [INFO] [stdout] | [INFO] [stdout] 67 | output[i] = (engine_option::IDLE); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 67 - output[i] = (engine_option::IDLE); [INFO] [stdout] 67 + output[i] = engine_option::IDLE; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/bin/settings.rs:69:25 [INFO] [stdout] | [INFO] [stdout] 69 | output[i] = (engine_option::RIGHT); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 69 - output[i] = (engine_option::RIGHT); [INFO] [stdout] 69 + output[i] = engine_option::RIGHT; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/bin/settings.rs:71:25 [INFO] [stdout] | [INFO] [stdout] 71 | output[i] = (engine_option::LEFT); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 71 - output[i] = (engine_option::LEFT); [INFO] [stdout] 71 + output[i] = engine_option::LEFT; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0601]: `main` function not found in crate `settings` [INFO] [stdout] --> src/bin/settings.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / #[derive(Debug, Copy, Clone, PartialEq)] [INFO] [stdout] 2 | | pub enum engine_option { [INFO] [stdout] 3 | | LEFT= -1, [INFO] [stdout] 4 | | IDLE = 0, [INFO] [stdout] ... | [INFO] [stdout] 74 | | output [INFO] [stdout] 75 | | } [INFO] [stdout] | |_^ consider adding a `main` function to `src/bin/settings.rs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error; 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0601`. [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/car_sim.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | let mut curve : [f64; settings::WIDTH]; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `main` [INFO] [stdout] --> src/bin/car_sim.rs:41:4 [INFO] [stdout] | [INFO] [stdout] 41 | fn main(){ [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `FLAT` [INFO] [stdout] --> src/bin/settings.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | FLAT = 2, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `OTHER` [INFO] [stdout] --> src/bin/settings.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | OTHER = 3 [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `enumGenome` should have a snake case name [INFO] [stdout] --> src/bin/mountain_cars.rs:64:17 [INFO] [stdout] | [INFO] [stdout] 64 | let mut enumGenome = Vec::new(); [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `enum_genome` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "1d0c012e312cb8e1b6a5fd69a05be45f2434bac134bc1f87c07da6c9f2214ab2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1d0c012e312cb8e1b6a5fd69a05be45f2434bac134bc1f87c07da6c9f2214ab2", kill_on_drop: false }` [INFO] [stdout] 1d0c012e312cb8e1b6a5fd69a05be45f2434bac134bc1f87c07da6c9f2214ab2