[INFO] fetching crate netserver 0.3.5... [INFO] checking netserver-0.3.5 against master#385fa9d845dd326c6bbfd58c22244215e431948a for absurd-question-mark-desugar [INFO] extracting crate netserver 0.3.5 into /workspace/builds/worker-0-tc1/source [INFO] validating manifest of crates.io crate netserver 0.3.5 on toolchain 385fa9d845dd326c6bbfd58c22244215e431948a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate netserver 0.3.5 [INFO] finished tweaking crates.io crate netserver 0.3.5 [INFO] tweaked toml for crates.io crate netserver 0.3.5 written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate crates.io crate netserver 0.3.5 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" "+385fa9d845dd326c6bbfd58c22244215e431948a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded ctrlc v3.4.1 [INFO] [stderr] Downloaded my_threadpool v1.0.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4f71f4f9868754f132d3194a77e7c7d5c83fec1332e6330f28d7b7e877f726b6 [INFO] running `Command { std: "docker" "start" "-a" "4f71f4f9868754f132d3194a77e7c7d5c83fec1332e6330f28d7b7e877f726b6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4f71f4f9868754f132d3194a77e7c7d5c83fec1332e6330f28d7b7e877f726b6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4f71f4f9868754f132d3194a77e7c7d5c83fec1332e6330f28d7b7e877f726b6", kill_on_drop: false }` [INFO] [stdout] 4f71f4f9868754f132d3194a77e7c7d5c83fec1332e6330f28d7b7e877f726b6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8dee0a79a6463b67b6085f9851e571e6ab89377e7b00c79dfaa12dd8c276b4de [INFO] running `Command { std: "docker" "start" "-a" "8dee0a79a6463b67b6085f9851e571e6ab89377e7b00c79dfaa12dd8c276b4de", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.150 [INFO] [stderr] Checking bitflags v2.4.1 [INFO] [stderr] Checking my_threadpool v1.0.1 [INFO] [stderr] Checking nix v0.27.1 [INFO] [stderr] Checking ctrlc v3.4.1 [INFO] [stderr] Checking netserver v0.3.5 (/opt/rustwide/workdir) [INFO] [stdout] warning: value assigned to `response` is never read [INFO] [stdout] --> src/lib.rs:657:29 [INFO] [stdout] | [INFO] [stdout] 657 | ... response = format!("HTTP/1.1 400 BAD REQUEST\r\nContent-Length: {}\r\n\r\n{}", contents.len(), contents); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:525:21 [INFO] [stdout] | [INFO] [stdout] 525 | let mut data = String::from_utf8_lossy(&data); [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/lib.rs:556:21 [INFO] [stdout] | [INFO] [stdout] 556 | let mut s2 = &mut s.split("/").collect::>(); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `HttpRequest` should have a snake case name [INFO] [stdout] --> src/lib.rs:248:8 [INFO] [stdout] | [INFO] [stdout] 248 | pub fn HttpRequest(request: Request) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `http_request` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `response` is never read [INFO] [stdout] --> src/lib.rs:657:29 [INFO] [stdout] | [INFO] [stdout] 657 | ... response = format!("HTTP/1.1 400 BAD REQUEST\r\nContent-Length: {}\r\n\r\n{}", contents.len(), contents); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:525:21 [INFO] [stdout] | [INFO] [stdout] 525 | let mut data = String::from_utf8_lossy(&data); [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/lib.rs:556:21 [INFO] [stdout] | [INFO] [stdout] 556 | let mut s2 = &mut s.split("/").collect::>(); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `HttpRequest` should have a snake case name [INFO] [stdout] --> src/lib.rs:248:8 [INFO] [stdout] | [INFO] [stdout] 248 | pub fn HttpRequest(request: Request) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `http_request` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: found module declaration for lib.rs [INFO] [stdout] --> src/main.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | mod lib; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: lib.rs is the root of this crate's library target [INFO] [stdout] = help: to refer to it from other targets, use the library's name as the path [INFO] [stdout] = note: `#[warn(special_module_name)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: found module declaration for lib.rs [INFO] [stdout] --> src/main.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | mod lib; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: lib.rs is the root of this crate's library target [INFO] [stdout] = help: to refer to it from other targets, use the library's name as the path [INFO] [stdout] = note: `#[warn(special_module_name)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `response` is never read [INFO] [stdout] --> src/lib.rs:657:29 [INFO] [stdout] | [INFO] [stdout] 657 | ... response = format!("HTTP/1.1 400 BAD REQUEST\r\nContent-Length: {}\r\n\r\n{}", contents.len(), contents); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:525:21 [INFO] [stdout] | [INFO] [stdout] 525 | let mut data = String::from_utf8_lossy(&data); [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/lib.rs:556:21 [INFO] [stdout] | [INFO] [stdout] 556 | let mut s2 = &mut s.split("/").collect::>(); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `ErrorMessage` is never used [INFO] [stdout] --> src/lib.rs:16:10 [INFO] [stdout] | [INFO] [stdout] 16 | pub type ErrorMessage = &'static str; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Rc201`, `Rc204`, `Rc304`, `Rc404`, `Rc429`, and `Rc500` are never constructed [INFO] [stdout] --> src/lib.rs:217:5 [INFO] [stdout] | [INFO] [stdout] 215 | pub enum ResponseCode { [INFO] [stdout] | ------------ variants in this enum [INFO] [stdout] 216 | Rc200, [INFO] [stdout] 217 | Rc201, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 218 | Rc204, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 219 | Rc304, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 220 | Rc400, [INFO] [stdout] 221 | Rc404, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 222 | Rc429, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 223 | Rc500, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `HttpRequest` is never used [INFO] [stdout] --> src/lib.rs:248:8 [INFO] [stdout] | [INFO] [stdout] 248 | pub fn HttpRequest(request: Request) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `from_threads`, `on_all`, and `not_found` are never used [INFO] [stdout] --> src/lib.rs:333:12 [INFO] [stdout] | [INFO] [stdout] 302 | impl WebServer { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 333 | pub fn from_threads(threads: usize) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 418 | pub fn on_all (String, ResponseCode) + Send + Sync + 'static>(&mut self, req_type: RequestType, route: &str, res: F) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 450 | pub fn not_found(&mut self, html: &str) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `HttpRequest` should have a snake case name [INFO] [stdout] --> src/lib.rs:248:8 [INFO] [stdout] | [INFO] [stdout] 248 | pub fn HttpRequest(request: Request) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `http_request` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `response` is never read [INFO] [stdout] --> src/lib.rs:657:29 [INFO] [stdout] | [INFO] [stdout] 657 | ... response = format!("HTTP/1.1 400 BAD REQUEST\r\nContent-Length: {}\r\n\r\n{}", contents.len(), contents); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:525:21 [INFO] [stdout] | [INFO] [stdout] 525 | let mut data = String::from_utf8_lossy(&data); [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/lib.rs:556:21 [INFO] [stdout] | [INFO] [stdout] 556 | let mut s2 = &mut s.split("/").collect::>(); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `ErrorMessage` is never used [INFO] [stdout] --> src/lib.rs:16:10 [INFO] [stdout] | [INFO] [stdout] 16 | pub type ErrorMessage = &'static str; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Rc201`, `Rc204`, `Rc304`, `Rc404`, `Rc429`, and `Rc500` are never constructed [INFO] [stdout] --> src/lib.rs:217:5 [INFO] [stdout] | [INFO] [stdout] 215 | pub enum ResponseCode { [INFO] [stdout] | ------------ variants in this enum [INFO] [stdout] 216 | Rc200, [INFO] [stdout] 217 | Rc201, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 218 | Rc204, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 219 | Rc304, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 220 | Rc400, [INFO] [stdout] 221 | Rc404, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 222 | Rc429, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 223 | Rc500, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `HttpRequest` is never used [INFO] [stdout] --> src/lib.rs:248:8 [INFO] [stdout] | [INFO] [stdout] 248 | pub fn HttpRequest(request: Request) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `from_threads`, `on_all`, and `not_found` are never used [INFO] [stdout] --> src/lib.rs:333:12 [INFO] [stdout] | [INFO] [stdout] 302 | impl WebServer { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 333 | pub fn from_threads(threads: usize) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 418 | pub fn on_all (String, ResponseCode) + Send + Sync + 'static>(&mut self, req_type: RequestType, route: &str, res: F) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 450 | pub fn not_found(&mut self, html: &str) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `HttpRequest` should have a snake case name [INFO] [stdout] --> src/lib.rs:248:8 [INFO] [stdout] | [INFO] [stdout] 248 | pub fn HttpRequest(request: Request) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `http_request` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 4.20s [INFO] running `Command { std: "docker" "inspect" "8dee0a79a6463b67b6085f9851e571e6ab89377e7b00c79dfaa12dd8c276b4de", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8dee0a79a6463b67b6085f9851e571e6ab89377e7b00c79dfaa12dd8c276b4de", kill_on_drop: false }` [INFO] [stdout] 8dee0a79a6463b67b6085f9851e571e6ab89377e7b00c79dfaa12dd8c276b4de [INFO] checking netserver-0.3.5 against try#645bb72776a6a56a1a8f52631a44bd082b2ba509 for absurd-question-mark-desugar [INFO] extracting crate netserver 0.3.5 into /workspace/builds/worker-0-tc2/source [INFO] validating manifest of crates.io crate netserver 0.3.5 on toolchain 645bb72776a6a56a1a8f52631a44bd082b2ba509 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate netserver 0.3.5 [INFO] finished tweaking crates.io crate netserver 0.3.5 [INFO] tweaked toml for crates.io crate netserver 0.3.5 written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] crate crates.io crate netserver 0.3.5 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" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b888d688126eac681046ac2978c9c780974b810de366186240efc1bba9659233 [INFO] running `Command { std: "docker" "start" "-a" "b888d688126eac681046ac2978c9c780974b810de366186240efc1bba9659233", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b888d688126eac681046ac2978c9c780974b810de366186240efc1bba9659233", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b888d688126eac681046ac2978c9c780974b810de366186240efc1bba9659233", kill_on_drop: false }` [INFO] [stdout] b888d688126eac681046ac2978c9c780974b810de366186240efc1bba9659233 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 463b8268c743a8d7b691e319d5e4b9659284aad4a8b12a97fba2806fd273309d [INFO] running `Command { std: "docker" "start" "-a" "463b8268c743a8d7b691e319d5e4b9659284aad4a8b12a97fba2806fd273309d", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.150 [INFO] [stderr] Checking bitflags v2.4.1 [INFO] [stderr] Checking my_threadpool v1.0.1 [INFO] [stderr] Checking nix v0.27.1 [INFO] [stderr] Checking ctrlc v3.4.1 [INFO] [stderr] Checking netserver v0.3.5 (/opt/rustwide/workdir) [INFO] [stdout] warning: value assigned to `response` is never read [INFO] [stdout] --> src/lib.rs:657:29 [INFO] [stdout] | [INFO] [stdout] 657 | ... response = format!("HTTP/1.1 400 BAD REQUEST\r\nContent-Length: {}\r\n\r\n{}", contents.len(), contents); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:525:21 [INFO] [stdout] | [INFO] [stdout] 525 | let mut data = String::from_utf8_lossy(&data); [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/lib.rs:556:21 [INFO] [stdout] | [INFO] [stdout] 556 | let mut s2 = &mut s.split("/").collect::>(); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `HttpRequest` should have a snake case name [INFO] [stdout] --> src/lib.rs:248:8 [INFO] [stdout] | [INFO] [stdout] 248 | pub fn HttpRequest(request: Request) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `http_request` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `response` is never read [INFO] [stdout] --> src/lib.rs:657:29 [INFO] [stdout] | [INFO] [stdout] 657 | ... response = format!("HTTP/1.1 400 BAD REQUEST\r\nContent-Length: {}\r\n\r\n{}", contents.len(), contents); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:525:21 [INFO] [stdout] | [INFO] [stdout] 525 | let mut data = String::from_utf8_lossy(&data); [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/lib.rs:556:21 [INFO] [stdout] | [INFO] [stdout] 556 | let mut s2 = &mut s.split("/").collect::>(); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `HttpRequest` should have a snake case name [INFO] [stdout] --> src/lib.rs:248:8 [INFO] [stdout] | [INFO] [stdout] 248 | pub fn HttpRequest(request: Request) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `http_request` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: found module declaration for lib.rs [INFO] [stdout] --> src/main.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | mod lib; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: lib.rs is the root of this crate's library target [INFO] [stdout] = help: to refer to it from other targets, use the library's name as the path [INFO] [stdout] = note: `#[warn(special_module_name)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: found module declaration for lib.rs [INFO] [stdout] --> src/main.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | mod lib; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: lib.rs is the root of this crate's library target [INFO] [stdout] = help: to refer to it from other targets, use the library's name as the path [INFO] [stdout] = note: `#[warn(special_module_name)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `response` is never read [INFO] [stdout] --> src/lib.rs:657:29 [INFO] [stdout] | [INFO] [stdout] 657 | ... response = format!("HTTP/1.1 400 BAD REQUEST\r\nContent-Length: {}\r\n\r\n{}", contents.len(), contents); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:525:21 [INFO] [stdout] | [INFO] [stdout] 525 | let mut data = String::from_utf8_lossy(&data); [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/lib.rs:556:21 [INFO] [stdout] | [INFO] [stdout] 556 | let mut s2 = &mut s.split("/").collect::>(); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `ErrorMessage` is never used [INFO] [stdout] --> src/lib.rs:16:10 [INFO] [stdout] | [INFO] [stdout] 16 | pub type ErrorMessage = &'static str; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Rc201`, `Rc204`, `Rc304`, `Rc404`, `Rc429`, and `Rc500` are never constructed [INFO] [stdout] --> src/lib.rs:217:5 [INFO] [stdout] | [INFO] [stdout] 215 | pub enum ResponseCode { [INFO] [stdout] | ------------ variants in this enum [INFO] [stdout] 216 | Rc200, [INFO] [stdout] 217 | Rc201, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 218 | Rc204, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 219 | Rc304, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 220 | Rc400, [INFO] [stdout] 221 | Rc404, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 222 | Rc429, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 223 | Rc500, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `HttpRequest` is never used [INFO] [stdout] --> src/lib.rs:248:8 [INFO] [stdout] | [INFO] [stdout] 248 | pub fn HttpRequest(request: Request) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `from_threads`, `on_all`, and `not_found` are never used [INFO] [stdout] --> src/lib.rs:333:12 [INFO] [stdout] | [INFO] [stdout] 302 | impl WebServer { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 333 | pub fn from_threads(threads: usize) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 418 | pub fn on_all (String, ResponseCode) + Send + Sync + 'static>(&mut self, req_type: RequestType, route: &str, res: F) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 450 | pub fn not_found(&mut self, html: &str) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `HttpRequest` should have a snake case name [INFO] [stdout] --> src/lib.rs:248:8 [INFO] [stdout] | [INFO] [stdout] 248 | pub fn HttpRequest(request: Request) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `http_request` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `response` is never read [INFO] [stdout] --> src/lib.rs:657:29 [INFO] [stdout] | [INFO] [stdout] 657 | ... response = format!("HTTP/1.1 400 BAD REQUEST\r\nContent-Length: {}\r\n\r\n{}", contents.len(), contents); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:525:21 [INFO] [stdout] | [INFO] [stdout] 525 | let mut data = String::from_utf8_lossy(&data); [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/lib.rs:556:21 [INFO] [stdout] | [INFO] [stdout] 556 | let mut s2 = &mut s.split("/").collect::>(); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `ErrorMessage` is never used [INFO] [stdout] --> src/lib.rs:16:10 [INFO] [stdout] | [INFO] [stdout] 16 | pub type ErrorMessage = &'static str; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Rc201`, `Rc204`, `Rc304`, `Rc404`, `Rc429`, and `Rc500` are never constructed [INFO] [stdout] --> src/lib.rs:217:5 [INFO] [stdout] | [INFO] [stdout] 215 | pub enum ResponseCode { [INFO] [stdout] | ------------ variants in this enum [INFO] [stdout] 216 | Rc200, [INFO] [stdout] 217 | Rc201, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 218 | Rc204, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 219 | Rc304, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 220 | Rc400, [INFO] [stdout] 221 | Rc404, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 222 | Rc429, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 223 | Rc500, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `HttpRequest` is never used [INFO] [stdout] --> src/lib.rs:248:8 [INFO] [stdout] | [INFO] [stdout] 248 | pub fn HttpRequest(request: Request) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `from_threads`, `on_all`, and `not_found` are never used [INFO] [stdout] --> src/lib.rs:333:12 [INFO] [stdout] | [INFO] [stdout] 302 | impl WebServer { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 333 | pub fn from_threads(threads: usize) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 418 | pub fn on_all (String, ResponseCode) + Send + Sync + 'static>(&mut self, req_type: RequestType, route: &str, res: F) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 450 | pub fn not_found(&mut self, html: &str) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `HttpRequest` should have a snake case name [INFO] [stdout] --> src/lib.rs:248:8 [INFO] [stdout] | [INFO] [stdout] 248 | pub fn HttpRequest(request: Request) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `http_request` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 4.00s [INFO] running `Command { std: "docker" "inspect" "463b8268c743a8d7b691e319d5e4b9659284aad4a8b12a97fba2806fd273309d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "463b8268c743a8d7b691e319d5e4b9659284aad4a8b12a97fba2806fd273309d", kill_on_drop: false }` [INFO] [stdout] 463b8268c743a8d7b691e319d5e4b9659284aad4a8b12a97fba2806fd273309d