[INFO] cloning repository https://github.com/famibo/rust-cargo-test [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/famibo/rust-cargo-test" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffamibo%2Frust-cargo-test", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffamibo%2Frust-cargo-test'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c5e660467f7ae741b27982653bfbd0810ab3eb6e [INFO] testing famibo/rust-cargo-test against try#b83b707f97d809763b7861afa7638871f3339a33 for pr-145838-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffamibo%2Frust-cargo-test" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/famibo/rust-cargo-test [INFO] finished tweaking git repo https://github.com/famibo/rust-cargo-test [INFO] tweaked toml for git repo https://github.com/famibo/rust-cargo-test written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/famibo/rust-cargo-test on toolchain b83b707f97d809763b7861afa7638871f3339a33 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/famibo/rust-cargo-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" "+b83b707f97d809763b7861afa7638871f3339a33" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c01a5a31c92121772656c7f1368c7550aa30afd849f246b38421247bbe4d49eb [INFO] running `Command { std: "docker" "start" "-a" "c01a5a31c92121772656c7f1368c7550aa30afd849f246b38421247bbe4d49eb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c01a5a31c92121772656c7f1368c7550aa30afd849f246b38421247bbe4d49eb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c01a5a31c92121772656c7f1368c7550aa30afd849f246b38421247bbe4d49eb", kill_on_drop: false }` [INFO] [stdout] c01a5a31c92121772656c7f1368c7550aa30afd849f246b38421247bbe4d49eb [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c9ca09f60bc709ad9a806bdc5b5e21417a585ee6a1d4087bcde04da31e3257f0 [INFO] running `Command { std: "docker" "start" "-a" "c9ca09f60bc709ad9a806bdc5b5e21417a585ee6a1d4087bcde04da31e3257f0", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.148 [INFO] [stderr] Compiling tokio-macros v2.1.0 [INFO] [stderr] Compiling parking_lot_core v0.9.8 [INFO] [stderr] Compiling socket2 v0.5.4 [INFO] [stderr] Compiling signal-hook-registry v1.4.1 [INFO] [stderr] Compiling mio v0.8.8 [INFO] [stderr] Compiling num_cpus v1.16.0 [INFO] [stderr] Compiling parking_lot v0.12.1 [INFO] [stderr] Compiling tokio v1.32.0 [INFO] [stderr] Compiling playground v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `add_functions::add_five` and `substract_functions::substract_five` [INFO] [stdout] --> src/main.rs:5:25 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::math_tools::{add_functions::add_five, substract_functions::substract_five}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/main.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | let f = &s; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `s` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/main.rs:24:13 [INFO] [stdout] | [INFO] [stdout] 23 | let t: &mut String = &mut s; [INFO] [stdout] | ------ mutable borrow occurs here [INFO] [stdout] 24 | let f = &s; [INFO] [stdout] | ^^ immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 27 | println!("{}", t); [INFO] [stdout] | - mutable borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0502`. [INFO] [stdout] [INFO] [stderr] error: could not compile `playground` (bin "playground") due to 1 previous error; 2 warnings emitted [INFO] running `Command { std: "docker" "inspect" "c9ca09f60bc709ad9a806bdc5b5e21417a585ee6a1d4087bcde04da31e3257f0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c9ca09f60bc709ad9a806bdc5b5e21417a585ee6a1d4087bcde04da31e3257f0", kill_on_drop: false }` [INFO] [stdout] c9ca09f60bc709ad9a806bdc5b5e21417a585ee6a1d4087bcde04da31e3257f0