[INFO] cloning repository https://github.com/mehulkar/tokio-stdin [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/mehulkar/tokio-stdin" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmehulkar%2Ftokio-stdin", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmehulkar%2Ftokio-stdin'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 0555f0f9ff08cac2022bec567f2aba3a385de023 [INFO] checking mehulkar/tokio-stdin against master#5557f8c9d08d7f3f680943dcf97b6d4a7eb13aea for pr-124336 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmehulkar%2Ftokio-stdin" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/mehulkar/tokio-stdin on toolchain 5557f8c9d08d7f3f680943dcf97b6d4a7eb13aea [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+5557f8c9d08d7f3f680943dcf97b6d4a7eb13aea" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/mehulkar/tokio-stdin [INFO] finished tweaking git repo https://github.com/mehulkar/tokio-stdin [INFO] tweaked toml for git repo https://github.com/mehulkar/tokio-stdin written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/mehulkar/tokio-stdin 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" "+5557f8c9d08d7f3f680943dcf97b6d4a7eb13aea" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [ERROR] this task or one of its parent failed! [ERROR] no output for 300 seconds [ERROR] note: run with `RUST_BACKTRACE=1` to display a backtrace. [INFO] checking mehulkar/tokio-stdin against try#311f8b6ca41358db8ae08490a9ca0916f11e9de3 for pr-124336 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmehulkar%2Ftokio-stdin" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/mehulkar/tokio-stdin on toolchain 311f8b6ca41358db8ae08490a9ca0916f11e9de3 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+311f8b6ca41358db8ae08490a9ca0916f11e9de3" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/mehulkar/tokio-stdin [INFO] finished tweaking git repo https://github.com/mehulkar/tokio-stdin [INFO] tweaked toml for git repo https://github.com/mehulkar/tokio-stdin written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/mehulkar/tokio-stdin 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" "+311f8b6ca41358db8ae08490a9ca0916f11e9de3" "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] 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:99613afd962a8cfa530ec1899472a458bd015a1ab0af876cf7eb06f6006d81ea" "/opt/rustwide/cargo-home/bin/cargo" "+311f8b6ca41358db8ae08490a9ca0916f11e9de3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c6831ccf5f4d755807d471a02ddbc542eee0f260da3a3bf56aa9a87c5a71b8e4 [INFO] running `Command { std: "docker" "start" "-a" "c6831ccf5f4d755807d471a02ddbc542eee0f260da3a3bf56aa9a87c5a71b8e4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c6831ccf5f4d755807d471a02ddbc542eee0f260da3a3bf56aa9a87c5a71b8e4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c6831ccf5f4d755807d471a02ddbc542eee0f260da3a3bf56aa9a87c5a71b8e4", kill_on_drop: false }` [INFO] [stdout] c6831ccf5f4d755807d471a02ddbc542eee0f260da3a3bf56aa9a87c5a71b8e4 [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:99613afd962a8cfa530ec1899472a458bd015a1ab0af876cf7eb06f6006d81ea" "/opt/rustwide/cargo-home/bin/cargo" "+311f8b6ca41358db8ae08490a9ca0916f11e9de3" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 843173126f84ada41144a97d86576716beed297d12270edbc975e7d784c1e181 [INFO] running `Command { std: "docker" "start" "-a" "843173126f84ada41144a97d86576716beed297d12270edbc975e7d784c1e181", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling proc-macro2 v1.0.70 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling libc v0.2.151 [INFO] [stderr] Compiling futures-core v0.3.29 [INFO] [stderr] Compiling futures-channel v0.3.29 [INFO] [stderr] Compiling futures-task v0.3.29 [INFO] [stderr] Checking pin-project-lite v0.2.13 [INFO] [stderr] Checking futures-sink v0.3.29 [INFO] [stderr] Compiling futures-util v0.3.29 [INFO] [stderr] Compiling parking_lot_core v0.9.9 [INFO] [stderr] Checking smallvec v1.11.2 [INFO] [stderr] Checking futures-io v0.3.29 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Checking memchr v2.6.4 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling lock_api v0.4.11 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking bytes v1.5.0 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Compiling syn v2.0.40 [INFO] [stderr] Checking signal-hook-registry v1.4.1 [INFO] [stderr] Checking mio v0.8.10 [INFO] [stderr] Checking socket2 v0.5.5 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Compiling futures-macro v0.3.29 [INFO] [stderr] Compiling tokio-macros v2.2.0 [INFO] [stderr] Checking tokio v1.35.0 [INFO] [stderr] Checking futures-executor v0.3.29 [INFO] [stderr] Checking futures v0.3.29 [INFO] [stderr] Checking rust-stdin-tokio v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0277]: the trait bound `Stdio: From` is not satisfied [INFO] [stdout] --> src/main.rs:53:15 [INFO] [stdout] | [INFO] [stdout] 53 | cmd.stdin(yy); [INFO] [stdout] | ----- ^^ the trait `From` is not implemented for `Stdio`, which is required by `tokio::process::ChildStdin: Into` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `From`: [INFO] [stdout] > [INFO] [stdout] > [INFO] [stdout] > [INFO] [stdout] > [INFO] [stdout] > [INFO] [stdout] > [INFO] [stdout] > [INFO] [stdout] = note: required for `tokio::process::ChildStdin` to implement `Into` [INFO] [stdout] note: required by a bound in `tokio::process::Command::stdin` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.35.0/src/process/mod.rs:567:21 [INFO] [stdout] | [INFO] [stdout] 567 | pub fn stdin>(&mut self, cfg: T) -> &mut Command { [INFO] [stdout] | ^^^^^^^^^^^ required by this bound in `Command::stdin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Stdio: From` is not satisfied [INFO] [stdout] --> src/main.rs:53:15 [INFO] [stdout] | [INFO] [stdout] 53 | cmd.stdin(yy); [INFO] [stdout] | ----- ^^ the trait `From` is not implemented for `Stdio`, which is required by `tokio::process::ChildStdin: Into` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `From`: [INFO] [stdout] > [INFO] [stdout] > [INFO] [stdout] > [INFO] [stdout] > [INFO] [stdout] > [INFO] [stdout] > [INFO] [stdout] > [INFO] [stdout] = note: required for `tokio::process::ChildStdin` to implement `Into` [INFO] [stdout] note: required by a bound in `tokio::process::Command::stdin` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.35.0/src/process/mod.rs:567:21 [INFO] [stdout] | [INFO] [stdout] 567 | pub fn stdin>(&mut self, cfg: T) -> &mut Command { [INFO] [stdout] | ^^^^^^^^^^^ required by this bound in `Command::stdin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `t0_stdin` does not live long enough [INFO] [stdout] --> src/main.rs:22:37 [INFO] [stdout] | [INFO] [stdout] 21 | let mut t0_stdin = t0.stdin.take().expect("stdin mgr stdin"); [INFO] [stdout] | ------------ binding `t0_stdin` declared here [INFO] [stdout] 22 | let mutex = Arc::new(Mutex::new(&t0_stdin)); [INFO] [stdout] | -----------^^^^^^^^^- [INFO] [stdout] | | | [INFO] [stdout] | | borrowed value does not live long enough [INFO] [stdout] | argument requires that `t0_stdin` is borrowed for `'static` [INFO] [stdout] ... [INFO] [stdout] 38 | } [INFO] [stdout] | - `t0_stdin` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `t0_stdin` does not live long enough [INFO] [stdout] --> src/main.rs:22:37 [INFO] [stdout] | [INFO] [stdout] 21 | let mut t0_stdin = t0.stdin.take().expect("stdin mgr stdin"); [INFO] [stdout] | ------------ binding `t0_stdin` declared here [INFO] [stdout] 22 | let mutex = Arc::new(Mutex::new(&t0_stdin)); [INFO] [stdout] | -----------^^^^^^^^^- [INFO] [stdout] | | | [INFO] [stdout] | | borrowed value does not live long enough [INFO] [stdout] | argument requires that `t0_stdin` is borrowed for `'static` [INFO] [stdout] ... [INFO] [stdout] 38 | } [INFO] [stdout] | - `t0_stdin` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: use of moved value: `mutex` [INFO] [stdout] --> src/main.rs:28:18 [INFO] [stdout] | [INFO] [stdout] 22 | let mutex = Arc::new(Mutex::new(&t0_stdin)); [INFO] [stdout] | ----- move occurs because `mutex` has type `Arc>`, which does not implement the `Copy` trait [INFO] [stdout] 23 | [INFO] [stdout] 24 | tokio::spawn(async move { [INFO] [stdout] | __________________- [INFO] [stdout] 25 | | spawn_task("t1", "npm", vec!["run", "build-a"], &mutex); [INFO] [stdout] | | ----- variable moved due to use in coroutine [INFO] [stdout] 26 | | }); [INFO] [stdout] | |_____- value moved here [INFO] [stdout] 27 | [INFO] [stdout] 28 | tokio::spawn(async move { [INFO] [stdout] | __________________^ [INFO] [stdout] 29 | | spawn_task("t2", "npm", vec!["run", "build-b"], &mutex); [INFO] [stdout] | | ----- use occurs due to use in coroutine [INFO] [stdout] 30 | | }); [INFO] [stdout] | |_____^ value used here after move [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: use of moved value: `mutex` [INFO] [stdout] --> src/main.rs:28:18 [INFO] [stdout] | [INFO] [stdout] 22 | let mutex = Arc::new(Mutex::new(&t0_stdin)); [INFO] [stdout] | ----- move occurs because `mutex` has type `Arc>`, which does not implement the `Copy` trait [INFO] [stdout] 23 | [INFO] [stdout] 24 | tokio::spawn(async move { [INFO] [stdout] | __________________- [INFO] [stdout] 25 | | spawn_task("t1", "npm", vec!["run", "build-a"], &mutex); [INFO] [stdout] | | ----- variable moved due to use in coroutine [INFO] [stdout] 26 | | }); [INFO] [stdout] | |_____- value moved here [INFO] [stdout] 27 | [INFO] [stdout] 28 | tokio::spawn(async move { [INFO] [stdout] | __________________^ [INFO] [stdout] 29 | | spawn_task("t2", "npm", vec!["run", "build-b"], &mutex); [INFO] [stdout] | | ----- use occurs due to use in coroutine [INFO] [stdout] 30 | | }); [INFO] [stdout] | |_____^ value used here after move [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `t0_stdin` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/main.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 22 | let mutex = Arc::new(Mutex::new(&t0_stdin)); [INFO] [stdout] | --------------------- [INFO] [stdout] | | | [INFO] [stdout] | | immutable borrow occurs here [INFO] [stdout] | argument requires that `t0_stdin` is borrowed for `'static` [INFO] [stdout] ... [INFO] [stdout] 35 | t0_stdin.write_all(line.as_bytes()).await.expect(""); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `t0_stdin` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/main.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 22 | let mutex = Arc::new(Mutex::new(&t0_stdin)); [INFO] [stdout] | --------------------- [INFO] [stdout] | | | [INFO] [stdout] | | immutable borrow occurs here [INFO] [stdout] | argument requires that `t0_stdin` is borrowed for `'static` [INFO] [stdout] ... [INFO] [stdout] 35 | t0_stdin.write_all(line.as_bytes()).await.expect(""); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `t0_stdin` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/main.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 22 | let mutex = Arc::new(Mutex::new(&t0_stdin)); [INFO] [stdout] | --------------------- [INFO] [stdout] | | | [INFO] [stdout] | | immutable borrow occurs here [INFO] [stdout] | argument requires that `t0_stdin` is borrowed for `'static` [INFO] [stdout] ... [INFO] [stdout] 36 | t0_stdin.write_all(b"\n").await.expect(""); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `t0_stdin` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/main.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 22 | let mutex = Arc::new(Mutex::new(&t0_stdin)); [INFO] [stdout] | --------------------- [INFO] [stdout] | | | [INFO] [stdout] | | immutable borrow occurs here [INFO] [stdout] | argument requires that `t0_stdin` is borrowed for `'static` [INFO] [stdout] ... [INFO] [stdout] 36 | t0_stdin.write_all(b"\n").await.expect(""); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0382, E0502, E0597. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0382, E0502, E0597. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-stdin-tokio` (bin "rust-stdin-tokio") due to 6 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `rust-stdin-tokio` (bin "rust-stdin-tokio" test) due to 6 previous errors [INFO] running `Command { std: "docker" "inspect" "843173126f84ada41144a97d86576716beed297d12270edbc975e7d784c1e181", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "843173126f84ada41144a97d86576716beed297d12270edbc975e7d784c1e181", kill_on_drop: false }` [INFO] [stdout] 843173126f84ada41144a97d86576716beed297d12270edbc975e7d784c1e181