[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] testing mehulkar/tokio-stdin against try#16fbf98f22730e073c09e7b03f0eafb87a295545 for pr-145628 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmehulkar%2Ftokio-stdin" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [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-5-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/mehulkar/tokio-stdin on toolchain 16fbf98f22730e073c09e7b03f0eafb87a295545 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+16fbf98f22730e073c09e7b03f0eafb87a295545" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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" "+16fbf98f22730e073c09e7b03f0eafb87a295545" "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 futures-executor v0.3.29 [INFO] [stderr] Downloaded futures-channel v0.3.29 [INFO] [stderr] Downloaded futures v0.3.29 [INFO] [stderr] Downloaded syn v2.0.40 [INFO] [stderr] Downloaded tokio v1.35.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+16fbf98f22730e073c09e7b03f0eafb87a295545" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] bdb8801a7a6be4c98cb3fd3a781bd960699238d934c5c8be21e25e0f3d1a9b9c [INFO] running `Command { std: "docker" "start" "-a" "bdb8801a7a6be4c98cb3fd3a781bd960699238d934c5c8be21e25e0f3d1a9b9c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "bdb8801a7a6be4c98cb3fd3a781bd960699238d934c5c8be21e25e0f3d1a9b9c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bdb8801a7a6be4c98cb3fd3a781bd960699238d934c5c8be21e25e0f3d1a9b9c", kill_on_drop: false }` [INFO] [stdout] bdb8801a7a6be4c98cb3fd3a781bd960699238d934c5c8be21e25e0f3d1a9b9c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+16fbf98f22730e073c09e7b03f0eafb87a295545" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ac634f794181e1ec99bece256a49b32b3f55b4a95730dd8ae9237eb905528ae4 [INFO] running `Command { std: "docker" "start" "-a" "ac634f794181e1ec99bece256a49b32b3f55b4a95730dd8ae9237eb905528ae4", kill_on_drop: false }` [INFO] [stderr] Compiling futures-core v0.3.29 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling futures-task v0.3.29 [INFO] [stderr] Compiling futures-channel v0.3.29 [INFO] [stderr] Compiling futures-util v0.3.29 [INFO] [stderr] Compiling futures-sink v0.3.29 [INFO] [stderr] Compiling futures-io v0.3.29 [INFO] [stderr] Compiling syn v2.0.40 [INFO] [stderr] Compiling mio v0.8.10 [INFO] [stderr] Compiling futures-macro v0.3.29 [INFO] [stderr] Compiling tokio-macros v2.2.0 [INFO] [stderr] Compiling tokio v1.35.0 [INFO] [stderr] Compiling futures-executor v0.3.29 [INFO] [stderr] Compiling futures v0.3.29 [INFO] [stderr] Compiling 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` [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] `Stdio` implements `From` [INFO] [stdout] `Stdio` implements `From` [INFO] [stdout] `Stdio` implements `From` [INFO] [stdout] `Stdio` implements `From` [INFO] [stdout] `Stdio` implements `From` [INFO] [stdout] `Stdio` implements `From` [INFO] [stdout] `Stdio` implements `From` [INFO] [stdout] `Stdio` implements `From` [INFO] [stdout] `Stdio` implements `From` [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-1949cf8c6b5b557f/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] | ^^^^^^^^^ borrowed value does not live long enough [INFO] [stdout] 23 | [INFO] [stdout] 24 | / tokio::spawn(async move { [INFO] [stdout] 25 | | spawn_task("t1", "npm", vec!["run", "build-a"], &mutex); [INFO] [stdout] 26 | | }); [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] | ---------- value moved here [INFO] [stdout] 25 | spawn_task("t1", "npm", vec!["run", "build-a"], &mutex); [INFO] [stdout] | ----- variable moved due to use in coroutine [INFO] [stdout] ... [INFO] [stdout] 28 | tokio::spawn(async move { [INFO] [stdout] | ^^^^^^^^^^ value used here after move [INFO] [stdout] 29 | spawn_task("t2", "npm", vec!["run", "build-b"], &mutex); [INFO] [stdout] | ----- use occurs due to use in coroutine [INFO] [stdout] | [INFO] [stdout] help: consider cloning the value before moving it into the closure [INFO] [stdout] | [INFO] [stdout] 24 ~ let value = mutex.clone(); [INFO] [stdout] 25 ~ tokio::spawn(async move { [INFO] [stdout] 26 ~ spawn_task("t1", "npm", vec!["run", "build-a"], &value); [INFO] [stdout] | [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] | --------- immutable borrow occurs here [INFO] [stdout] 23 | [INFO] [stdout] 24 | / tokio::spawn(async move { [INFO] [stdout] 25 | | spawn_task("t1", "npm", vec!["run", "build-a"], &mutex); [INFO] [stdout] 26 | | }); [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] | --------- immutable borrow occurs here [INFO] [stdout] 23 | [INFO] [stdout] 24 | / tokio::spawn(async move { [INFO] [stdout] 25 | | spawn_task("t1", "npm", vec!["run", "build-a"], &mutex); [INFO] [stdout] 26 | | }); [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] 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 5 previous errors [INFO] running `Command { std: "docker" "inspect" "ac634f794181e1ec99bece256a49b32b3f55b4a95730dd8ae9237eb905528ae4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ac634f794181e1ec99bece256a49b32b3f55b4a95730dd8ae9237eb905528ae4", kill_on_drop: false }` [INFO] [stdout] ac634f794181e1ec99bece256a49b32b3f55b4a95730dd8ae9237eb905528ae4