[INFO] cloning repository https://github.com/hadyelzayady/light-http-server [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/hadyelzayady/light-http-server" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhadyelzayady%2Flight-http-server", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhadyelzayady%2Flight-http-server'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 748863e45c08a39359b3bfd33ac82c0caace886e [INFO] checking hadyelzayady/light-http-server against try#5cafabc9f16561d7796554d5d241c3068e2bd97f for pr-135852 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhadyelzayady%2Flight-http-server" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/hadyelzayady/light-http-server on toolchain 5cafabc9f16561d7796554d5d241c3068e2bd97f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+5cafabc9f16561d7796554d5d241c3068e2bd97f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] removed /workspace/builds/worker-5-tc2/source/.cargo/config.toml [INFO] started tweaking git repo https://github.com/hadyelzayady/light-http-server [INFO] finished tweaking git repo https://github.com/hadyelzayady/light-http-server [INFO] tweaked toml for git repo https://github.com/hadyelzayady/light-http-server written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/hadyelzayady/light-http-server 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" "+5cafabc9f16561d7796554d5d241c3068e2bd97f" "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-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:c80049f3b88b82089a44e0f06d0d6029d44b96b7257e55a1cd63dbc9f4c33334" "/opt/rustwide/cargo-home/bin/cargo" "+5cafabc9f16561d7796554d5d241c3068e2bd97f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9ae54bce21e013cc41decf2ba5a31ead58d68800d81e8975f54dc9130f209804 [INFO] running `Command { std: "docker" "start" "-a" "9ae54bce21e013cc41decf2ba5a31ead58d68800d81e8975f54dc9130f209804", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9ae54bce21e013cc41decf2ba5a31ead58d68800d81e8975f54dc9130f209804", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9ae54bce21e013cc41decf2ba5a31ead58d68800d81e8975f54dc9130f209804", kill_on_drop: false }` [INFO] [stdout] 9ae54bce21e013cc41decf2ba5a31ead58d68800d81e8975f54dc9130f209804 [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:c80049f3b88b82089a44e0f06d0d6029d44b96b7257e55a1cd63dbc9f4c33334" "/opt/rustwide/cargo-home/bin/cargo" "+5cafabc9f16561d7796554d5d241c3068e2bd97f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f9d62ad7000062712fc6a8cd00b94c69e35b5ade0e70157ec5049bdab41b5182 [INFO] running `Command { std: "docker" "start" "-a" "f9d62ad7000062712fc6a8cd00b94c69e35b5ade0e70157ec5049bdab41b5182", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.2.0 [INFO] [stderr] Checking iana-time-zone v0.1.60 [INFO] [stderr] Compiling num-traits v0.2.18 [INFO] [stderr] Checking chrono v0.4.38 [INFO] [stderr] Checking light-http-server v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: field `workers` is never read [INFO] [stdout] --> src/lib.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct ThreadPool { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 12 | workers: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ThreadPool` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `thread` is never read [INFO] [stdout] --> src/lib.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 16 | struct Worker { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 17 | thread: thread::JoinHandle<()>, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Worker` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `canonical_reason` is never used [INFO] [stdout] --> src/common/status.rs:22:16 [INFO] [stdout] | [INFO] [stdout] 22 | fn canonical_reason(num: u16) -> Option<&'static str> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | / status_codes! { [INFO] [stdout] 35 | | (100, CONTINUE, "Continue"); [INFO] [stdout] 36 | | (101, SWITCHING_PROTOCOLS, "Switching Protocols"); [INFO] [stdout] 37 | | (102, PROCESSING, "Processing"); [INFO] [stdout] ... | [INFO] [stdout] 105 | | (511, NETWORK_AUTHENTICATION_REQUIRED, "Network Authentication Required"); [INFO] [stdout] 106 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `status_codes` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/common/http_version.rs:33:8 [INFO] [stdout] | [INFO] [stdout] 32 | impl InvalidHttpVersion { [INFO] [stdout] | ----------------------- associated function in this implementation [INFO] [stdout] 33 | fn new() -> InvalidHttpVersion { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `method`, `uri`, `version`, `headers`, and `body` are never read [INFO] [stdout] --> src/http_request/http_request.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct HttpRequest { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 13 | method: HttpMethod, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 14 | uri: String, [INFO] [stdout] | ^^^ [INFO] [stdout] 15 | version: HttpVersion, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 16 | headers: Option, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 17 | body: Option>, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `HttpRequest` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/http_response/http_response.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | self.stream.write_all(self.to_string().as_bytes()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 32 | let _ = self.stream.write_all(self.to_string().as_bytes()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `workers` is never read [INFO] [stdout] --> src/lib.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct ThreadPool { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 12 | workers: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ThreadPool` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `thread` is never read [INFO] [stdout] --> src/lib.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 16 | struct Worker { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 17 | thread: thread::JoinHandle<()>, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Worker` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `canonical_reason` is never used [INFO] [stdout] --> src/common/status.rs:22:16 [INFO] [stdout] | [INFO] [stdout] 22 | fn canonical_reason(num: u16) -> Option<&'static str> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | / status_codes! { [INFO] [stdout] 35 | | (100, CONTINUE, "Continue"); [INFO] [stdout] 36 | | (101, SWITCHING_PROTOCOLS, "Switching Protocols"); [INFO] [stdout] 37 | | (102, PROCESSING, "Processing"); [INFO] [stdout] ... | [INFO] [stdout] 105 | | (511, NETWORK_AUTHENTICATION_REQUIRED, "Network Authentication Required"); [INFO] [stdout] 106 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `status_codes` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/common/http_version.rs:33:8 [INFO] [stdout] | [INFO] [stdout] 32 | impl InvalidHttpVersion { [INFO] [stdout] | ----------------------- associated function in this implementation [INFO] [stdout] 33 | fn new() -> InvalidHttpVersion { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `method`, `uri`, `version`, `headers`, and `body` are never read [INFO] [stdout] --> src/http_request/http_request.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct HttpRequest { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 13 | method: HttpMethod, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 14 | uri: String, [INFO] [stdout] | ^^^ [INFO] [stdout] 15 | version: HttpVersion, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 16 | headers: Option, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 17 | body: Option>, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `HttpRequest` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/http_response/http_response.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | self.stream.write_all(self.to_string().as_bytes()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 32 | let _ = self.stream.write_all(self.to_string().as_bytes()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: environment variable `ADDRESS` not defined at compile time [INFO] [stdout] --> src/main.rs:13:19 [INFO] [stdout] | [INFO] [stdout] 13 | let address = env!("ADDRESS"); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: use `std::env::var("ADDRESS")` to read the variable at run time [INFO] [stdout] = note: this error originates in the macro `env` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: environment variable `ADDRESS` not defined at compile time [INFO] [stdout] --> src/main.rs:13:19 [INFO] [stdout] | [INFO] [stdout] 13 | let address = env!("ADDRESS"); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: use `std::env::var("ADDRESS")` to read the variable at run time [INFO] [stdout] = note: this error originates in the macro `env` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `light-http-server` (bin "light-http-server" test) due to 1 previous error [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `light-http-server` (bin "light-http-server") due to 1 previous error [INFO] running `Command { std: "docker" "inspect" "f9d62ad7000062712fc6a8cd00b94c69e35b5ade0e70157ec5049bdab41b5182", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f9d62ad7000062712fc6a8cd00b94c69e35b5ade0e70157ec5049bdab41b5182", kill_on_drop: false }` [INFO] [stdout] f9d62ad7000062712fc6a8cd00b94c69e35b5ade0e70157ec5049bdab41b5182