[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/ec710fad152c22e62616230fee6cfeb81c5a2ce7 against master#b2728d5426bab1d8c39709768c7e22b7f66dde5d for pr-135852 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmalandrakisgeo%2FRustWebServer" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/malandrakisgeo/RustWebServer on toolchain b2728d5426bab1d8c39709768c7e22b7f66dde5d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b2728d5426bab1d8c39709768c7e22b7f66dde5d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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-2-tc1/source/Cargo.toml [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" "+b2728d5426bab1d8c39709768c7e22b7f66dde5d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [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.3.9 [INFO] [stderr] Adding memchr v2.7.4 [INFO] [stderr] Adding num_cpus v1.16.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.93 [INFO] [stderr] Updating quote v1.0.33 -> v1.0.38 [INFO] [stderr] Adding slab v0.4.9 [INFO] [stderr] Updating syn v2.0.38 -> v2.0.96 [INFO] [stderr] Adding threadpool v1.8.1 [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded ctrlc v3.4.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:c80049f3b88b82089a44e0f06d0d6029d44b96b7257e55a1cd63dbc9f4c33334" "/opt/rustwide/cargo-home/bin/cargo" "+b2728d5426bab1d8c39709768c7e22b7f66dde5d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c3133ab92b0c6ad4eae33597c58bc3c032e468b3926d66b007f09189135cd169 [INFO] running `Command { std: "docker" "start" "-a" "c3133ab92b0c6ad4eae33597c58bc3c032e468b3926d66b007f09189135cd169", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c3133ab92b0c6ad4eae33597c58bc3c032e468b3926d66b007f09189135cd169", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c3133ab92b0c6ad4eae33597c58bc3c032e468b3926d66b007f09189135cd169", kill_on_drop: false }` [INFO] [stdout] c3133ab92b0c6ad4eae33597c58bc3c032e468b3926d66b007f09189135cd169 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:c80049f3b88b82089a44e0f06d0d6029d44b96b7257e55a1cd63dbc9f4c33334" "/opt/rustwide/cargo-home/bin/cargo" "+b2728d5426bab1d8c39709768c7e22b7f66dde5d" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b58c310ec1949c7b5b0d997b367f078d8943611db2d7b5215503dd078fd879c1 [INFO] running `Command { std: "docker" "start" "-a" "b58c310ec1949c7b5b0d997b367f078d8943611db2d7b5215503dd078fd879c1", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling libc v0.2.149 [INFO] [stderr] Compiling proc-macro2 v1.0.93 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Checking futures-sink v0.3.31 [INFO] [stderr] Checking futures-core v0.3.31 [INFO] [stderr] Checking futures-task v0.3.31 [INFO] [stderr] Checking pin-project-lite v0.2.16 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Checking futures-io v0.3.31 [INFO] [stderr] Checking futures-channel v0.3.31 [INFO] [stderr] Checking bitflags v2.4.1 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking iana-time-zone v0.1.58 [INFO] [stderr] Checking urlencoding v2.1.3 [INFO] [stderr] Checking once_cell v1.19.0 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling num-traits v0.2.17 [INFO] [stderr] Compiling quote v1.0.38 [INFO] [stderr] Compiling syn v2.0.96 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking nix v0.27.1 [INFO] [stderr] Checking chrono v0.4.31 [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)]` 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)]` 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)]` 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)]` 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)]` 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: variants `Informational`, `Success`, `Redirection`, `ClientError`, `ServerError`, and `Unknown` are never constructed [INFO] [stdout] --> src/http/http_status.rs:207:5 [INFO] [stdout] | [INFO] [stdout] 205 | pub enum StatusClass { [INFO] [stdout] | ----------- variants in this enum [INFO] [stdout] 206 | /// 1xx Informational [INFO] [stdout] 207 | Informational, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 210 | Success, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 213 | Redirection, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 216 | ClientError, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 219 | ServerError, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 222 | Unknown, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `StatusClass` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [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] warning: creating a mutable reference to mutable static is discouraged [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)]` 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: creating a shared reference to mutable static is discouraged [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 is discouraged [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] warning: creating a shared reference to mutable static is discouraged [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] warning: creating a mutable reference to mutable static is discouraged [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 is discouraged [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 is discouraged [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 is discouraged [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] [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)]` 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: variants `Informational`, `Success`, `Redirection`, `ClientError`, `ServerError`, and `Unknown` are never constructed [INFO] [stdout] --> src/http/http_status.rs:207:5 [INFO] [stdout] | [INFO] [stdout] 205 | pub enum StatusClass { [INFO] [stdout] | ----------- variants in this enum [INFO] [stdout] 206 | /// 1xx Informational [INFO] [stdout] 207 | Informational, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 210 | Success, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 213 | Redirection, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 216 | ClientError, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 219 | ServerError, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 222 | Unknown, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `StatusClass` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [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] warning: creating a mutable reference to mutable static is discouraged [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)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [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 is discouraged [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] warning: creating a shared reference to mutable static is discouraged [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] warning: creating a mutable reference to mutable static is discouraged [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 is discouraged [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 is discouraged [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 is discouraged [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] Finished `dev` profile [unoptimized + debuginfo] target(s) in 18.35s [INFO] running `Command { std: "docker" "inspect" "b58c310ec1949c7b5b0d997b367f078d8943611db2d7b5215503dd078fd879c1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b58c310ec1949c7b5b0d997b367f078d8943611db2d7b5215503dd078fd879c1", kill_on_drop: false }` [INFO] [stdout] b58c310ec1949c7b5b0d997b367f078d8943611db2d7b5215503dd078fd879c1