[INFO] cloning repository https://github.com/StelarCF/genetic_test [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/StelarCF/genetic_test" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FStelarCF%2Fgenetic_test", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FStelarCF%2Fgenetic_test'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 2ce0fbb3519cc2f7744dea052092da06b09d720a [INFO] checking StelarCF/genetic_test/2ce0fbb3519cc2f7744dea052092da06b09d720a against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FStelarCF%2Fgenetic_test" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/StelarCF/genetic_test on toolchain f609b7e0586f81fefb3523e3e17adf779ac416be [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/StelarCF/genetic_test [INFO] finished tweaking git repo https://github.com/StelarCF/genetic_test [INFO] tweaked toml for git repo https://github.com/StelarCF/genetic_test written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/StelarCF/genetic_test 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" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 79ea843611e6a5e9840bc57ed0a2c265f3b7fba6171be223f433c5833f08b337 [INFO] running `Command { std: "docker" "start" "-a" "79ea843611e6a5e9840bc57ed0a2c265f3b7fba6171be223f433c5833f08b337", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "79ea843611e6a5e9840bc57ed0a2c265f3b7fba6171be223f433c5833f08b337", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "79ea843611e6a5e9840bc57ed0a2c265f3b7fba6171be223f433c5833f08b337", kill_on_drop: false }` [INFO] [stdout] 79ea843611e6a5e9840bc57ed0a2c265f3b7fba6171be223f433c5833f08b337 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5d0c87dfba5090b0f78b8e7c43b38feaa193533dfe91c7440b1a49fdd82501c6 [INFO] running `Command { std: "docker" "start" "-a" "5d0c87dfba5090b0f78b8e7c43b38feaa193533dfe91c7440b1a49fdd82501c6", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] Checking libc v0.2.13 [INFO] [stderr] Checking rand v0.3.14 [INFO] [stderr] Checking genetic_test v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:247:13 [INFO] [stdout] | [INFO] [stdout] 247 | for mut muscle in &mut self.muscles { [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] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:384:36 [INFO] [stdout] | [INFO] [stdout] 384 | let fitness = test_fitness(creature); [INFO] [stdout] | ------------ ^^^^^^^^ expected `&mut Creature`, found `Creature` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/main.rs:372:4 [INFO] [stdout] | [INFO] [stdout] 372 | fn test_fitness(creature: &mut Creature) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^ ----------------------- [INFO] [stdout] help: consider mutably borrowing here [INFO] [stdout] | [INFO] [stdout] 384 | let fitness = test_fitness(&mut creature); [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:386:41 [INFO] [stdout] | [INFO] [stdout] 386 | let fitness2 = test_fitness(creature); [INFO] [stdout] | ------------ ^^^^^^^^ expected `&mut Creature`, found `Creature` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/main.rs:372:4 [INFO] [stdout] | [INFO] [stdout] 372 | fn test_fitness(creature: &mut Creature) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^ ----------------------- [INFO] [stdout] help: consider mutably borrowing here [INFO] [stdout] | [INFO] [stdout] 386 | let fitness2 = test_fitness(&mut creature); [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `id` is never read [INFO] [stdout] --> src/main.rs:222:5 [INFO] [stdout] | [INFO] [stdout] 217 | struct Creature { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 222 | id: i64 [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `Creature` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `next_id` should have an upper case name [INFO] [stdout] --> src/main.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | static mut next_id : i64 = 0; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper case: `NEXT_ID` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:247:13 [INFO] [stdout] | [INFO] [stdout] 247 | for mut muscle in &mut self.muscles { [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] error: aborting due to 2 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `genetic_test` (bin "genetic_test" test) due to 3 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "5d0c87dfba5090b0f78b8e7c43b38feaa193533dfe91c7440b1a49fdd82501c6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5d0c87dfba5090b0f78b8e7c43b38feaa193533dfe91c7440b1a49fdd82501c6", kill_on_drop: false }` [INFO] [stdout] 5d0c87dfba5090b0f78b8e7c43b38feaa193533dfe91c7440b1a49fdd82501c6