[INFO] cloning repository https://github.com/jmbayu/borrow_checker
[INFO] running `"git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/jmbayu/borrow_checker" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjmbayu%2Fborrow_checker"`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjmbayu%2Fborrow_checker'...
[INFO] running `"git" "rev-parse" "HEAD"`
[INFO] [stdout] 532410807215dbef9db99d8386be7fa5c7e1e837
[INFO] testing jmbayu/borrow_checker against 1.100.0-beta.13+cargoflags=--release for beta-release-1.101-2
[INFO] running `"git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjmbayu%2Fborrow_checker" "/workspace/builds/worker-6-tc1/source"`
[INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/jmbayu/borrow_checker
[INFO] finished tweaking git repo https://github.com/jmbayu/borrow_checker
[INFO] tweaked toml for git repo https://github.com/jmbayu/borrow_checker written to /workspace/builds/worker-6-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/jmbayu/borrow_checker on toolchain 1.100.0-beta.13
[INFO] running `"cargo" "+1.100.0-beta.13" "metadata" "--manifest-path" "Cargo.toml" "--no-deps"`
[INFO] crate git repo https://github.com/jmbayu/borrow_checker already has a lockfile, it will not be regenerated
[INFO] running `"cargo" "+1.100.0-beta.13" "fetch" "--manifest-path" "Cargo.toml"`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:13253766d39459fde29cea4e7c35a3fe37c2c19b4a224f71f2c27711c2837d36" "sleep" "infinity"`
[INFO] [stdout] e3000111e5ff33eac4d180e96ead27368c3c11e89a192584b8957c7f4db3bd16
[INFO] running `"docker" "start" "e3000111e5ff33eac4d180e96ead27368c3c11e89a192584b8957c7f4db3bd16"`
[INFO] running `"docker" "inspect" "e3000111e5ff33eac4d180e96ead27368c3c11e89a192584b8957c7f4db3bd16"`
[INFO] running `"docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "e3000111e5ff33eac4d180e96ead27368c3c11e89a192584b8957c7f4db3bd16" "/opt/rustwide/cargo-home/bin/cargo" "+1.100.0-beta.13" "metadata" "--no-deps" "--format-version=1"`
[INFO] running `"docker" "inspect" "e3000111e5ff33eac4d180e96ead27368c3c11e89a192584b8957c7f4db3bd16"`
[INFO] running `"docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "e3000111e5ff33eac4d180e96ead27368c3c11e89a192584b8957c7f4db3bd16" "/opt/rustwide/cargo-home/bin/cargo" "+1.100.0-beta.13" "build" "--frozen" "--message-format=json" "--release"`
[INFO] [stderr]    Compiling rust-borrow-checker-exercises v0.1.0 (/opt/rustwide/workdir)
[INFO] [stderr] error: could not compile `rust-borrow-checker-exercises` (bin "exercise_5") due to 1 previous error; 2 warnings emitted
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]  --> src/bin/exercise_5.rs:7:9
[INFO] [stdout]   |
[INFO] [stdout] 7 |     let mut s = String::from("hello");
[INFO] [stdout]   |         ----^
[INFO] [stdout]   |         |
[INFO] [stdout]   |         help: remove this `mut`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] error[E0505]: cannot move out of `s` because it is borrowed
[INFO] [stdout]   --> src/bin/exercise_5.rs:9:14
[INFO] [stdout]    |
[INFO] [stdout]  7 |     let mut s = String::from("hello");
[INFO] [stdout]    |         ----- binding `s` declared here
[INFO] [stdout]  8 |     let r = &s;
[INFO] [stdout]    |             -- borrow of `s` occurs here
[INFO] [stdout]  9 |     let s2 = s;
[INFO] [stdout]    |              ^ move out of `s` occurs here
[INFO] [stdout] 10 |     println!("{}", r);
[INFO] [stdout]    |                    - borrow later used here
[INFO] [stdout]    |
[INFO] [stdout] help: consider cloning the value if the performance cost is acceptable
[INFO] [stdout]    |
[INFO] [stdout]  8 |     let r = &s.clone();
[INFO] [stdout]    |               ++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `s2`
[INFO] [stdout]  --> src/bin/exercise_5.rs:9:9
[INFO] [stdout]   |
[INFO] [stdout] 9 |     let s2 = s;
[INFO] [stdout]   |         ^^ help: if this is intentional, prefix it with an underscore: `_s2`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0505`.
[INFO] [stdout] 
[INFO] [stdout] error[E0502]: cannot borrow `data` as mutable because it is also borrowed as immutable
[INFO] [stdout]   --> src/bin/exercise_2.rs:9:5
[INFO] [stdout]    |
[INFO] [stdout]  8 |     let first = &data[0];
[INFO] [stdout]    |                  ---- immutable borrow occurs here
[INFO] [stdout]  9 |     data.push(4);
[INFO] [stdout]    |     ^^^^^^^^^^^^ mutable borrow occurs here
[INFO] [stdout] 10 |     println!("the first element is: {}", first);
[INFO] [stdout]    |                                          ----- immutable borrow later used here
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `rust-borrow-checker-exercises` (bin "exercise_2") due to 1 previous error
[INFO] [stdout] For more information about this error, try `rustc --explain E0502`.
[INFO] [stdout] 
[INFO] [stdout] error[E0106]: missing lifetime specifier
[INFO] [stdout]  --> src/bin/exercise_1.rs:6:20
[INFO] [stdout]   |
[INFO] [stdout] 6 | fn get_string() -> &String {
[INFO] [stdout]   |                    ^ expected named lifetime parameter
[INFO] [stdout]   |
[INFO] [stdout]   = help: this function's return type contains a borrowed value, but there is no value for it to be borrowed from
[INFO] [stdout] help: consider using the `'static` lifetime, but this is uncommon unless you're returning a borrowed value from a `const` or a `static`
[INFO] [stdout]   |
[INFO] [stdout] 6 | fn get_string() -> &'static String {
[INFO] [stdout]   |                     +++++++
[INFO] [stdout] help: instead, you are more likely to want to return an owned value
[INFO] [stdout]   |
[INFO] [stdout] 6 - fn get_string() -> &String {
[INFO] [stdout] 6 + fn get_string() -> String {
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0597]: `s` does not live long enough
[INFO] [stdout]   --> src/bin/exercise_8.rs:15:38
[INFO] [stdout]    |
[INFO] [stdout] 14 |         let s = String::from("hello world");
[INFO] [stdout]    |             - binding `s` declared here
[INFO] [stdout] 15 |         my_struct = MyStruct { part: &s };
[INFO] [stdout]    |                                      ^^ borrowed value does not live long enough
[INFO] [stdout] 16 |     }
[INFO] [stdout]    |     - `s` dropped here while still borrowed
[INFO] [stdout] 17 |     println!("{}", my_struct.part);
[INFO] [stdout]    |                    -------------- borrow later used here
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0596]: cannot borrow `*some_string` as mutable, as it is behind a `&` reference
[INFO] [stdout]  --> src/bin/exercise_7.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 6 |     some_string.push_str(", world");
[INFO] [stdout]   |     ^^^^^^^^^^^ `some_string` is a `&` reference, so it cannot be borrowed as mutable
[INFO] [stdout]   |
[INFO] [stdout] help: consider changing this to be a mutable reference
[INFO] [stdout]   |
[INFO] [stdout] 5 | fn change(some_string: &mut String) {
[INFO] [stdout]   |                         +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0597`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `rust-borrow-checker-exercises` (bin "exercise_8") due to 1 previous error
[INFO] [stderr] error: could not compile `rust-borrow-checker-exercises` (bin "exercise_3") due to 1 previous error
[INFO] [stdout] error[E0499]: cannot borrow `s` as mutable more than once at a time
[INFO] [stdout]  --> src/bin/exercise_3.rs:8:14
[INFO] [stdout]   |
[INFO] [stdout] 7 |     let r1 = &mut s;
[INFO] [stdout]   |              ------ first mutable borrow occurs here
[INFO] [stdout] 8 |     let r2 = &mut s;
[INFO] [stdout]   |              ^^^^^^ second mutable borrow occurs here
[INFO] [stdout] 9 |     println!("{}, {}", r1, r2);
[INFO] [stdout]   |                        -- first borrow later used here
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `rust-borrow-checker-exercises` (bin "exercise_7") due to 1 previous error
[INFO] [stdout] For more information about this error, try `rustc --explain E0499`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `rust-borrow-checker-exercises` (bin "exercise_4") due to 1 previous error
[INFO] [stdout] For more information about this error, try `rustc --explain E0596`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `rust-borrow-checker-exercises` (bin "exercise_1") due to 1 previous error
[INFO] [stdout] error[E0502]: cannot borrow `s` as mutable because it is also borrowed as immutable
[INFO] [stdout]  --> src/bin/exercise_4.rs:8:14
[INFO] [stdout]   |
[INFO] [stdout] 7 |     let r1 = &s;
[INFO] [stdout]   |              -- immutable borrow occurs here
[INFO] [stdout] 8 |     let r2 = &mut s;
[INFO] [stdout]   |              ^^^^^^ mutable borrow occurs here
[INFO] [stdout] 9 |     println!("{}, {}", r1, r2);
[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 E0106`.
[INFO] [stdout] 
[INFO] [stdout] error[E0382]: borrow of moved value: `s1`
[INFO] [stdout]  --> src/bin/exercise_6.rs:8:27
[INFO] [stdout]   |
[INFO] [stdout] 6 |     let s1 = String::from("hello");
[INFO] [stdout]   |         -- move occurs because `s1` has type `String`, which does not implement the `Copy` trait
[INFO] [stdout] 7 |     let s2 = s1;
[INFO] [stdout]   |              -- value moved here
[INFO] [stdout] 8 |     println!("s1 is: {}", s1);
[INFO] [stdout]   |                           ^^ value borrowed here after move
[INFO] [stdout]   |
[INFO] [stdout] help: consider cloning the value if the performance cost is acceptable
[INFO] [stdout]   |
[INFO] [stdout] 7 |     let s2 = s1.clone();
[INFO] [stdout]   |                ++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `s2`
[INFO] [stdout]  --> src/bin/exercise_6.rs:7:9
[INFO] [stdout]   |
[INFO] [stdout] 7 |     let s2 = s1;
[INFO] [stdout]   |         ^^ help: if this is intentional, prefix it with an underscore: `_s2`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0382`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `rust-borrow-checker-exercises` (bin "exercise_6") due to 1 previous error; 1 warning emitted
[INFO] running `"docker" "inspect" "e3000111e5ff33eac4d180e96ead27368c3c11e89a192584b8957c7f4db3bd16"`
[INFO] running `"docker" "rm" "-f" "e3000111e5ff33eac4d180e96ead27368c3c11e89a192584b8957c7f4db3bd16"`
[INFO] [stdout] e3000111e5ff33eac4d180e96ead27368c3c11e89a192584b8957c7f4db3bd16
