[INFO] cloning repository https://github.com/irontigran/rustpty [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/irontigran/rustpty" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Firontigran%2Frustpty", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Firontigran%2Frustpty'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 6a16d56dc89babb11a2dccc7a1b8f9d1cc416e43 [INFO] testing irontigran/rustpty against master#562dee4820c458d823175268e41601d4c060588a for pr-154210-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Firontigran%2Frustpty" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/irontigran/rustpty [INFO] finished tweaking git repo https://github.com/irontigran/rustpty [INFO] tweaked toml for git repo https://github.com/irontigran/rustpty written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/irontigran/rustpty on toolchain 562dee4820c458d823175268e41601d4c060588a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/irontigran/rustpty 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" "+562dee4820c458d823175268e41601d4c060588a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded nix v0.25.0 [INFO] [stderr] Downloaded libc v0.2.132 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 906e2c64f3b8844776a71084645957325490b2a03611aab0dcfe53a25bd3da45 [INFO] running `Command { std: "docker" "start" "-a" "906e2c64f3b8844776a71084645957325490b2a03611aab0dcfe53a25bd3da45", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "906e2c64f3b8844776a71084645957325490b2a03611aab0dcfe53a25bd3da45", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "906e2c64f3b8844776a71084645957325490b2a03611aab0dcfe53a25bd3da45", kill_on_drop: false }` [INFO] [stdout] 906e2c64f3b8844776a71084645957325490b2a03611aab0dcfe53a25bd3da45 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] cf8d08feadca995a5cdc8ed3130a91c8820f1e9928f3f42c6df2724d125306bf [INFO] running `Command { std: "docker" "start" "-a" "cf8d08feadca995a5cdc8ed3130a91c8820f1e9928f3f42c6df2724d125306bf", kill_on_drop: false }` [INFO] [stderr] Compiling memoffset v0.6.5 [INFO] [stderr] Compiling libc v0.2.132 [INFO] [stderr] Compiling nix v0.25.0 [INFO] [stderr] Compiling rustpty v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `ForkptyResult` in this scope [INFO] [stdout] --> src/main.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | let ForkptyResult { mfd, proc } = pty::forkpty(None, None).expect("forkpty"); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 1 + use crate::pty::ForkptyResult; [INFO] [stdout] | [INFO] [stdout] 1 + use nix::pty::ForkptyResult; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `proc` in this scope [INFO] [stdout] --> src/main.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | if proc.is_parent() { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: the binding `proc` is available in a different scope in the same function [INFO] [stdout] --> src/main.rs:16:34 [INFO] [stdout] | [INFO] [stdout] 16 | let ForkptyResult { mfd, proc } = pty::forkpty(None, None).expect("forkpty"); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `openpty` in this scope [INFO] [stdout] --> src/main.rs:29:16 [INFO] [stdout] | [INFO] [stdout] 29 | let ends = openpty(None, None).expect("openpty failed"); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 1 + use crate::pty::openpty; [INFO] [stdout] | [INFO] [stdout] 1 + use nix::pty::openpty; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `process` in this scope [INFO] [stdout] --> src/main.rs:33:36 [INFO] [stdout] | [INFO] [stdout] 33 | let mut builder = Command::new(process); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::thread::sleep_ms`: replaced by `std::thread::sleep` [INFO] [stdout] --> src/main.rs:60:18 [INFO] [stdout] | [INFO] [stdout] 60 | std::thread::sleep_ms(1000); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 38 | / match builder.spawn() { [INFO] [stdout] 39 | | Ok(process) => { [INFO] [stdout] 40 | | let pty = Pty { [INFO] [stdout] 41 | | process, [INFO] [stdout] ... | [INFO] [stdout] 45 | | pty [INFO] [stdout] | | ^^^ expected `()`, found `Pty` [INFO] [stdout] ... | [INFO] [stdout] 50 | | } [INFO] [stdout] | |_____- expected this to be `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `create_pty` in this scope [INFO] [stdout] --> src/main.rs:53:15 [INFO] [stdout] | [INFO] [stdout] 53 | let pty = create_pty(shell); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0422, E0425. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rustpty` (bin "rustpty") due to 6 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "cf8d08feadca995a5cdc8ed3130a91c8820f1e9928f3f42c6df2724d125306bf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cf8d08feadca995a5cdc8ed3130a91c8820f1e9928f3f42c6df2724d125306bf", kill_on_drop: false }` [INFO] [stdout] cf8d08feadca995a5cdc8ed3130a91c8820f1e9928f3f42c6df2724d125306bf