[INFO] cloning repository https://github.com/ulvido/async_racers [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ulvido/async_racers" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fulvido%2Fasync_racers", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fulvido%2Fasync_racers'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 956e2c3fbf9666ad090c0035817056b6d9094d1e [INFO] checking ulvido/async_racers against try#0cb362313295507a2f4321c0e30cea0168f2fe71 for pr-138961-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fulvido%2Fasync_racers" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/ulvido/async_racers [INFO] finished tweaking git repo https://github.com/ulvido/async_racers [INFO] tweaked toml for git repo https://github.com/ulvido/async_racers written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/ulvido/async_racers on toolchain 0cb362313295507a2f4321c0e30cea0168f2fe71 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+0cb362313295507a2f4321c0e30cea0168f2fe71" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/ulvido/async_racers 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" "+0cb362313295507a2f4321c0e30cea0168f2fe71" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded ppv-lite86 v0.2.19 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:94a0c148923f5b2b52a63ef0eeb1882ad339ab61bce784c8077cbe41c61feb6c" "/opt/rustwide/cargo-home/bin/cargo" "+0cb362313295507a2f4321c0e30cea0168f2fe71" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b9163b972e82aba8d950896af4540151c59fba76aaec6ce28c0dafe45dc63a84 [INFO] running `Command { std: "docker" "start" "-a" "b9163b972e82aba8d950896af4540151c59fba76aaec6ce28c0dafe45dc63a84", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b9163b972e82aba8d950896af4540151c59fba76aaec6ce28c0dafe45dc63a84", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b9163b972e82aba8d950896af4540151c59fba76aaec6ce28c0dafe45dc63a84", kill_on_drop: false }` [INFO] [stdout] b9163b972e82aba8d950896af4540151c59fba76aaec6ce28c0dafe45dc63a84 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:94a0c148923f5b2b52a63ef0eeb1882ad339ab61bce784c8077cbe41c61feb6c" "/opt/rustwide/cargo-home/bin/cargo" "+0cb362313295507a2f4321c0e30cea0168f2fe71" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a1e9d9331754bdcbe511c6055be5a23667824dca06a3ae55c071ef0baa9745fc [INFO] running `Command { std: "docker" "start" "-a" "a1e9d9331754bdcbe511c6055be5a23667824dca06a3ae55c071ef0baa9745fc", kill_on_drop: false }` [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Compiling syn v2.0.72 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling tokio-macros v2.4.0 [INFO] [stderr] Checking tokio v1.39.2 [INFO] [stderr] Checking ppv-lite86 v0.2.19 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking async_racers v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `Cell` and `RefCell` [INFO] [stdout] --> src/lib.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | cell::{Cell, RefCell}, [INFO] [stdout] | ^^^^ ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Cell` and `RefCell` [INFO] [stdout] --> src/lib.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | cell::{Cell, RefCell}, [INFO] [stdout] | ^^^^ ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/lib.rs:43:26 [INFO] [stdout] | [INFO] [stdout] 43 | for racer in self.racers.lock().unwrap().iter() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ creates a temporary value which is freed while still in use [INFO] [stdout] 44 | / tokio::spawn(async move { [INFO] [stdout] 45 | | racer.do_lap().await; [INFO] [stdout] 46 | | }) [INFO] [stdout] | |__________________- argument requires that borrow lasts for `'static` [INFO] [stdout] ... [INFO] [stdout] 49 | } [INFO] [stdout] | - temporary value is freed at the end of this statement [INFO] [stdout] | [INFO] [stdout] note: requirement that the value outlives `'static` introduced here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.39.2/src/task/spawn.rs:167:28 [INFO] [stdout] | [INFO] [stdout] 167 | F: Future + Send + 'static, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0521]: borrowed data escapes outside of method [INFO] [stdout] --> src/lib.rs:44:17 [INFO] [stdout] | [INFO] [stdout] 27 | impl<'a> Race<'a> { [INFO] [stdout] | -- lifetime `'a` defined here [INFO] [stdout] ... [INFO] [stdout] 41 | pub async fn start(&mut self) { [INFO] [stdout] | --------- `self` is a reference that is only valid in the method body [INFO] [stdout] ... [INFO] [stdout] 44 | / tokio::spawn(async move { [INFO] [stdout] 45 | | racer.do_lap().await; [INFO] [stdout] 46 | | }) [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |__________________`self` escapes the method body here [INFO] [stdout] | argument requires that `'a` must outlive `'static` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0521]: borrowed data escapes outside of method [INFO] [stdout] --> src/lib.rs:44:17 [INFO] [stdout] | [INFO] [stdout] 41 | pub async fn start(&mut self) { [INFO] [stdout] | --------- [INFO] [stdout] | | [INFO] [stdout] | `self` is a reference that is only valid in the method body [INFO] [stdout] | let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 44 | / tokio::spawn(async move { [INFO] [stdout] 45 | | racer.do_lap().await; [INFO] [stdout] 46 | | }) [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |__________________`self` escapes the method body here [INFO] [stdout] | argument requires that `'1` must outlive `'static` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] help: replace `'a` with `'static` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/lib.rs:43:26 [INFO] [stdout] | [INFO] [stdout] 43 | for racer in self.racers.lock().unwrap().iter() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ creates a temporary value which is freed while still in use [INFO] [stdout] 44 | / tokio::spawn(async move { [INFO] [stdout] 45 | | racer.do_lap().await; [INFO] [stdout] 46 | | }) [INFO] [stdout] | |__________________- argument requires that borrow lasts for `'static` [INFO] [stdout] ... [INFO] [stdout] 49 | } [INFO] [stdout] | - temporary value is freed at the end of this statement [INFO] [stdout] | [INFO] [stdout] note: requirement that the value outlives `'static` introduced here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.39.2/src/task/spawn.rs:167:28 [INFO] [stdout] | [INFO] [stdout] 167 | F: Future + Send + 'static, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `async_racers` (lib) due to 3 previous errors; 1 warning emitted [INFO] [stdout] Some errors have detailed explanations: E0521, E0716. [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] For more information about an error, try `rustc --explain E0521`. [INFO] [stdout] [INFO] [stdout] error[E0521]: borrowed data escapes outside of method [INFO] [stdout] --> src/lib.rs:44:17 [INFO] [stdout] | [INFO] [stdout] 27 | impl<'a> Race<'a> { [INFO] [stdout] | -- lifetime `'a` defined here [INFO] [stdout] ... [INFO] [stdout] 41 | pub async fn start(&mut self) { [INFO] [stdout] | --------- `self` is a reference that is only valid in the method body [INFO] [stdout] ... [INFO] [stdout] 44 | / tokio::spawn(async move { [INFO] [stdout] 45 | | racer.do_lap().await; [INFO] [stdout] 46 | | }) [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |__________________`self` escapes the method body here [INFO] [stdout] | argument requires that `'a` must outlive `'static` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0521]: borrowed data escapes outside of method [INFO] [stdout] --> src/lib.rs:44:17 [INFO] [stdout] | [INFO] [stdout] 41 | pub async fn start(&mut self) { [INFO] [stdout] | --------- [INFO] [stdout] | | [INFO] [stdout] | `self` is a reference that is only valid in the method body [INFO] [stdout] | let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 44 | / tokio::spawn(async move { [INFO] [stdout] 45 | | racer.do_lap().await; [INFO] [stdout] 46 | | }) [INFO] [stdout] | | ^ [INFO] [stdout] | | | [INFO] [stdout] | |__________________`self` escapes the method body here [INFO] [stdout] | argument requires that `'1` must outlive `'static` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] help: replace `'a` with `'static` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0521, E0716. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0521`. [INFO] [stdout] [INFO] [stderr] error: could not compile `async_racers` (lib test) due to 3 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "a1e9d9331754bdcbe511c6055be5a23667824dca06a3ae55c071ef0baa9745fc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a1e9d9331754bdcbe511c6055be5a23667824dca06a3ae55c071ef0baa9745fc", kill_on_drop: false }` [INFO] [stdout] a1e9d9331754bdcbe511c6055be5a23667824dca06a3ae55c071ef0baa9745fc