[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] testing pzk2g/Rust-test-ownership against try#c2e32f1c9652b13ed99608599c1e855462f421f3 for pr-146098-7 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpzk2g%2FRust-test-ownership" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/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-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/pzk2g/Rust-test-ownership on toolchain c2e32f1c9652b13ed99608599c1e855462f421f3 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "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" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] fe2bc4c4c7f113e858cd57e92badeead455673dbf1566d8f5d5d211d877bbfa5 [INFO] running `Command { std: "docker" "start" "-a" "fe2bc4c4c7f113e858cd57e92badeead455673dbf1566d8f5d5d211d877bbfa5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fe2bc4c4c7f113e858cd57e92badeead455673dbf1566d8f5d5d211d877bbfa5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fe2bc4c4c7f113e858cd57e92badeead455673dbf1566d8f5d5d211d877bbfa5", kill_on_drop: false }` [INFO] [stdout] fe2bc4c4c7f113e858cd57e92badeead455673dbf1566d8f5d5d211d877bbfa5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f78c12c55804a616da42ab49db56db3ffbf715fe909d439b99a26cd27e0d3409 [INFO] running `Command { std: "docker" "start" "-a" "f78c12c55804a616da42ab49db56db3ffbf715fe909d439b99a26cd27e0d3409", 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" "f78c12c55804a616da42ab49db56db3ffbf715fe909d439b99a26cd27e0d3409", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f78c12c55804a616da42ab49db56db3ffbf715fe909d439b99a26cd27e0d3409", kill_on_drop: false }` [INFO] [stdout] f78c12c55804a616da42ab49db56db3ffbf715fe909d439b99a26cd27e0d3409