[INFO] cloning repository https://github.com/Dino16m/rust-server [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Dino16m/rust-server" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDino16m%2Frust-server", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDino16m%2Frust-server'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 2512d2ac0bd571cade4334ec150fdb7ff2cf2d8a [INFO] checking Dino16m/rust-server/2512d2ac0bd571cade4334ec150fdb7ff2cf2d8a against master#ab869e094a907cc5d19b4080f22eccaf347f1f95 for pr-129604 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDino16m%2Frust-server" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Dino16m/rust-server on toolchain ab869e094a907cc5d19b4080f22eccaf347f1f95 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Dino16m/rust-server [INFO] finished tweaking git repo https://github.com/Dino16m/rust-server [INFO] tweaked toml for git repo https://github.com/Dino16m/rust-server written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/Dino16m/rust-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" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e3846dae3cfb10c38412f93e00c9c0e99bd010ebb7b8c8b033df3ea233144ceb [INFO] running `Command { std: "docker" "start" "-a" "e3846dae3cfb10c38412f93e00c9c0e99bd010ebb7b8c8b033df3ea233144ceb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e3846dae3cfb10c38412f93e00c9c0e99bd010ebb7b8c8b033df3ea233144ceb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e3846dae3cfb10c38412f93e00c9c0e99bd010ebb7b8c8b033df3ea233144ceb", kill_on_drop: false }` [INFO] [stdout] e3846dae3cfb10c38412f93e00c9c0e99bd010ebb7b8c8b033df3ea233144ceb [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] cec3572a58562526df9fb8c4268be916533e511cca15e0d89d77dbe2b6c2987c [INFO] running `Command { std: "docker" "start" "-a" "cec3572a58562526df9fb8c4268be916533e511cca15e0d89d77dbe2b6c2987c", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.151 [INFO] [stderr] Compiling proc-macro2 v1.0.66 [INFO] [stderr] Compiling unicode-ident v1.0.11 [INFO] [stderr] Compiling parking_lot_core v0.9.8 [INFO] [stderr] Compiling syn v1.0.48 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Compiling lock_api v0.4.10 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Checking smallvec v1.11.0 [INFO] [stderr] Compiling tokio v1.29.1 [INFO] [stderr] Compiling thiserror v1.0.38 [INFO] [stderr] Compiling anyhow v1.0.68 [INFO] [stderr] Checking bytes v1.3.0 [INFO] [stderr] Checking pin-project-lite v0.2.10 [INFO] [stderr] Checking itoa v1.0.10 [INFO] [stderr] Checking either v1.9.0 [INFO] [stderr] Checking minimal-lexical v0.2.1 [INFO] [stderr] Checking diff v0.1.13 [INFO] [stderr] Checking http v1.0.0 [INFO] [stderr] Checking yansi v0.5.1 [INFO] [stderr] Compiling quote v1.0.32 [INFO] [stderr] Checking itertools v0.11.0 [INFO] [stderr] Checking pretty_assertions v1.4.0 [INFO] [stderr] Compiling syn v2.0.27 [INFO] [stderr] Checking nom v7.1.3 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking mio v0.8.8 [INFO] [stderr] Checking socket2 v0.4.9 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Checking signal-hook-registry v1.4.1 [INFO] [stderr] Checking threadpool v1.8.1 [INFO] [stderr] Compiling thiserror-impl v1.0.38 [INFO] [stderr] Compiling tokio-macros v2.1.0 [INFO] [stderr] Checking http-server-starter-rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/request.rs:42:23 [INFO] [stdout] | [INFO] [stdout] 42 | pub struct HTTPHeader(pub String, pub String); [INFO] [stdout] | ---------- ^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing these fields [INFO] [stdout] = note: `HTTPHeader` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/request.rs:45:22 [INFO] [stdout] | [INFO] [stdout] 45 | pub struct HTTPQuery(String, String); [INFO] [stdout] | --------- ^^^^^^ ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing these fields [INFO] [stdout] = note: `HTTPQuery` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `http_version`, `headers`, `queries`, and `body` are never read [INFO] [stdout] --> src/request.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 48 | pub struct HTTPContext { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 49 | pub method: HTTPMethod, [INFO] [stdout] 50 | pub http_version: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 51 | pub headers: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 52 | pub path: String, [INFO] [stdout] 53 | pub queries: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 54 | pub body: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `HTTPContext` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `set_header` is never used [INFO] [stdout] --> src/response.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl HttpResponse { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn set_header(&mut self, key: HeaderName, value: &str) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `context` is never read [INFO] [stdout] --> src/route.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct HTTPRequest { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 11 | pub context: HTTPContext, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Next` and `End` are never constructed [INFO] [stdout] --> src/route.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 19 | pub enum PreRequestMiddlewareResult { [INFO] [stdout] | -------------------------- variants in this enum [INFO] [stdout] 20 | Next, [INFO] [stdout] | ^^^^ [INFO] [stdout] 21 | End(HttpResponse), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Next` and `End` are never constructed [INFO] [stdout] --> src/route.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 24 | pub enum PostRequestMiddlewareResult { [INFO] [stdout] | --------------------------- variants in this enum [INFO] [stdout] 25 | Next(HttpResponse), [INFO] [stdout] | ^^^^ [INFO] [stdout] 26 | End(HttpResponse), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `key` and `value` are never read [INFO] [stdout] --> src/route.rs:39:21 [INFO] [stdout] | [INFO] [stdout] 39 | Parameterized { key: String, value: String }, [INFO] [stdout] | ------------- ^^^ ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `from_path`, `add_post_request_middleware`, and `add_pre_request_middleware` are never used [INFO] [stdout] --> src/route.rs:165:8 [INFO] [stdout] | [INFO] [stdout] 152 | impl RouteMapping { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 165 | fn from_path(path: &str) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 174 | fn add_post_request_middleware( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 189 | fn add_pre_request_middleware( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `nest`, `before`, and `after` are never used [INFO] [stdout] --> src/route.rs:288:12 [INFO] [stdout] | [INFO] [stdout] 274 | impl Router { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 288 | pub fn nest(&mut self, router: Router) -> &mut Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 293 | pub fn before(&mut self, path: &str, middleware: T) -> &mut Self [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 313 | pub fn after(&mut self, path: &str, middleware: T) -> &mut Self [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/request.rs:42:23 [INFO] [stdout] | [INFO] [stdout] 42 | pub struct HTTPHeader(pub String, pub String); [INFO] [stdout] | ---------- ^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing these fields [INFO] [stdout] = note: `HTTPHeader` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/request.rs:45:22 [INFO] [stdout] | [INFO] [stdout] 45 | pub struct HTTPQuery(String, String); [INFO] [stdout] | --------- ^^^^^^ ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing these fields [INFO] [stdout] = note: `HTTPQuery` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `http_version`, `headers`, `queries`, and `body` are never read [INFO] [stdout] --> src/request.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 48 | pub struct HTTPContext { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 49 | pub method: HTTPMethod, [INFO] [stdout] 50 | pub http_version: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 51 | pub headers: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 52 | pub path: String, [INFO] [stdout] 53 | pub queries: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 54 | pub body: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `HTTPContext` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `set_header` is never used [INFO] [stdout] --> src/response.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl HttpResponse { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn set_header(&mut self, key: HeaderName, value: &str) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `context` is never read [INFO] [stdout] --> src/route.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct HTTPRequest { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 11 | pub context: HTTPContext, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Next` and `End` are never constructed [INFO] [stdout] --> src/route.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 19 | pub enum PreRequestMiddlewareResult { [INFO] [stdout] | -------------------------- variants in this enum [INFO] [stdout] 20 | Next, [INFO] [stdout] | ^^^^ [INFO] [stdout] 21 | End(HttpResponse), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Next` and `End` are never constructed [INFO] [stdout] --> src/route.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 24 | pub enum PostRequestMiddlewareResult { [INFO] [stdout] | --------------------------- variants in this enum [INFO] [stdout] 25 | Next(HttpResponse), [INFO] [stdout] | ^^^^ [INFO] [stdout] 26 | End(HttpResponse), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `key` and `value` are never read [INFO] [stdout] --> src/route.rs:39:21 [INFO] [stdout] | [INFO] [stdout] 39 | Parameterized { key: String, value: String }, [INFO] [stdout] | ------------- ^^^ ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `from_path`, `add_post_request_middleware`, and `add_pre_request_middleware` are never used [INFO] [stdout] --> src/route.rs:165:8 [INFO] [stdout] | [INFO] [stdout] 152 | impl RouteMapping { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 165 | fn from_path(path: &str) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 174 | fn add_post_request_middleware( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 189 | fn add_pre_request_middleware( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `nest`, `before`, and `after` are never used [INFO] [stdout] --> src/route.rs:288:12 [INFO] [stdout] | [INFO] [stdout] 274 | impl Router { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 288 | pub fn nest(&mut self, router: Router) -> &mut Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 293 | pub fn before(&mut self, path: &str, middleware: T) -> &mut Self [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 313 | pub fn after(&mut self, path: &str, middleware: T) -> &mut Self [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 20.66s [INFO] running `Command { std: "docker" "inspect" "cec3572a58562526df9fb8c4268be916533e511cca15e0d89d77dbe2b6c2987c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cec3572a58562526df9fb8c4268be916533e511cca15e0d89d77dbe2b6c2987c", kill_on_drop: false }` [INFO] [stdout] cec3572a58562526df9fb8c4268be916533e511cca15e0d89d77dbe2b6c2987c