[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] checking pzk2g/Rust-test-ownership against master#d8810e3e2dab96778d20dd6d746ff95465515509 for pr-137033 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpzk2g%2FRust-test-ownership" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/pzk2g/Rust-test-ownership on toolchain d8810e3e2dab96778d20dd6d746ff95465515509 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d8810e3e2dab96778d20dd6d746ff95465515509" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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-6-tc1/source/Cargo.toml [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" "+d8810e3e2dab96778d20dd6d746ff95465515509" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+d8810e3e2dab96778d20dd6d746ff95465515509" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 60018c1d32356c7abe6383bec50c2537afddaf4cc20088a7b4c7903eb9340fc6 [INFO] running `Command { std: "docker" "start" "-a" "60018c1d32356c7abe6383bec50c2537afddaf4cc20088a7b4c7903eb9340fc6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "60018c1d32356c7abe6383bec50c2537afddaf4cc20088a7b4c7903eb9340fc6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "60018c1d32356c7abe6383bec50c2537afddaf4cc20088a7b4c7903eb9340fc6", kill_on_drop: false }` [INFO] [stdout] 60018c1d32356c7abe6383bec50c2537afddaf4cc20088a7b4c7903eb9340fc6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+d8810e3e2dab96778d20dd6d746ff95465515509" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 885620a148743d3d1f3d506dc7b5927e5b6ede08fda509fec26070a1d33b951c [INFO] running `Command { std: "docker" "start" "-a" "885620a148743d3d1f3d506dc7b5927e5b6ede08fda509fec26070a1d33b951c", kill_on_drop: false }` [INFO] [stderr] Checking 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] 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] [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] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `ownership` (bin "ownership" test) due to 1 previous error [INFO] running `Command { std: "docker" "inspect" "885620a148743d3d1f3d506dc7b5927e5b6ede08fda509fec26070a1d33b951c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "885620a148743d3d1f3d506dc7b5927e5b6ede08fda509fec26070a1d33b951c", kill_on_drop: false }` [INFO] [stdout] 885620a148743d3d1f3d506dc7b5927e5b6ede08fda509fec26070a1d33b951c