[INFO] cloning repository https://github.com/hmak3d/demos-rs
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/hmak3d/demos-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhmak3d%2Fdemos-rs", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhmak3d%2Fdemos-rs'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 60fd84bc5d704d3dc9ea150f6bfd16f16898c720
[INFO] checking hmak3d/demos-rs against 3154cc1a3e6424e44f438a95007d043ed5ceaaf6 for pr-133502-30
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhmak3d%2Fdemos-rs" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/hmak3d/demos-rs
[INFO] finished tweaking git repo https://github.com/hmak3d/demos-rs
[INFO] tweaked toml for git repo https://github.com/hmak3d/demos-rs written to /workspace/builds/worker-2-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/hmak3d/demos-rs on toolchain 3154cc1a3e6424e44f438a95007d043ed5ceaaf6
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+3154cc1a3e6424e44f438a95007d043ed5ceaaf6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/hmak3d/demos-rs 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" "+3154cc1a3e6424e44f438a95007d043ed5ceaaf6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/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:77db811e55d90add9212f6832c23229e3de5f1c1f9905e8cb07319ea15df73ac" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] e90acc77c1fbde07aec8aee66bd7986a444d1c6075f8dd38029e3d2fecfcf4ad
[INFO] running `Command { std: "docker" "start" "e90acc77c1fbde07aec8aee66bd7986a444d1c6075f8dd38029e3d2fecfcf4ad", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "e90acc77c1fbde07aec8aee66bd7986a444d1c6075f8dd38029e3d2fecfcf4ad", kill_on_drop: false }`
[INFO] running `Command { std: "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" "e90acc77c1fbde07aec8aee66bd7986a444d1c6075f8dd38029e3d2fecfcf4ad" "/opt/rustwide/cargo-home/bin/cargo" "+3154cc1a3e6424e44f438a95007d043ed5ceaaf6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "e90acc77c1fbde07aec8aee66bd7986a444d1c6075f8dd38029e3d2fecfcf4ad", kill_on_drop: false }`
[INFO] running `Command { std: "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=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-w" "/opt/rustwide/workdir" "--user" "0:0" "e90acc77c1fbde07aec8aee66bd7986a444d1c6075f8dd38029e3d2fecfcf4ad" "/opt/rustwide/cargo-home/bin/cargo" "+3154cc1a3e6424e44f438a95007d043ed5ceaaf6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.189
[INFO] [stderr]    Compiling anyhow v1.0.102
[INFO] [stderr]     Checking chacha20 v0.10.2
[INFO] [stderr]    Compiling syn v2.0.117
[INFO] [stderr]     Checking getrandom v0.4.3
[INFO] [stderr]     Checking rand v0.10.2
[INFO] [stderr]     Checking simple v0.1.0 (/opt/rustwide/workdir/simple)
[INFO] [stdout] warning: unused import: `super::SimpleLinkedList`
[INFO] [stdout]    --> simple/src/exercism/simple_linked_list.rs:119:9
[INFO] [stdout]     |
[INFO] [stdout] 119 |     use super::SimpleLinkedList;
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0521]: borrowed data escapes outside of closure
[INFO] [stdout]   --> simple/src/bin/rpit_higher_ranked_lifetime.rs:30:9
[INFO] [stdout]    |
[INFO] [stdout] 14 |     let captured = Cell::new("hi");
[INFO] [stdout]    |         -------- `captured` declared here, outside of the closure body
[INFO] [stdout] 15 |     move |s| {
[INFO] [stdout]    |           - `s` is only valid in the closure body
[INFO] [stdout] ...
[INFO] [stdout] 30 |         captured.set(s); // <-- BAD won't compile (error[E0521]: borrowed data escapes outside of closure)
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^ `s` escapes the closure body here
[INFO] [stdout]    |
[INFO] [stdout]    = note: requirement occurs because of the type `Cell<&str>`, which makes the generic argument `&str` invariant
[INFO] [stdout]    = note: the struct `Cell<T>` is invariant over the parameter `T`
[INFO] [stdout]    = help: see <https://doc.rust-lang.org/nomicon/subtyping.html> for more information about variance
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0521]: borrowed data escapes outside of closure
[INFO] [stdout]   --> simple/src/bin/rpit_higher_ranked_lifetime.rs:38:9
[INFO] [stdout]    |
[INFO] [stdout] 36 |     let captured = Cell::new("hi");
[INFO] [stdout]    |         -------- `captured` declared here, outside of the closure body
[INFO] [stdout] 37 |     move |s| {
[INFO] [stdout]    |           - `s` is only valid in the closure body
[INFO] [stdout] 38 |         captured.set(s); // <-- BAD won't compile (error[E0521]: borrowed data escapes outside of closure)
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^ `s` escapes the closure body here
[INFO] [stdout]    |
[INFO] [stdout]    = note: requirement occurs because of the type `Cell<&str>`, which makes the generic argument `&str` invariant
[INFO] [stdout]    = note: the struct `Cell<T>` is invariant over the parameter `T`
[INFO] [stdout]    = help: see <https://doc.rust-lang.org/nomicon/subtyping.html> for more information about variance
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0521]: borrowed data escapes outside of closure
[INFO] [stdout]   --> simple/src/bin/rpit_higher_ranked_lifetime.rs:68:9
[INFO] [stdout]    |
[INFO] [stdout] 56 |     let mut captured = "hi";
[INFO] [stdout]    |         ------------ `captured` declared here, outside of the closure body
[INFO] [stdout] 57 |     move |s| {
[INFO] [stdout]    |           - `s` is only valid in the closure body
[INFO] [stdout] ...
[INFO] [stdout] 68 |         captured = s; // <-- BAD won't compile (error[E0521]: borrowed data escapes outside of closure)
[INFO] [stdout]    |         ^^^^^^^^^^^^ `s` escapes the closure body here
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0521]: borrowed data escapes outside of closure
[INFO] [stdout]   --> simple/src/bin/rpit_higher_ranked_lifetime.rs:76:9
[INFO] [stdout]    |
[INFO] [stdout] 74 |     let mut captured = "hi";
[INFO] [stdout]    |         ------------ `captured` declared here, outside of the closure body
[INFO] [stdout] 75 |     move |s| {
[INFO] [stdout]    |           - `s` is only valid in the closure body
[INFO] [stdout] 76 |         captured = s; // <-- BAD won't compile (error[E0521]: borrowed data escapes outside of closure)
[INFO] [stdout]    |         ^^^^^^^^^^^^ `s` escapes the closure body here
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0597]: `a2` does not live long enough
[INFO] [stdout]    --> simple/src/bin/rpit_higher_ranked_lifetime.rs:147:13
[INFO] [stdout]     |
[INFO] [stdout] 129 |         let a2 = String::from("a2");
[INFO] [stdout]     |             -- binding `a2` declared here
[INFO] [stdout] ...
[INFO] [stdout] 147 |         foo(&a2); // <-- BAD won't compile (error[E0597]: `a2` does not live long enough)
[INFO] [stdout]     |             ^^^ borrowed value does not live long enough
[INFO] [stdout] ...
[INFO] [stdout] 151 |     }
[INFO] [stdout]     |     -
[INFO] [stdout]     |     |
[INFO] [stdout]     |     `a2` dropped here while still borrowed
[INFO] [stdout]     |     borrow might be used here, when `foo` is dropped and runs the destructor for type `impl Fn(&str)`
[INFO] [stdout]     |
[INFO] [stdout]     = note: values in a scope are dropped in the opposite order they are defined
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0597]: `a2` does not live long enough
[INFO] [stdout]    --> simple/src/bin/rpit_higher_ranked_lifetime.rs:174:13
[INFO] [stdout]     |
[INFO] [stdout] 173 |         let a2 = String::from("a2");
[INFO] [stdout]     |             -- binding `a2` declared here
[INFO] [stdout] 174 |         foo(&a2); // <-- BAD won't compile (error[E0597]: `a2` does not live long enough)
[INFO] [stdout]     |             ^^^ borrowed value does not live long enough
[INFO] [stdout] ...
[INFO] [stdout] 177 |     }
[INFO] [stdout]     |     -
[INFO] [stdout]     |     |
[INFO] [stdout]     |     `a2` dropped here while still borrowed
[INFO] [stdout]     |     borrow might be used here, when `foo` is dropped and runs the destructor for type `impl FnMut(&str)`
[INFO] [stdout]     |
[INFO] [stdout]     = note: values in a scope are dropped in the opposite order they are defined
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0521, E0597.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0521`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `simple` (bin "rpit_higher_ranked_lifetime" test) due to 6 previous errors
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stderr] error: could not compile `simple` (bin "rpit_higher_ranked_lifetime") due to 6 previous errors
[INFO] [stdout] warning: unreachable statement
[INFO] [stdout]   --> simple/src/lib.rs:32:9
[INFO] [stdout]    |
[INFO] [stdout] 31 |         panic!("bad");
[INFO] [stdout]    |         ------------- any code following this expression is unreachable
[INFO] [stdout] 32 |         println!("test_par3 start");
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0521]: borrowed data escapes outside of closure
[INFO] [stdout]   --> simple/src/bin/rpit_higher_ranked_lifetime.rs:30:9
[INFO] [stdout]    |
[INFO] [stdout] 14 |     let captured = Cell::new("hi");
[INFO] [stdout]    |         -------- `captured` declared here, outside of the closure body
[INFO] [stdout] 15 |     move |s| {
[INFO] [stdout]    |           - `s` is only valid in the closure body
[INFO] [stdout] ...
[INFO] [stdout] 30 |         captured.set(s); // <-- BAD won't compile (error[E0521]: borrowed data escapes outside of closure)
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^ `s` escapes the closure body here
[INFO] [stdout]    |
[INFO] [stdout]    = note: requirement occurs because of the type `Cell<&str>`, which makes the generic argument `&str` invariant
[INFO] [stdout]    = note: the struct `Cell<T>` is invariant over the parameter `T`
[INFO] [stdout]    = help: see <https://doc.rust-lang.org/nomicon/subtyping.html> for more information about variance
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0521]: borrowed data escapes outside of closure
[INFO] [stdout]   --> simple/src/bin/rpit_higher_ranked_lifetime.rs:38:9
[INFO] [stdout]    |
[INFO] [stdout] 36 |     let captured = Cell::new("hi");
[INFO] [stdout]    |         -------- `captured` declared here, outside of the closure body
[INFO] [stdout] 37 |     move |s| {
[INFO] [stdout]    |           - `s` is only valid in the closure body
[INFO] [stdout] 38 |         captured.set(s); // <-- BAD won't compile (error[E0521]: borrowed data escapes outside of closure)
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^ `s` escapes the closure body here
[INFO] [stdout]    |
[INFO] [stdout]    = note: requirement occurs because of the type `Cell<&str>`, which makes the generic argument `&str` invariant
[INFO] [stdout]    = note: the struct `Cell<T>` is invariant over the parameter `T`
[INFO] [stdout]    = help: see <https://doc.rust-lang.org/nomicon/subtyping.html> for more information about variance
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0521]: borrowed data escapes outside of closure
[INFO] [stdout]   --> simple/src/bin/rpit_higher_ranked_lifetime.rs:68:9
[INFO] [stdout]    |
[INFO] [stdout] 56 |     let mut captured = "hi";
[INFO] [stdout]    |         ------------ `captured` declared here, outside of the closure body
[INFO] [stdout] 57 |     move |s| {
[INFO] [stdout]    |           - `s` is only valid in the closure body
[INFO] [stdout] ...
[INFO] [stdout] 68 |         captured = s; // <-- BAD won't compile (error[E0521]: borrowed data escapes outside of closure)
[INFO] [stdout]    |         ^^^^^^^^^^^^ `s` escapes the closure body here
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0521]: borrowed data escapes outside of closure
[INFO] [stdout]   --> simple/src/bin/rpit_higher_ranked_lifetime.rs:76:9
[INFO] [stdout]    |
[INFO] [stdout] 74 |     let mut captured = "hi";
[INFO] [stdout]    |         ------------ `captured` declared here, outside of the closure body
[INFO] [stdout] 75 |     move |s| {
[INFO] [stdout]    |           - `s` is only valid in the closure body
[INFO] [stdout] 76 |         captured = s; // <-- BAD won't compile (error[E0521]: borrowed data escapes outside of closure)
[INFO] [stdout]    |         ^^^^^^^^^^^^ `s` escapes the closure body here
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0597]: `a2` does not live long enough
[INFO] [stdout]    --> simple/src/bin/rpit_higher_ranked_lifetime.rs:147:13
[INFO] [stdout]     |
[INFO] [stdout] 129 |         let a2 = String::from("a2");
[INFO] [stdout]     |             -- binding `a2` declared here
[INFO] [stdout] ...
[INFO] [stdout] 147 |         foo(&a2); // <-- BAD won't compile (error[E0597]: `a2` does not live long enough)
[INFO] [stdout]     |             ^^^ borrowed value does not live long enough
[INFO] [stdout] ...
[INFO] [stdout] 151 |     }
[INFO] [stdout]     |     -
[INFO] [stdout]     |     |
[INFO] [stdout]     |     `a2` dropped here while still borrowed
[INFO] [stdout]     |     borrow might be used here, when `foo` is dropped and runs the destructor for type `impl Fn(&str)`
[INFO] [stdout]     |
[INFO] [stdout]     = note: values in a scope are dropped in the opposite order they are defined
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0597]: `a2` does not live long enough
[INFO] [stdout]    --> simple/src/bin/rpit_higher_ranked_lifetime.rs:174:13
[INFO] [stdout]     |
[INFO] [stdout] 173 |         let a2 = String::from("a2");
[INFO] [stdout]     |             -- binding `a2` declared here
[INFO] [stdout] 174 |         foo(&a2); // <-- BAD won't compile (error[E0597]: `a2` does not live long enough)
[INFO] [stdout]     |             ^^^ borrowed value does not live long enough
[INFO] [stdout] ...
[INFO] [stdout] 177 |     }
[INFO] [stdout]     |     -
[INFO] [stdout]     |     |
[INFO] [stdout]     |     `a2` dropped here while still borrowed
[INFO] [stdout]     |     borrow might be used here, when `foo` is dropped and runs the destructor for type `impl FnMut(&str)`
[INFO] [stdout]     |
[INFO] [stdout]     = note: values in a scope are dropped in the opposite order they are defined
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0521, E0597.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0521`.
[INFO] [stdout] 
[INFO] running `Command { std: "docker" "inspect" "e90acc77c1fbde07aec8aee66bd7986a444d1c6075f8dd38029e3d2fecfcf4ad", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "e90acc77c1fbde07aec8aee66bd7986a444d1c6075f8dd38029e3d2fecfcf4ad", kill_on_drop: false }`
[INFO] [stdout] e90acc77c1fbde07aec8aee66bd7986a444d1c6075f8dd38029e3d2fecfcf4ad
