[INFO] cloning repository https://github.com/malandrakisgeo/RustWebServer [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/malandrakisgeo/RustWebServer" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmalandrakisgeo%2FRustWebServer", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmalandrakisgeo%2FRustWebServer'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ec710fad152c22e62616230fee6cfeb81c5a2ce7 [INFO] checking malandrakisgeo/RustWebServer against try#4f260f0f20b3133d20cfb50353c0221943af5796+rustflags=-Dunmustuse_in_always_ok for pr-148577 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmalandrakisgeo%2FRustWebServer" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/malandrakisgeo/RustWebServer [INFO] finished tweaking git repo https://github.com/malandrakisgeo/RustWebServer [INFO] tweaked toml for git repo https://github.com/malandrakisgeo/RustWebServer written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/malandrakisgeo/RustWebServer on toolchain 4f260f0f20b3133d20cfb50353c0221943af5796 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/malandrakisgeo/RustWebServer 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" "+4f260f0f20b3133d20cfb50353c0221943af5796" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Locking 19 packages to latest compatible versions [INFO] [stderr] Adding futures v0.3.31 [INFO] [stderr] Adding futures-channel v0.3.31 [INFO] [stderr] Adding futures-core v0.3.31 [INFO] [stderr] Adding futures-executor v0.3.31 [INFO] [stderr] Adding futures-io v0.3.31 [INFO] [stderr] Adding futures-macro v0.3.31 [INFO] [stderr] Adding futures-sink v0.3.31 [INFO] [stderr] Adding futures-task v0.3.31 [INFO] [stderr] Adding futures-util v0.3.31 [INFO] [stderr] Adding hermit-abi v0.5.2 [INFO] [stderr] Adding memchr v2.7.6 [INFO] [stderr] Adding num_cpus v1.17.0 [INFO] [stderr] Adding pin-project-lite v0.2.16 [INFO] [stderr] Adding pin-utils v0.1.0 [INFO] [stderr] Updating proc-macro2 v1.0.69 -> v1.0.103 [INFO] [stderr] Updating quote v1.0.33 -> v1.0.42 [INFO] [stderr] Adding slab v0.4.11 [INFO] [stderr] Updating syn v2.0.38 -> v2.0.110 [INFO] [stderr] Adding threadpool v1.8.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b76662f9073e81a32721271f263f05017763c8e84d69c25dc55c9a28ddd6a38c [INFO] running `Command { std: "docker" "start" "-a" "b76662f9073e81a32721271f263f05017763c8e84d69c25dc55c9a28ddd6a38c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b76662f9073e81a32721271f263f05017763c8e84d69c25dc55c9a28ddd6a38c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b76662f9073e81a32721271f263f05017763c8e84d69c25dc55c9a28ddd6a38c", kill_on_drop: false }` [INFO] [stdout] b76662f9073e81a32721271f263f05017763c8e84d69c25dc55c9a28ddd6a38c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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 -Dunmustuse_in_always_ok" "-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 35a87dd75fd92bb0c631094913c5b630121f3713012d660bad49eeb184749132 [INFO] running `Command { std: "docker" "start" "-a" "35a87dd75fd92bb0c631094913c5b630121f3713012d660bad49eeb184749132", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.149 [INFO] [stderr] Compiling proc-macro2 v1.0.103 [INFO] [stderr] Checking chrono v0.4.31 [INFO] [stderr] Compiling quote v1.0.42 [INFO] [stderr] Compiling syn v2.0.110 [INFO] [stderr] Checking num_cpus v1.17.0 [INFO] [stderr] Checking nix v0.27.1 [INFO] [stderr] Checking threadpool v1.8.1 [INFO] [stderr] Checking ctrlc v3.4.2 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Checking futures-executor v0.3.31 [INFO] [stderr] Checking futures v0.3.31 [INFO] [stderr] Checking RustWebServer v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/response/refera_error.rs:29:45 [INFO] [stdout] | [INFO] [stdout] 29 | ReferaError::Io(ref err) => err.description(), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/response/refera_error.rs:29:45 [INFO] [stdout] | [INFO] [stdout] 29 | ReferaError::Io(ref err) => err.description(), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/content_manager/content_parser.rs:18:17 [INFO] [stdout] | [INFO] [stdout] 18 | Err(err) => Vec::new() [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/content_manager/content_parser.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 48 | let mut file: Vec; [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: unused variable: `request_headers` [INFO] [stdout] --> src/main.rs:83:25 [INFO] [stdout] | [INFO] [stdout] 83 | fn get_reply(url: &str, request_headers: HashMap) -> ReferaResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_request_headers` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `auth`, `file_dir`, and `tls` are never read [INFO] [stdout] --> src/config.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Config { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 7 | pub auth: HashMap, [INFO] [stdout] | ^^^^ [INFO] [stdout] 8 | pub file_dir: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 9 | pub tls: Option, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Config` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `cert_path` and `key_path` are never read [INFO] [stdout] --> src/config.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct TlsConfig { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 19 | pub cert_path: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 20 | pub key_path: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TlsConfig` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `as_str` is never used [INFO] [stdout] --> src/response/refera_response.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl ReferaResponse { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 46 | pub fn as_str(&self) -> String { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `StatusClass` is never used [INFO] [stdout] --> src/http/http_status.rs:205:10 [INFO] [stdout] | [INFO] [stdout] 205 | pub enum StatusClass { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `class` is never used [INFO] [stdout] --> src/http/http_status.rs:368:12 [INFO] [stdout] | [INFO] [stdout] 225 | impl StatusCode { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 368 | pub fn class(&self) -> StatusClass { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:89:20 [INFO] [stdout] | [INFO] [stdout] 89 | headers.insert("Server".parse().unwrap(), "refera-RustWebServer".parse().unwrap()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-D unmustuse-in-always-ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:89:47 [INFO] [stdout] | [INFO] [stdout] 89 | headers.insert("Server".parse().unwrap(), "refera-RustWebServer".parse().unwrap()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:90:20 [INFO] [stdout] | [INFO] [stdout] 90 | headers.insert("originating-server".parse().unwrap(), "refera-RustWebServer".parse().unwrap()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:90:59 [INFO] [stdout] | [INFO] [stdout] 90 | headers.insert("originating-server".parse().unwrap(), "refera-RustWebServer".parse().unwrap()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:99:28 [INFO] [stdout] | [INFO] [stdout] 99 | headers.insert("Content-Length".parse().unwrap(), size.to_string()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:107:20 [INFO] [stdout] | [INFO] [stdout] 107 | headers.insert("Content-Length".parse().unwrap(), size.to_string()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/core/server_cache.rs:30:21 [INFO] [stdout] | [INFO] [stdout] 30 | let cache = FILE_CACHE.acquire(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/core/server_cache.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | FILE_CACHE.free(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/core/server_cache.rs:43:25 [INFO] [stdout] | [INFO] [stdout] 43 | let cache = FILE_CACHE.acquire_mut(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/core/server_cache.rs:47:35 [INFO] [stdout] | [INFO] [stdout] 47 | let _ = &cache.insert(name.parse().unwrap(), file.clone()); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/core/server_cache.rs:49:13 [INFO] [stdout] | [INFO] [stdout] 49 | FILE_CACHE.free(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/content_manager/content_parser.rs:30:72 [INFO] [stdout] | [INFO] [stdout] 30 | let contents = fs::read_to_string("./static/index.html").unwrap_or("Page not found!".parse().unwrap()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/logger/refera_logger.rs:36:20 [INFO] [stdout] | [INFO] [stdout] 36 | let buf = COMMON_BUFFER.acquire_mut(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/logger/refera_logger.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | COMMON_BUFFER.free(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/logger/refera_logger.rs:47:23 [INFO] [stdout] | [INFO] [stdout] 47 | let buffer = COMMON_BUFFER.acquire_mut(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/logger/refera_logger.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 49 | COMMON_BUFFER.free(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `RustWebServer` (bin "RustWebServer" test) due to 8 previous errors; 17 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/content_manager/content_parser.rs:18:17 [INFO] [stdout] | [INFO] [stdout] 18 | Err(err) => Vec::new() [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/content_manager/content_parser.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 48 | let mut file: Vec; [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: unused variable: `request_headers` [INFO] [stdout] --> src/main.rs:83:25 [INFO] [stdout] | [INFO] [stdout] 83 | fn get_reply(url: &str, request_headers: HashMap) -> ReferaResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_request_headers` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `auth`, `file_dir`, and `tls` are never read [INFO] [stdout] --> src/config.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Config { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 7 | pub auth: HashMap, [INFO] [stdout] | ^^^^ [INFO] [stdout] 8 | pub file_dir: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 9 | pub tls: Option, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Config` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `cert_path` and `key_path` are never read [INFO] [stdout] --> src/config.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct TlsConfig { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 19 | pub cert_path: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 20 | pub key_path: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TlsConfig` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `as_str` is never used [INFO] [stdout] --> src/response/refera_response.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl ReferaResponse { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 46 | pub fn as_str(&self) -> String { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `StatusClass` is never used [INFO] [stdout] --> src/http/http_status.rs:205:10 [INFO] [stdout] | [INFO] [stdout] 205 | pub enum StatusClass { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `class` is never used [INFO] [stdout] --> src/http/http_status.rs:368:12 [INFO] [stdout] | [INFO] [stdout] 225 | impl StatusCode { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 368 | pub fn class(&self) -> StatusClass { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:89:20 [INFO] [stdout] | [INFO] [stdout] 89 | headers.insert("Server".parse().unwrap(), "refera-RustWebServer".parse().unwrap()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-D unmustuse-in-always-ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:89:47 [INFO] [stdout] | [INFO] [stdout] 89 | headers.insert("Server".parse().unwrap(), "refera-RustWebServer".parse().unwrap()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:90:20 [INFO] [stdout] | [INFO] [stdout] 90 | headers.insert("originating-server".parse().unwrap(), "refera-RustWebServer".parse().unwrap()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:90:59 [INFO] [stdout] | [INFO] [stdout] 90 | headers.insert("originating-server".parse().unwrap(), "refera-RustWebServer".parse().unwrap()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:99:28 [INFO] [stdout] | [INFO] [stdout] 99 | headers.insert("Content-Length".parse().unwrap(), size.to_string()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:107:20 [INFO] [stdout] | [INFO] [stdout] 107 | headers.insert("Content-Length".parse().unwrap(), size.to_string()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/core/server_cache.rs:30:21 [INFO] [stdout] | [INFO] [stdout] 30 | let cache = FILE_CACHE.acquire(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/core/server_cache.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | FILE_CACHE.free(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/core/server_cache.rs:43:25 [INFO] [stdout] | [INFO] [stdout] 43 | let cache = FILE_CACHE.acquire_mut(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/core/server_cache.rs:47:35 [INFO] [stdout] | [INFO] [stdout] 47 | let _ = &cache.insert(name.parse().unwrap(), file.clone()); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/core/server_cache.rs:49:13 [INFO] [stdout] | [INFO] [stdout] 49 | FILE_CACHE.free(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/content_manager/content_parser.rs:30:72 [INFO] [stdout] | [INFO] [stdout] 30 | let contents = fs::read_to_string("./static/index.html").unwrap_or("Page not found!".parse().unwrap()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/logger/refera_logger.rs:36:20 [INFO] [stdout] | [INFO] [stdout] 36 | let buf = COMMON_BUFFER.acquire_mut(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/logger/refera_logger.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | COMMON_BUFFER.free(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/logger/refera_logger.rs:47:23 [INFO] [stdout] | [INFO] [stdout] 47 | let buffer = COMMON_BUFFER.acquire_mut(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/logger/refera_logger.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 49 | COMMON_BUFFER.free(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `RustWebServer` (bin "RustWebServer") due to 8 previous errors; 17 warnings emitted [INFO] running `Command { std: "docker" "inspect" "35a87dd75fd92bb0c631094913c5b630121f3713012d660bad49eeb184749132", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "35a87dd75fd92bb0c631094913c5b630121f3713012d660bad49eeb184749132", kill_on_drop: false }` [INFO] [stdout] 35a87dd75fd92bb0c631094913c5b630121f3713012d660bad49eeb184749132