[INFO] cloning repository https://github.com/kenji114/rust-socket-programming [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/kenji114/rust-socket-programming" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkenji114%2Frust-socket-programming", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkenji114%2Frust-socket-programming'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 11fc528789a9b4c9989a0102b1e79a4234ad705d [INFO] checking kenji114/rust-socket-programming against try#e117153a45c546e883c1f91d82611775fcaeffe0 for pr-146470 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkenji114%2Frust-socket-programming" "/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/kenji114/rust-socket-programming [INFO] finished tweaking git repo https://github.com/kenji114/rust-socket-programming [INFO] tweaked toml for git repo https://github.com/kenji114/rust-socket-programming written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/kenji114/rust-socket-programming on toolchain e117153a45c546e883c1f91d82611775fcaeffe0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+e117153a45c546e883c1f91d82611775fcaeffe0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/kenji114/rust-socket-programming 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" "+e117153a45c546e883c1f91d82611775fcaeffe0" "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-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+e117153a45c546e883c1f91d82611775fcaeffe0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a15cf8636fab1059be0c6c06d67eb24b4b5ffb160f86dcd750d69f64a646fee9 [INFO] running `Command { std: "docker" "start" "-a" "a15cf8636fab1059be0c6c06d67eb24b4b5ffb160f86dcd750d69f64a646fee9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a15cf8636fab1059be0c6c06d67eb24b4b5ffb160f86dcd750d69f64a646fee9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a15cf8636fab1059be0c6c06d67eb24b4b5ffb160f86dcd750d69f64a646fee9", kill_on_drop: false }` [INFO] [stdout] a15cf8636fab1059be0c6c06d67eb24b4b5ffb160f86dcd750d69f64a646fee9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+e117153a45c546e883c1f91d82611775fcaeffe0" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f9c8d7e1cabb8e77db208f3650d2ca6e218d31ef74623eaddc6de361e7cd9f07 [INFO] running `Command { std: "docker" "start" "-a" "f9c8d7e1cabb8e77db208f3650d2ca6e218d31ef74623eaddc6de361e7cd9f07", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.34 [INFO] [stderr] Compiling libc v0.2.112 [INFO] [stderr] Compiling syn v1.0.82 [INFO] [stderr] Compiling cc v1.0.72 [INFO] [stderr] Checking gimli v0.26.1 [INFO] [stderr] Checking aho-corasick v0.7.18 [INFO] [stderr] Checking object v0.27.1 [INFO] [stderr] Checking rustc-demangle v0.1.21 [INFO] [stderr] Checking termcolor v1.1.2 [INFO] [stderr] Checking regex v1.5.4 [INFO] [stderr] Compiling backtrace v0.3.63 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Compiling quote v1.0.10 [INFO] [stderr] Checking env_logger v0.6.2 [INFO] [stderr] Checking addr2line v0.17.0 [INFO] [stderr] Compiling synstructure v0.12.6 [INFO] [stderr] Compiling failure_derive v0.1.8 [INFO] [stderr] Checking failure v0.1.8 [INFO] [stderr] Checking rust-socket-programming v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `Read` and `Write` [INFO] [stdout] --> src/tcp_server.rs:1:15 [INFO] [stdout] | [INFO] [stdout] 1 | use std::io::{Read, Write}; [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: `Read` and `Write` [INFO] [stdout] --> src/tcp_server.rs:1:15 [INFO] [stdout] | [INFO] [stdout] 1 | use std::io::{Read, Write}; [INFO] [stdout] | ^^^^ ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/tcp_server.rs:21:38 [INFO] [stdout] | [INFO] [stdout] 21 | fn handler(mut stream: TcpStream) -> Result<(), failure::Error>{ [INFO] [stdout] | ------- ^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Result<(), Error>`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Result<(), failure::Error>` [INFO] [stdout] found unit type `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/tcp_server.rs:21:38 [INFO] [stdout] | [INFO] [stdout] 21 | fn handler(mut stream: TcpStream) -> Result<(), failure::Error>{ [INFO] [stdout] | ------- ^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Result<(), Error>`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Result<(), failure::Error>` [INFO] [stdout] found unit type `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `address` [INFO] [stdout] --> src/main.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | let address = &args[3]; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_address` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `address` [INFO] [stdout] --> src/main.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | let address = &args[3]; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_address` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-socket-programming` (bin "rust-socket-programming") due to 1 previous error; 2 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `rust-socket-programming` (bin "rust-socket-programming" test) due to 1 previous error; 2 warnings emitted [INFO] running `Command { std: "docker" "inspect" "f9c8d7e1cabb8e77db208f3650d2ca6e218d31ef74623eaddc6de361e7cd9f07", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f9c8d7e1cabb8e77db208f3650d2ca6e218d31ef74623eaddc6de361e7cd9f07", kill_on_drop: false }` [INFO] [stdout] f9c8d7e1cabb8e77db208f3650d2ca6e218d31ef74623eaddc6de361e7cd9f07