[INFO] cloning repository https://github.com/ShanthoshPrabhu/http-client [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ShanthoshPrabhu/http-client" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FShanthoshPrabhu%2Fhttp-client", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FShanthoshPrabhu%2Fhttp-client'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 7ce9e667599efc06a45a468ee02d3d59430abd54 [INFO] checking ShanthoshPrabhu/http-client against f99a7560a6b5f0a5e6894aea7e8afe0e01d3edd1 for pr-160235-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FShanthoshPrabhu%2Fhttp-client" "/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/ShanthoshPrabhu/http-client [INFO] finished tweaking git repo https://github.com/ShanthoshPrabhu/http-client [INFO] tweaked toml for git repo https://github.com/ShanthoshPrabhu/http-client written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/ShanthoshPrabhu/http-client on toolchain f99a7560a6b5f0a5e6894aea7e8afe0e01d3edd1 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f99a7560a6b5f0a5e6894aea7e8afe0e01d3edd1" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/ShanthoshPrabhu/http-client 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" "+f99a7560a6b5f0a5e6894aea7e8afe0e01d3edd1" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/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] 976d66ff9136047b666161ddc91d0e19d7c0489a078104f40999bc3b35c4c7ec [INFO] running `Command { std: "docker" "start" "976d66ff9136047b666161ddc91d0e19d7c0489a078104f40999bc3b35c4c7ec", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "976d66ff9136047b666161ddc91d0e19d7c0489a078104f40999bc3b35c4c7ec", 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" "976d66ff9136047b666161ddc91d0e19d7c0489a078104f40999bc3b35c4c7ec" "/opt/rustwide/cargo-home/bin/cargo" "+f99a7560a6b5f0a5e6894aea7e8afe0e01d3edd1" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "976d66ff9136047b666161ddc91d0e19d7c0489a078104f40999bc3b35c4c7ec", 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" "976d66ff9136047b666161ddc91d0e19d7c0489a078104f40999bc3b35c4c7ec" "/opt/rustwide/cargo-home/bin/cargo" "+f99a7560a6b5f0a5e6894aea7e8afe0e01d3edd1" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.169 [INFO] [stderr] Compiling proc-macro2 v1.0.93 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling unicode-ident v1.0.17 [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Checking smallvec v1.14.0 [INFO] [stderr] Checking bitflags v2.8.0 [INFO] [stderr] Checking bytes v1.10.0 [INFO] [stderr] Compiling nix v0.29.0 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling quote v1.0.38 [INFO] [stderr] Compiling syn v2.0.98 [INFO] [stderr] Checking socket2 v0.5.8 [INFO] [stderr] Checking mio v1.0.3 [INFO] [stderr] Checking signal-hook-registry v1.4.2 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Checking ctrlc v3.4.5 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Checking tokio v1.43.0 [INFO] [stderr] Checking http-server v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/http.rs:52:16 [INFO] [stdout] | [INFO] [stdout] 52 | if (!body_lines.is_empty()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 52 - if (!body_lines.is_empty()) { [INFO] [stdout] 52 + if !body_lines.is_empty() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/server.rs:50:14 [INFO] [stdout] | [INFO] [stdout] 50 | let (mut socket, addr) = listener.accept().await.unwrap(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/http.rs:52:16 [INFO] [stdout] | [INFO] [stdout] 52 | if (!body_lines.is_empty()) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 52 - if (!body_lines.is_empty()) { [INFO] [stdout] 52 + if !body_lines.is_empty() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/server.rs:50:14 [INFO] [stdout] | [INFO] [stdout] 50 | let (mut socket, addr) = listener.accept().await.unwrap(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `http_version`, `headers`, `query_params`, and `body` are never read [INFO] [stdout] --> src/http.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Request { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 6 | pub http_version: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 7 | pub headers: HashMap, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 8 | pub query_params: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 9 | pub body: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `middleware` is never used [INFO] [stdout] --> src/middleware.rs:4:14 [INFO] [stdout] | [INFO] [stdout] 4 | pub async fn middleware(request: &Request) -> Response { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Job` is never used [INFO] [stdout] --> src/threadpool.rs:4:6 [INFO] [stdout] | [INFO] [stdout] 4 | type Job = Box; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Message` is never used [INFO] [stdout] --> src/threadpool.rs:6:6 [INFO] [stdout] | [INFO] [stdout] 6 | enum Message { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ThreadPool` is never constructed [INFO] [stdout] --> src/threadpool.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct ThreadPool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `execute` are never used [INFO] [stdout] --> src/threadpool.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl ThreadPool { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 17 | pub fn new(size: usize) -> ThreadPool { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn execute(&self, f: F) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Worker` is never constructed [INFO] [stdout] --> src/threadpool.rs:58:8 [INFO] [stdout] | [INFO] [stdout] 58 | struct Worker { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/threadpool.rs:64:8 [INFO] [stdout] | [INFO] [stdout] 63 | impl Worker { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 64 | fn new(id: usize, receiver: Arc>>) -> Worker { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `http_version`, `headers`, `query_params`, and `body` are never read [INFO] [stdout] --> src/http.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Request { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 6 | pub http_version: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 7 | pub headers: HashMap, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 8 | pub query_params: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 9 | pub body: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `middleware` is never used [INFO] [stdout] --> src/middleware.rs:4:14 [INFO] [stdout] | [INFO] [stdout] 4 | pub async fn middleware(request: &Request) -> Response { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Job` is never used [INFO] [stdout] --> src/threadpool.rs:4:6 [INFO] [stdout] | [INFO] [stdout] 4 | type Job = Box; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Message` is never used [INFO] [stdout] --> src/threadpool.rs:6:6 [INFO] [stdout] | [INFO] [stdout] 6 | enum Message { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ThreadPool` is never constructed [INFO] [stdout] --> src/threadpool.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct ThreadPool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `execute` are never used [INFO] [stdout] --> src/threadpool.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl ThreadPool { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 17 | pub fn new(size: usize) -> ThreadPool { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn execute(&self, f: F) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Worker` is never constructed [INFO] [stdout] --> src/threadpool.rs:58:8 [INFO] [stdout] | [INFO] [stdout] 58 | struct Worker { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/threadpool.rs:64:8 [INFO] [stdout] | [INFO] [stdout] 63 | impl Worker { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 64 | fn new(id: usize, receiver: Arc>>) -> Worker { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: unused dependency `ctrlc` [INFO] [stderr] --> Cargo.toml:2:1 [INFO] [stderr] | [INFO] [stderr] 2 | ctrlc = "3.2" [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `cargo::unused_dependencies` is set to `warn` by default [INFO] [stderr] help: consider removing the dependency on `ctrlc` [INFO] [stderr] warning: `http-server` (manifest) generated 1 warning [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 12.69s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: nix v0.29.0 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "976d66ff9136047b666161ddc91d0e19d7c0489a078104f40999bc3b35c4c7ec", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "976d66ff9136047b666161ddc91d0e19d7c0489a078104f40999bc3b35c4c7ec", kill_on_drop: false }` [INFO] [stdout] 976d66ff9136047b666161ddc91d0e19d7c0489a078104f40999bc3b35c4c7ec