[INFO] updating cached repository https://github.com/ian-h-chamberlain/borrowck_examples
[INFO] running `"git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune"`
[INFO] running `"git" "rev-parse" "HEAD"`
[INFO] [stdout] 3c974e3a8d2cc0852e9a9f3c04bbf9d21b8e11ac
[INFO] checking ian-h-chamberlain/borrowck_examples against master#209b2be09fcaff937480d1fbbe8b31646e361c7a for pr-70917
[INFO] running `"git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fian-h-chamberlain%2Fborrowck_examples" "/workspace/builds/worker-5/source"`
[INFO] [stderr] Cloning into '/workspace/builds/worker-5/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/ian-h-chamberlain/borrowck_examples on toolchain 209b2be09fcaff937480d1fbbe8b31646e361c7a
[INFO] running `"/workspace/cargo-home/bin/cargo" "+209b2be09fcaff937480d1fbbe8b31646e361c7a" "read-manifest" "--manifest-path" "Cargo.toml"`
[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-5/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 `"/workspace/cargo-home/bin/cargo" "+209b2be09fcaff937480d1fbbe8b31646e361c7a" "fetch" "--locked" "--manifest-path" "Cargo.toml"`
[INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env" "/opt/rustwide/cargo-home/bin/cargo" "+209b2be09fcaff937480d1fbbe8b31646e361c7a" "check" "--frozen" "--all" "--all-targets"`
[INFO] [stdout] 56c618ea4fc3e777e3ff85e657e0064fbba1260c48c268a88b5d738c0b6bdb02
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] running `"docker" "start" "-a" "56c618ea4fc3e777e3ff85e657e0064fbba1260c48c268a88b5d738c0b6bdb02"`
[INFO] [stderr]     Checking borrowck_lightning_talk v0.1.0 (/opt/rustwide/workdir)
[INFO] [stderr] error[E0499]: cannot borrow `foo` as mutable more than once at a time
[INFO] [stderr]   --> src/borrow.rs:10:19
[INFO] [stderr]    |
[INFO] [stderr] 6  |     let bar = &mut foo;
[INFO] [stderr]    |               -------- first mutable borrow occurs here
[INFO] [stderr] ...
[INFO] [stderr] 10 |         let baz = &mut foo;
[INFO] [stderr]    |                   ^^^^^^^^ second mutable borrow occurs here
[INFO] [stderr] ...
[INFO] [stderr] 15 |     *bar += 1;
[INFO] [stderr]    |     --------- first borrow later used here
[INFO] [stderr] 
[INFO] [stderr] error[E0502]: cannot borrow `my_string` as immutable because it is also borrowed as mutable
[INFO] [stderr]   --> src/borrow.rs:26:16
[INFO] [stderr]    |
[INFO] [stderr] 23 |     let ref1 = &mut my_string;
[INFO] [stderr]    |                -------------- mutable borrow occurs here
[INFO] [stderr] ...
[INFO] [stderr] 26 |     let ref2 = &my_string;
[INFO] [stderr]    |                ^^^^^^^^^^ immutable borrow occurs here
[INFO] [stderr] 27 | 
[INFO] [stderr] 28 |     *ref1 = String::from("foo");
[INFO] [stderr]    |     ----- mutable borrow later used here
[INFO] [stderr] 
[INFO] [stderr] error[E0502]: cannot borrow `my_string` as mutable because it is also borrowed as immutable
[INFO] [stderr]   --> src/borrow.rs:40:16
[INFO] [stderr]    |
[INFO] [stderr] 36 |     let ref1 = &my_string;
[INFO] [stderr]    |                ---------- immutable borrow occurs here
[INFO] [stderr] ...
[INFO] [stderr] 40 |     let ref3 = &mut my_string;
[INFO] [stderr]    |                ^^^^^^^^^^^^^^ mutable borrow occurs here
[INFO] [stderr] ...
[INFO] [stderr] 44 |     println!("Example 3: {}, {}", *ref1, *ref2);
[INFO] [stderr]    |                                   ----- immutable borrow later used here
[INFO] [stderr] 
[INFO] [stderr] error[E0597]: `my_string` does not live long enough
[INFO] [stderr]   --> src/borrow.rs:53:16
[INFO] [stderr]    |
[INFO] [stderr] 53 |         ref1 = &mut my_string;
[INFO] [stderr]    |                ^^^^^^^^^^^^^^ borrowed value does not live long enough
[INFO] [stderr] 54 |     }
[INFO] [stderr]    |     - `my_string` dropped here while still borrowed
[INFO] [stderr] 55 | 
[INFO] [stderr] 56 |     *ref1 = String::from("my fair lady");
[INFO] [stderr]    |     ----- borrow later used here
[INFO] [stderr] 
[INFO] [stderr] error: aborting due to 4 previous errors
[INFO] [stderr] 
[INFO] [stderr] Some errors have detailed explanations: E0499, E0502, E0597.
[INFO] [stderr] For more information about an error, try `rustc --explain E0499`.
[INFO] [stderr] error: could not compile `borrowck_lightning_talk`.
[INFO] [stderr] 
[INFO] [stderr] To learn more, run the command again with --verbose.
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stderr] error[E0499]: cannot borrow `foo` as mutable more than once at a time
[INFO] [stderr]   --> src/borrow.rs:10:19
[INFO] [stderr]    |
[INFO] [stderr] 6  |     let bar = &mut foo;
[INFO] [stderr]    |               -------- first mutable borrow occurs here
[INFO] [stderr] ...
[INFO] [stderr] 10 |         let baz = &mut foo;
[INFO] [stderr]    |                   ^^^^^^^^ second mutable borrow occurs here
[INFO] [stderr] ...
[INFO] [stderr] 15 |     *bar += 1;
[INFO] [stderr]    |     --------- first borrow later used here
[INFO] [stderr] 
[INFO] [stderr] error[E0502]: cannot borrow `my_string` as immutable because it is also borrowed as mutable
[INFO] [stderr]   --> src/borrow.rs:26:16
[INFO] [stderr]    |
[INFO] [stderr] 23 |     let ref1 = &mut my_string;
[INFO] [stderr]    |                -------------- mutable borrow occurs here
[INFO] [stderr] ...
[INFO] [stderr] 26 |     let ref2 = &my_string;
[INFO] [stderr]    |                ^^^^^^^^^^ immutable borrow occurs here
[INFO] [stderr] 27 | 
[INFO] [stderr] 28 |     *ref1 = String::from("foo");
[INFO] [stderr]    |     ----- mutable borrow later used here
[INFO] [stderr] 
[INFO] [stderr] error[E0502]: cannot borrow `my_string` as mutable because it is also borrowed as immutable
[INFO] [stderr]   --> src/borrow.rs:40:16
[INFO] [stderr]    |
[INFO] [stderr] 36 |     let ref1 = &my_string;
[INFO] [stderr]    |                ---------- immutable borrow occurs here
[INFO] [stderr] ...
[INFO] [stderr] 40 |     let ref3 = &mut my_string;
[INFO] [stderr]    |                ^^^^^^^^^^^^^^ mutable borrow occurs here
[INFO] [stderr] ...
[INFO] [stderr] 44 |     println!("Example 3: {}, {}", *ref1, *ref2);
[INFO] [stderr]    |                                   ----- immutable borrow later used here
[INFO] [stderr] 
[INFO] [stderr] error[E0597]: `my_string` does not live long enough
[INFO] [stderr]   --> src/borrow.rs:53:16
[INFO] [stderr]    |
[INFO] [stderr] 53 |         ref1 = &mut my_string;
[INFO] [stderr]    |                ^^^^^^^^^^^^^^ borrowed value does not live long enough
[INFO] [stderr] 54 |     }
[INFO] [stderr]    |     - `my_string` dropped here while still borrowed
[INFO] [stderr] 55 | 
[INFO] [stderr] 56 |     *ref1 = String::from("my fair lady");
[INFO] [stderr]    |     ----- borrow later used here
[INFO] [stderr] 
[INFO] [stderr] error: aborting due to 4 previous errors
[INFO] [stderr] 
[INFO] [stderr] Some errors have detailed explanations: E0499, E0502, E0597.
[INFO] [stderr] For more information about an error, try `rustc --explain E0499`.
[INFO] [stderr] error: could not compile `borrowck_lightning_talk`.
[INFO] [stderr] 
[INFO] [stderr] To learn more, run the command again with --verbose.
[INFO] running `"docker" "inspect" "56c618ea4fc3e777e3ff85e657e0064fbba1260c48c268a88b5d738c0b6bdb02"`
[INFO] running `"docker" "rm" "-f" "56c618ea4fc3e777e3ff85e657e0064fbba1260c48c268a88b5d738c0b6bdb02"`
[INFO] [stdout] 56c618ea4fc3e777e3ff85e657e0064fbba1260c48c268a88b5d738c0b6bdb02
