[INFO] cloning repository https://github.com/DeathRustZzZ/http-server-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/DeathRustZzZ/http-server-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDeathRustZzZ%2Fhttp-server-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDeathRustZzZ%2Fhttp-server-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 4b405aad96041031daa4df98fbe555a4162b109a [INFO] checking DeathRustZzZ/http-server-rs/4b405aad96041031daa4df98fbe555a4162b109a against 67854e511de21d881bb16426996cd4259d44aa2e for pr-161154 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDeathRustZzZ%2Fhttp-server-rs" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/DeathRustZzZ/http-server-rs [INFO] finished tweaking git repo https://github.com/DeathRustZzZ/http-server-rs [INFO] tweaked toml for git repo https://github.com/DeathRustZzZ/http-server-rs written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/DeathRustZzZ/http-server-rs on toolchain 67854e511de21d881bb16426996cd4259d44aa2e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+67854e511de21d881bb16426996cd4259d44aa2e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/DeathRustZzZ/http-server-rs 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" "+67854e511de21d881bb16426996cd4259d44aa2e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:8683fc1fc2eb5c9ac98e0d076ab094b2ffac7f99da555d2b6a2e27f346de2ec7" "sleep" "infinity", kill_on_drop: false }` [INFO] [stdout] ea455224459f8ef68763f87be6de27badc5f2a67fbdad267492ed4144fe03f10 [INFO] running `Command { std: "docker" "start" "ea455224459f8ef68763f87be6de27badc5f2a67fbdad267492ed4144fe03f10", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ea455224459f8ef68763f87be6de27badc5f2a67fbdad267492ed4144fe03f10", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "ea455224459f8ef68763f87be6de27badc5f2a67fbdad267492ed4144fe03f10" "/opt/rustwide/cargo-home/bin/cargo" "+67854e511de21d881bb16426996cd4259d44aa2e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ea455224459f8ef68763f87be6de27badc5f2a67fbdad267492ed4144fe03f10", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-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" "-w" "/opt/rustwide/workdir" "--user" "0:0" "ea455224459f8ef68763f87be6de27badc5f2a67fbdad267492ed4144fe03f10" "/opt/rustwide/cargo-home/bin/cargo" "+67854e511de21d881bb16426996cd4259d44aa2e" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] Checking http-server-rs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: enum `HttpError` is never used [INFO] [stdout] --> src/http/error.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | pub enum HttpError { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Method` is never used [INFO] [stdout] --> src/http/method.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | pub enum Method { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MethodError` is never constructed [INFO] [stdout] --> src/http/method.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 48 | pub struct MethodError(String); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `invalid_method` is never used [INFO] [stdout] --> src/http/method.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 50 | impl MethodError { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 54 | pub fn invalid_method(&self) -> &str { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StatusCode` is never constructed [INFO] [stdout] --> src/http/status_code.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct StatusCode(u16); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `InvalidStatusCode` is never constructed [INFO] [stdout] --> src/http/status_code.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | pub struct InvalidStatusCode(u16); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/http/status_code.rs:26:15 [INFO] [stdout] | [INFO] [stdout] 25 | impl StatusCode { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 26 | pub const OK: Self = Self(200); [INFO] [stdout] | ^^ [INFO] [stdout] 27 | pub const BAD_REQUEST: Self = Self(400); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 28 | pub const NOT_FOUND: Self = Self(404); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 29 | pub const INTERNAL_SERVER_ERROR: Self = Self(500); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pub const fn from_u16(code: u16) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | pub const fn as_u16(self) -> u16 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | pub const fn reason_phrase(self) -> Option<&'static str> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Response` is never constructed [INFO] [stdout] --> src/http/response.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct Response { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `send` are never used [INFO] [stdout] --> src/http/response.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 24 | impl Response { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn new(status_code: StatusCode, body: Option) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn send(&self, stream: &mut impl Write) -> IoResult<()> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `HttpError` is never used [INFO] [stdout] --> src/http/error.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | pub enum HttpError { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constants `BAD_REQUEST` and `INTERNAL_SERVER_ERROR` are never used [INFO] [stdout] --> src/http/status_code.rs:27:15 [INFO] [stdout] | [INFO] [stdout] 25 | impl StatusCode { [INFO] [stdout] | --------------- associated constants in this implementation [INFO] [stdout] 26 | pub const OK: Self = Self(200); [INFO] [stdout] 27 | pub const BAD_REQUEST: Self = Self(400); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 28 | pub const NOT_FOUND: Self = Self(404); [INFO] [stdout] 29 | pub const INTERNAL_SERVER_ERROR: Self = Self(500); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.18s [INFO] running `Command { std: "docker" "inspect" "ea455224459f8ef68763f87be6de27badc5f2a67fbdad267492ed4144fe03f10", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ea455224459f8ef68763f87be6de27badc5f2a67fbdad267492ed4144fe03f10", kill_on_drop: false }` [INFO] [stdout] ea455224459f8ef68763f87be6de27badc5f2a67fbdad267492ed4144fe03f10