[INFO] cloning repository https://github.com/ian-h-chamberlain/borrowck_examples [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ian-h-chamberlain/borrowck_examples" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fian-h-chamberlain%2Fborrowck_examples", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fian-h-chamberlain%2Fborrowck_examples'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 3c974e3a8d2cc0852e9a9f3c04bbf9d21b8e11ac [INFO] checking ian-h-chamberlain/borrowck_examples against master#506512391b1a75ae450d36c9420978402a91abcc for pr-125384 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fian-h-chamberlain%2Fborrowck_examples" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ian-h-chamberlain/borrowck_examples on toolchain 506512391b1a75ae450d36c9420978402a91abcc [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ian-h-chamberlain/borrowck_examples [INFO] finished tweaking git repo https://github.com/ian-h-chamberlain/borrowck_examples [INFO] tweaked toml for git repo https://github.com/ian-h-chamberlain/borrowck_examples written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/ian-h-chamberlain/borrowck_examples 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" "+506512391b1a75ae450d36c9420978402a91abcc" "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:59a85a07ab18ca8720692f8e61effa1c651d9e2ca591e072c2b212bb91a6b8b5" "/opt/rustwide/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d8c3b8043dfa0fad584991e75cb4a82a3a46f9f4c6e64536285873547cee8058 [INFO] running `Command { std: "docker" "start" "-a" "d8c3b8043dfa0fad584991e75cb4a82a3a46f9f4c6e64536285873547cee8058", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d8c3b8043dfa0fad584991e75cb4a82a3a46f9f4c6e64536285873547cee8058", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d8c3b8043dfa0fad584991e75cb4a82a3a46f9f4c6e64536285873547cee8058", kill_on_drop: false }` [INFO] [stdout] d8c3b8043dfa0fad584991e75cb4a82a3a46f9f4c6e64536285873547cee8058 [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=allow" "-e" "RUSTDOCFLAGS=--cap-lints=allow" "-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:59a85a07ab18ca8720692f8e61effa1c651d9e2ca591e072c2b212bb91a6b8b5" "/opt/rustwide/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ba577cf5135c2cbc071a156ef9034c32b0fdb125f0c99b640cd9f09651db75b6 [INFO] running `Command { std: "docker" "start" "-a" "ba577cf5135c2cbc071a156ef9034c32b0fdb125f0c99b640cd9f09651db75b6", kill_on_drop: false }` [INFO] [stderr] Checking lazy_static v1.2.0 [INFO] [stderr] Checking borrowck_lightning_talk v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0499]: cannot borrow `foo` as mutable more than once at a time [INFO] [stdout] --> src/borrow.rs:10:19 [INFO] [stdout] | [INFO] [stdout] 6 | let bar = &mut foo; [INFO] [stdout] | -------- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 10 | let baz = &mut foo; [INFO] [stdout] | ^^^^^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 15 | *bar += 1; [INFO] [stdout] | --------- first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `foo` as mutable more than once at a time [INFO] [stdout] --> src/borrow.rs:10:19 [INFO] [stdout] | [INFO] [stdout] 6 | let bar = &mut foo; [INFO] [stdout] | -------- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 10 | let baz = &mut foo; [INFO] [stdout] | ^^^^^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 15 | *bar += 1; [INFO] [stdout] | --------- first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `my_string` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/borrow.rs:26:16 [INFO] [stdout] | [INFO] [stdout] 23 | let ref1 = &mut my_string; [INFO] [stdout] | -------------- mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 26 | let ref2 = &my_string; [INFO] [stdout] | ^^^^^^^^^^ immutable borrow occurs here [INFO] [stdout] 27 | [INFO] [stdout] 28 | *ref1 = String::from("foo"); [INFO] [stdout] | ----- mutable borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `my_string` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/borrow.rs:26:16 [INFO] [stdout] | [INFO] [stdout] 23 | let ref1 = &mut my_string; [INFO] [stdout] | -------------- mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 26 | let ref2 = &my_string; [INFO] [stdout] | ^^^^^^^^^^ immutable borrow occurs here [INFO] [stdout] 27 | [INFO] [stdout] 28 | *ref1 = String::from("foo"); [INFO] [stdout] | ----- mutable borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `my_string` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/borrow.rs:40:16 [INFO] [stdout] | [INFO] [stdout] 36 | let ref1 = &my_string; [INFO] [stdout] | ---------- immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 40 | let ref3 = &mut my_string; [INFO] [stdout] | ^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 44 | println!("Example 3: {}, {}", *ref1, *ref2); [INFO] [stdout] | ----- immutable borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `my_string` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/borrow.rs:40:16 [INFO] [stdout] | [INFO] [stdout] 36 | let ref1 = &my_string; [INFO] [stdout] | ---------- immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 40 | let ref3 = &mut my_string; [INFO] [stdout] | ^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 44 | println!("Example 3: {}, {}", *ref1, *ref2); [INFO] [stdout] | ----- immutable borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `my_string` does not live long enough [INFO] [stdout] --> src/borrow.rs:53:16 [INFO] [stdout] | [INFO] [stdout] 50 | let mut my_string = String::from("hello"); [INFO] [stdout] | ------------- binding `my_string` declared here [INFO] [stdout] ... [INFO] [stdout] 53 | ref1 = &mut my_string; [INFO] [stdout] | ^^^^^^^^^^^^^^ borrowed value does not live long enough [INFO] [stdout] 54 | } [INFO] [stdout] | - `my_string` dropped here while still borrowed [INFO] [stdout] 55 | [INFO] [stdout] 56 | *ref1 = String::from("my fair lady"); [INFO] [stdout] | ----- borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `my_string` does not live long enough [INFO] [stdout] --> src/borrow.rs:53:16 [INFO] [stdout] | [INFO] [stdout] 50 | let mut my_string = String::from("hello"); [INFO] [stdout] | ------------- binding `my_string` declared here [INFO] [stdout] ... [INFO] [stdout] 53 | ref1 = &mut my_string; [INFO] [stdout] | ^^^^^^^^^^^^^^ borrowed value does not live long enough [INFO] [stdout] 54 | } [INFO] [stdout] | - `my_string` dropped here while still borrowed [INFO] [stdout] 55 | [INFO] [stdout] 56 | *ref1 = String::from("my fair lady"); [INFO] [stdout] | ----- borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0499, E0502, E0597. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0499`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0499, E0502, E0597. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0499`. [INFO] [stdout] [INFO] [stderr] error: could not compile `borrowck_lightning_talk` (bin "borrowck_lightning_talk") due to 5 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `borrowck_lightning_talk` (bin "borrowck_lightning_talk" test) due to 5 previous errors [INFO] running `Command { std: "docker" "inspect" "ba577cf5135c2cbc071a156ef9034c32b0fdb125f0c99b640cd9f09651db75b6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ba577cf5135c2cbc071a156ef9034c32b0fdb125f0c99b640cd9f09651db75b6", kill_on_drop: false }` [INFO] [stdout] ba577cf5135c2cbc071a156ef9034c32b0fdb125f0c99b640cd9f09651db75b6 [INFO] checking ian-h-chamberlain/borrowck_examples against try#dae34b759e282c069aa28752564694effd121a63 for pr-125384 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fian-h-chamberlain%2Fborrowck_examples" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ian-h-chamberlain/borrowck_examples on toolchain dae34b759e282c069aa28752564694effd121a63 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+dae34b759e282c069aa28752564694effd121a63" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ian-h-chamberlain/borrowck_examples [INFO] finished tweaking git repo https://github.com/ian-h-chamberlain/borrowck_examples [INFO] tweaked toml for git repo https://github.com/ian-h-chamberlain/borrowck_examples written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/ian-h-chamberlain/borrowck_examples 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" "+dae34b759e282c069aa28752564694effd121a63" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [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:59a85a07ab18ca8720692f8e61effa1c651d9e2ca591e072c2b212bb91a6b8b5" "/opt/rustwide/cargo-home/bin/cargo" "+dae34b759e282c069aa28752564694effd121a63" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ffeb5f3571d26cb34953a9b05f781bfe697adb4c4ab925c4ab7101454257d8d4 [INFO] running `Command { std: "docker" "start" "-a" "ffeb5f3571d26cb34953a9b05f781bfe697adb4c4ab925c4ab7101454257d8d4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ffeb5f3571d26cb34953a9b05f781bfe697adb4c4ab925c4ab7101454257d8d4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ffeb5f3571d26cb34953a9b05f781bfe697adb4c4ab925c4ab7101454257d8d4", kill_on_drop: false }` [INFO] [stdout] ffeb5f3571d26cb34953a9b05f781bfe697adb4c4ab925c4ab7101454257d8d4 [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=allow" "-e" "RUSTDOCFLAGS=--cap-lints=allow" "-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:59a85a07ab18ca8720692f8e61effa1c651d9e2ca591e072c2b212bb91a6b8b5" "/opt/rustwide/cargo-home/bin/cargo" "+dae34b759e282c069aa28752564694effd121a63" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ed99ad8fb0cb3961370fa79810adc4d52ecf694967d5ffd0383e061669b6bb19 [INFO] running `Command { std: "docker" "start" "-a" "ed99ad8fb0cb3961370fa79810adc4d52ecf694967d5ffd0383e061669b6bb19", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] skipping non-2021 edition `2018` [INFO] running `Command { std: "docker" "inspect" "ed99ad8fb0cb3961370fa79810adc4d52ecf694967d5ffd0383e061669b6bb19", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ed99ad8fb0cb3961370fa79810adc4d52ecf694967d5ffd0383e061669b6bb19", kill_on_drop: false }` [INFO] [stdout] ed99ad8fb0cb3961370fa79810adc4d52ecf694967d5ffd0383e061669b6bb19