[INFO] cloning repository https://github.com/mpata2000/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/mpata2000/HTTP-Server" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmpata2000%2FHTTP-Server", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmpata2000%2FHTTP-Server'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1bcc780658f54585a800ff127af2b40e2dcadb83 [INFO] checking mpata2000/HTTP-Server against master#9c3064e131f4939cc95a29bb11413c49bbda1491 for pr-144098 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmpata2000%2FHTTP-Server" "/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/mpata2000/HTTP-Server [INFO] finished tweaking git repo https://github.com/mpata2000/HTTP-Server [INFO] tweaked toml for git repo https://github.com/mpata2000/HTTP-Server written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/mpata2000/HTTP-Server on toolchain 9c3064e131f4939cc95a29bb11413c49bbda1491 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9c3064e131f4939cc95a29bb11413c49bbda1491" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/mpata2000/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" "+9c3064e131f4939cc95a29bb11413c49bbda1491" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+9c3064e131f4939cc95a29bb11413c49bbda1491" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] bb8919b3f90dbfe4d6914d04fb482cb6c9a3a98869223ceee7d9c2c54ea98132 [INFO] running `Command { std: "docker" "start" "-a" "bb8919b3f90dbfe4d6914d04fb482cb6c9a3a98869223ceee7d9c2c54ea98132", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "bb8919b3f90dbfe4d6914d04fb482cb6c9a3a98869223ceee7d9c2c54ea98132", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bb8919b3f90dbfe4d6914d04fb482cb6c9a3a98869223ceee7d9c2c54ea98132", kill_on_drop: false }` [INFO] [stdout] bb8919b3f90dbfe4d6914d04fb482cb6c9a3a98869223ceee7d9c2c54ea98132 [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:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+9c3064e131f4939cc95a29bb11413c49bbda1491" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f9b1a0f8418d979831ce8f2800c3c1fc48ca7b439d7604535010e95f1449b883 [INFO] running `Command { std: "docker" "start" "-a" "f9b1a0f8418d979831ce8f2800c3c1fc48ca7b439d7604535010e95f1449b883", kill_on_drop: false }` [INFO] [stderr] Compiling serde v1.0.193 [INFO] [stderr] Compiling serde_json v1.0.108 [INFO] [stderr] Checking ryu v1.0.16 [INFO] [stderr] Checking itoa v1.0.10 [INFO] [stderr] Checking HTTP-Server v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `http_request::HttpRequest` [INFO] [stdout] --> src/router.rs:4:48 [INFO] [stdout] | [INFO] [stdout] 4 | context::Context, http_method::HttpMethod, http_request::HttpRequest, http_status::HttpStatus, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Write` [INFO] [stdout] --> src/server.rs:5:21 [INFO] [stdout] | [INFO] [stdout] 5 | use std::io::{Read, Write}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TcpStream` [INFO] [stdout] --> src/server.rs:9:24 [INFO] [stdout] | [INFO] [stdout] 9 | net::{TcpListener, TcpStream}, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `http_request::HttpRequest` [INFO] [stdout] --> src/router.rs:4:48 [INFO] [stdout] | [INFO] [stdout] 4 | context::Context, http_method::HttpMethod, http_request::HttpRequest, http_status::HttpStatus, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Write` [INFO] [stdout] --> src/server.rs:5:21 [INFO] [stdout] | [INFO] [stdout] 5 | use std::io::{Read, Write}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TcpStream` [INFO] [stdout] --> src/server.rs:9:24 [INFO] [stdout] | [INFO] [stdout] 9 | net::{TcpListener, TcpStream}, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/server.rs:68:27 [INFO] [stdout] | [INFO] [stdout] 68 | fn read_head(mut stream: &mut S) -> Result { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/context.rs:46:13 [INFO] [stdout] | [INFO] [stdout] 46 | let mut r; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `start`, `read_head`, and `handle_connection` are never used [INFO] [stdout] --> src/server.rs:36:19 [INFO] [stdout] | [INFO] [stdout] 25 | impl Server { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 36 | pub(crate) fn start(&self, addr: &str) -> io::Result<()> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 68 | fn read_head(mut stream: &mut S) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 85 | fn handle_connection(mut stream: &mut S) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `HTTP_Server` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = help: convert the identifier to snake case: `http_server` [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/server.rs:68:27 [INFO] [stdout] | [INFO] [stdout] 68 | fn read_head(mut stream: &mut S) -> Result { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/context.rs:46:13 [INFO] [stdout] | [INFO] [stdout] 46 | let mut r; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `start` is never used [INFO] [stdout] --> src/server.rs:36:19 [INFO] [stdout] | [INFO] [stdout] 25 | impl Server { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 36 | pub(crate) fn start(&self, addr: &str) -> io::Result<()> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.37s [INFO] running `Command { std: "docker" "inspect" "f9b1a0f8418d979831ce8f2800c3c1fc48ca7b439d7604535010e95f1449b883", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f9b1a0f8418d979831ce8f2800c3c1fc48ca7b439d7604535010e95f1449b883", kill_on_drop: false }` [INFO] [stdout] f9b1a0f8418d979831ce8f2800c3c1fc48ca7b439d7604535010e95f1449b883