[INFO] cloning repository https://github.com/notarocket/rust_counting_EA [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/notarocket/rust_counting_EA" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnotarocket%2Frust_counting_EA", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnotarocket%2Frust_counting_EA'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 08319392c2c8133e86dd9cca8df9b25f1a2ded54 [INFO] building notarocket/rust_counting_EA against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnotarocket%2Frust_counting_EA" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/notarocket/rust_counting_EA on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/notarocket/rust_counting_EA [INFO] finished tweaking git repo https://github.com/notarocket/rust_counting_EA [INFO] tweaked toml for git repo https://github.com/notarocket/rust_counting_EA written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/notarocket/rust_counting_EA 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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] bab96a9f089bbb2e6756f74ddc5c64651dd6c51ee4f856429acf5d9bbe73199e [INFO] running `Command { std: "docker" "start" "-a" "bab96a9f089bbb2e6756f74ddc5c64651dd6c51ee4f856429acf5d9bbe73199e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "bab96a9f089bbb2e6756f74ddc5c64651dd6c51ee4f856429acf5d9bbe73199e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bab96a9f089bbb2e6756f74ddc5c64651dd6c51ee4f856429acf5d9bbe73199e", kill_on_drop: false }` [INFO] [stdout] bab96a9f089bbb2e6756f74ddc5c64651dd6c51ee4f856429acf5d9bbe73199e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a2e380e4e015a912ad58132bd6cfb9c4611ffdee84aaf3074698d43f432e0236 [INFO] running `Command { std: "docker" "start" "-a" "a2e380e4e015a912ad58132bd6cfb9c4611ffdee84aaf3074698d43f432e0236", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.125 [INFO] [stderr] Compiling getrandom v0.2.6 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling amongus v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:102:16 [INFO] [stdout] | [INFO] [stdout] 102 | if (side % 2 == 0){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 102 - if (side % 2 == 0){ [INFO] [stdout] 102 + if side % 2 == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/main.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | for x in 0..1000{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `results` is never read [INFO] [stdout] --> src/main.rs:99:17 [INFO] [stdout] | [INFO] [stdout] 99 | let mut results = [0;2]; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/main.rs:159:9 [INFO] [stdout] | [INFO] [stdout] 159 | for x in 0..mut_num{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/main.rs:175:9 [INFO] [stdout] | [INFO] [stdout] 175 | for x in 0..mut_num{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `population` should have an upper case name [INFO] [stdout] --> src/main.rs:7:7 [INFO] [stdout] | [INFO] [stdout] 7 | const population: usize = 200; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper case: `POPULATION` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `mutate_divide` should have an upper case name [INFO] [stdout] --> src/main.rs:8:7 [INFO] [stdout] | [INFO] [stdout] 8 | const mutate_divide: usize = 1; [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper case: `MUTATE_DIVIDE` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `mutate_change` should have an upper case name [INFO] [stdout] --> src/main.rs:9:7 [INFO] [stdout] | [INFO] [stdout] 9 | const mutate_change: i32 = 20; [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper case: `MUTATE_CHANGE` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `num_genes` should have an upper case name [INFO] [stdout] --> src/main.rs:10:7 [INFO] [stdout] | [INFO] [stdout] 10 | const num_genes: usize = 6; //may need to edit player code if increased [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `NUM_GENES` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `goalNum` should have an upper case name [INFO] [stdout] --> src/main.rs:11:7 [INFO] [stdout] | [INFO] [stdout] 11 | const goalNum : i32 = 100; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper case: `GOAL_NUM` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `mutate_min` should have an upper case name [INFO] [stdout] --> src/main.rs:12:7 [INFO] [stdout] | [INFO] [stdout] 12 | const mutate_min: usize = 0; //Minumum amount of mutations per gene - should not be higher than the number of genes [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper case: `MUTATE_MIN` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `win_influence` should have an upper case name [INFO] [stdout] --> src/main.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 13 | const win_influence: f64 = 1.0; //Used to determin how much the win rate of the individual influences the fitness [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper case: `WIN_INFLUENCE` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `step_influence` should have an upper case name [INFO] [stdout] --> src/main.rs:14:7 [INFO] [stdout] | [INFO] [stdout] 14 | const step_influence: f64 = 0.0; //Used to determine how much the steps taken to finish the game influences the fitness of the individual [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to upper case: `STEP_INFLUENCE` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 4.16s [INFO] running `Command { std: "docker" "inspect" "a2e380e4e015a912ad58132bd6cfb9c4611ffdee84aaf3074698d43f432e0236", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a2e380e4e015a912ad58132bd6cfb9c4611ffdee84aaf3074698d43f432e0236", kill_on_drop: false }` [INFO] [stdout] a2e380e4e015a912ad58132bd6cfb9c4611ffdee84aaf3074698d43f432e0236 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 34417fe9c5e0f5935778329b1ddd8a95a4f49faea3e84eddf8b62a1476189aee [INFO] running `Command { std: "docker" "start" "-a" "34417fe9c5e0f5935778329b1ddd8a95a4f49faea3e84eddf8b62a1476189aee", kill_on_drop: false }` [INFO] [stderr] Compiling amongus v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:102:16 [INFO] [stdout] | [INFO] [stdout] 102 | if (side % 2 == 0){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 102 - if (side % 2 == 0){ [INFO] [stdout] 102 + if side % 2 == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/main.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | for x in 0..1000{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `results` is never read [INFO] [stdout] --> src/main.rs:99:17 [INFO] [stdout] | [INFO] [stdout] 99 | let mut results = [0;2]; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/main.rs:159:9 [INFO] [stdout] | [INFO] [stdout] 159 | for x in 0..mut_num{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/main.rs:175:9 [INFO] [stdout] | [INFO] [stdout] 175 | for x in 0..mut_num{ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `population` should have an upper case name [INFO] [stdout] --> src/main.rs:7:7 [INFO] [stdout] | [INFO] [stdout] 7 | const population: usize = 200; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper case: `POPULATION` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `mutate_divide` should have an upper case name [INFO] [stdout] --> src/main.rs:8:7 [INFO] [stdout] | [INFO] [stdout] 8 | const mutate_divide: usize = 1; [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper case: `MUTATE_DIVIDE` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `mutate_change` should have an upper case name [INFO] [stdout] --> src/main.rs:9:7 [INFO] [stdout] | [INFO] [stdout] 9 | const mutate_change: i32 = 20; [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper case: `MUTATE_CHANGE` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `num_genes` should have an upper case name [INFO] [stdout] --> src/main.rs:10:7 [INFO] [stdout] | [INFO] [stdout] 10 | const num_genes: usize = 6; //may need to edit player code if increased [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `NUM_GENES` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `goalNum` should have an upper case name [INFO] [stdout] --> src/main.rs:11:7 [INFO] [stdout] | [INFO] [stdout] 11 | const goalNum : i32 = 100; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper case: `GOAL_NUM` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `mutate_min` should have an upper case name [INFO] [stdout] --> src/main.rs:12:7 [INFO] [stdout] | [INFO] [stdout] 12 | const mutate_min: usize = 0; //Minumum amount of mutations per gene - should not be higher than the number of genes [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper case: `MUTATE_MIN` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `win_influence` should have an upper case name [INFO] [stdout] --> src/main.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 13 | const win_influence: f64 = 1.0; //Used to determin how much the win rate of the individual influences the fitness [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper case: `WIN_INFLUENCE` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `step_influence` should have an upper case name [INFO] [stdout] --> src/main.rs:14:7 [INFO] [stdout] | [INFO] [stdout] 14 | const step_influence: f64 = 0.0; //Used to determine how much the steps taken to finish the game influences the fitness of the individual [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to upper case: `STEP_INFLUENCE` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.37s [INFO] running `Command { std: "docker" "inspect" "34417fe9c5e0f5935778329b1ddd8a95a4f49faea3e84eddf8b62a1476189aee", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "34417fe9c5e0f5935778329b1ddd8a95a4f49faea3e84eddf8b62a1476189aee", kill_on_drop: false }` [INFO] [stdout] 34417fe9c5e0f5935778329b1ddd8a95a4f49faea3e84eddf8b62a1476189aee