[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/7ce9e667599efc06a45a468ee02d3d59430abd54 against 1ed2df61a19042f231709eb05d032ae9e2cb2084 for pr-160235
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FShanthoshPrabhu%2Fhttp-client" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/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-7-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/ShanthoshPrabhu/http-client on toolchain 1ed2df61a19042f231709eb05d032ae9e2cb2084
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1ed2df61a19042f231709eb05d032ae9e2cb2084" "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" "+1ed2df61a19042f231709eb05d032ae9e2cb2084" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded ctrlc v3.4.5
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:00c5645b54fe3ce5dae1417175e3c7fb6a6646c021d554ecd63a097b8b9f3602" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] 23707875f798af524c7c7bc2e655b70015eb8e3cc43e8593abb50adee5b25d08
[INFO] running `Command { std: "docker" "start" "23707875f798af524c7c7bc2e655b70015eb8e3cc43e8593abb50adee5b25d08", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "23707875f798af524c7c7bc2e655b70015eb8e3cc43e8593abb50adee5b25d08", 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" "23707875f798af524c7c7bc2e655b70015eb8e3cc43e8593abb50adee5b25d08" "/opt/rustwide/cargo-home/bin/cargo" "+1ed2df61a19042f231709eb05d032ae9e2cb2084" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "23707875f798af524c7c7bc2e655b70015eb8e3cc43e8593abb50adee5b25d08", 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" "23707875f798af524c7c7bc2e655b70015eb8e3cc43e8593abb50adee5b25d08" "/opt/rustwide/cargo-home/bin/cargo" "+1ed2df61a19042f231709eb05d032ae9e2cb2084" "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]    Compiling unicode-ident v1.0.17
[INFO] [stderr]    Compiling nix v0.29.0
[INFO] [stderr]     Checking smallvec v1.14.0
[INFO] [stderr]     Checking bitflags v2.8.0
[INFO] [stderr]     Checking bytes v1.10.0
[INFO] [stderr]    Compiling quote v1.0.38
[INFO] [stderr]    Compiling syn v2.0.98
[INFO] [stderr]     Checking parking_lot_core v0.9.10
[INFO] [stderr]     Checking signal-hook-registry v1.4.2
[INFO] [stderr]     Checking socket2 v0.5.8
[INFO] [stderr]     Checking mio v1.0.3
[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: 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<String, String>,
[INFO] [stdout]   |         ^^^^^^^
[INFO] [stdout] 8 |     pub query_params: HashMap<String, String>,
[INFO] [stdout]   |         ^^^^^^^^^^^^
[INFO] [stdout] 9 |     pub body: Option<String>,
[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<dyn FnOnce() + Send + 'static>;
[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<F>(&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<Mutex<mpsc::Receiver<Message>>>) -> Worker {
[INFO] [stdout]    |        ^^^
[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<String, String>,
[INFO] [stdout]   |         ^^^^^^^
[INFO] [stdout] 8 |     pub query_params: HashMap<String, String>,
[INFO] [stdout]   |         ^^^^^^^^^^^^
[INFO] [stdout] 9 |     pub body: Option<String>,
[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<dyn FnOnce() + Send + 'static>;
[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<F>(&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<Mutex<mpsc::Receiver<Message>>>) -> Worker {
[INFO] [stdout]    |        ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 11.24s
[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" "23707875f798af524c7c7bc2e655b70015eb8e3cc43e8593abb50adee5b25d08", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "23707875f798af524c7c7bc2e655b70015eb8e3cc43e8593abb50adee5b25d08", kill_on_drop: false }`
[INFO] [stdout] 23707875f798af524c7c7bc2e655b70015eb8e3cc43e8593abb50adee5b25d08
