[INFO] cloning repository https://github.com/pzk2g/Rust-test-ownership [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/pzk2g/Rust-test-ownership" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpzk2g%2FRust-test-ownership", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpzk2g%2FRust-test-ownership'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 6ecb6c520862caf765e69d4b6b71b65093550c2e [INFO] building pzk2g/Rust-test-ownership against master#c7f6aa2869acdbf014d094c6e427e554e160b6db for pr-146237-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpzk2g%2FRust-test-ownership" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/pzk2g/Rust-test-ownership [INFO] finished tweaking git repo https://github.com/pzk2g/Rust-test-ownership [INFO] tweaked toml for git repo https://github.com/pzk2g/Rust-test-ownership written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/pzk2g/Rust-test-ownership on toolchain c7f6aa2869acdbf014d094c6e427e554e160b6db [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/pzk2g/Rust-test-ownership 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" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 67f7b43ba777b3628996fa819d2171229fea23e053f6b87749366398bdc7ce2d [INFO] running `Command { std: "docker" "start" "-a" "67f7b43ba777b3628996fa819d2171229fea23e053f6b87749366398bdc7ce2d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "67f7b43ba777b3628996fa819d2171229fea23e053f6b87749366398bdc7ce2d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "67f7b43ba777b3628996fa819d2171229fea23e053f6b87749366398bdc7ce2d", kill_on_drop: false }` [INFO] [stdout] 67f7b43ba777b3628996fa819d2171229fea23e053f6b87749366398bdc7ce2d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 110ce98a9622478ab7dbf4acf5730d9ac8aa88a9875b5bb7a235f85c2ae35164 [INFO] running `Command { std: "docker" "start" "-a" "110ce98a9622478ab7dbf4acf5730d9ac8aa88a9875b5bb7a235f85c2ae35164", kill_on_drop: false }` [INFO] [stderr] Compiling ownership v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0502]: cannot borrow `s` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/main.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 13 | let word = first_word(&s); [INFO] [stdout] | -- immutable borrow occurs here [INFO] [stdout] 14 | s.clear(); // error! [INFO] [stdout] | ^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] 15 | println!("the first word is: {}", word); [INFO] [stdout] | ---- immutable 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 `ownership` (bin "ownership") due to 1 previous error [INFO] running `Command { std: "docker" "inspect" "110ce98a9622478ab7dbf4acf5730d9ac8aa88a9875b5bb7a235f85c2ae35164", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "110ce98a9622478ab7dbf4acf5730d9ac8aa88a9875b5bb7a235f85c2ae35164", kill_on_drop: false }` [INFO] [stdout] 110ce98a9622478ab7dbf4acf5730d9ac8aa88a9875b5bb7a235f85c2ae35164