[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 against master#5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f for pr-87248 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FStelarCF%2Fgenetic_test" "/workspace/builds/worker-14/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-14/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/StelarCF/genetic_test on toolchain 5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f" "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-14/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: "/workspace/cargo-home/bin/cargo" "+5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 115965a41882bb17f380ff7196d31a5bdbf8e9e9e5c8d16073f33179c3b4e95f [INFO] running `Command { std: "docker" "start" "-a" "115965a41882bb17f380ff7196d31a5bdbf8e9e9e5c8d16073f33179c3b4e95f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "115965a41882bb17f380ff7196d31a5bdbf8e9e9e5c8d16073f33179c3b4e95f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "115965a41882bb17f380ff7196d31a5bdbf8e9e9e5c8d16073f33179c3b4e95f", kill_on_drop: false }` [INFO] [stdout] 115965a41882bb17f380ff7196d31a5bdbf8e9e9e5c8d16073f33179c3b4e95f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/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" "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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7bd55c2379c07ce9e8a175a2b0c285745ee2c84d628ade8ac0a525b3285189df [INFO] running `Command { std: "docker" "start" "-a" "7bd55c2379c07ce9e8a175a2b0c285745ee2c84d628ade8ac0a525b3285189df", kill_on_drop: false }` [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] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:384:36 [INFO] [stdout] | [INFO] [stdout] 384 | let fitness = test_fitness(creature); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected `&mut Creature`, found struct `Creature` [INFO] [stdout] | help: consider mutably borrowing here: `&mut creature` [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] | ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected `&mut Creature`, found struct `Creature` [INFO] [stdout] | help: consider mutably borrowing here: `&mut creature` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [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` due to 3 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [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] 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: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "7bd55c2379c07ce9e8a175a2b0c285745ee2c84d628ade8ac0a525b3285189df", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7bd55c2379c07ce9e8a175a2b0c285745ee2c84d628ade8ac0a525b3285189df", kill_on_drop: false }` [INFO] [stdout] 7bd55c2379c07ce9e8a175a2b0c285745ee2c84d628ade8ac0a525b3285189df