[INFO] cloning repository https://github.com/threeh11/web_server [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/threeh11/web_server" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fthreeh11%2Fweb_server", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fthreeh11%2Fweb_server'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1ea8b1ef23e6751fee689238c69c6815bed66c90 [INFO] testing threeh11/web_server against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fthreeh11%2Fweb_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] started tweaking git repo https://github.com/threeh11/web_server [INFO] finished tweaking git repo https://github.com/threeh11/web_server [INFO] tweaked toml for git repo https://github.com/threeh11/web_server written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/threeh11/web_server on toolchain cdb45c87e2cd43495379f7e867e3cc15dcee9f93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/threeh11/web_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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded flexi_logger v0.28.5 [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 47ee1cc1f7016188af1ac061ce2f998c2b7a309a122d18619816eeb00ee3e5fd [INFO] running `Command { std: "docker" "start" "-a" "47ee1cc1f7016188af1ac061ce2f998c2b7a309a122d18619816eeb00ee3e5fd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "47ee1cc1f7016188af1ac061ce2f998c2b7a309a122d18619816eeb00ee3e5fd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "47ee1cc1f7016188af1ac061ce2f998c2b7a309a122d18619816eeb00ee3e5fd", kill_on_drop: false }` [INFO] [stdout] 47ee1cc1f7016188af1ac061ce2f998c2b7a309a122d18619816eeb00ee3e5fd [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c60cd0f43e7e6a6c19b02df1bb117e24d08fee56c5a03b1e45958c911ac4a884 [INFO] running `Command { std: "docker" "start" "-a" "c60cd0f43e7e6a6c19b02df1bb117e24d08fee56c5a03b1e45958c911ac4a884", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling libc v0.2.155 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling indexmap v2.2.6 [INFO] [stderr] Compiling serde v1.0.204 [INFO] [stderr] Compiling regex-syntax v0.8.4 [INFO] [stderr] Compiling thiserror v1.0.63 [INFO] [stderr] Compiling http-body v1.0.1 [INFO] [stderr] Compiling nix v0.29.0 [INFO] [stderr] Compiling chrono v0.4.38 [INFO] [stderr] Compiling nu-ansi-term v0.50.1 [INFO] [stderr] Compiling yaml-rust v0.4.5 [INFO] [stderr] Compiling glob v0.3.1 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling syn v2.0.70 [INFO] [stderr] Compiling num_cpus v1.16.0 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling signal-hook-registry v1.4.2 [INFO] [stderr] Compiling mio v0.8.11 [INFO] [stderr] Compiling socket2 v0.5.7 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling uuid v1.10.0 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling threadpool v1.8.1 [INFO] [stderr] Compiling regex-automata v0.4.7 [INFO] [stderr] Compiling futures-macro v0.3.30 [INFO] [stderr] Compiling tokio-macros v2.3.0 [INFO] [stderr] Compiling pin-project-internal v1.1.5 [INFO] [stderr] Compiling thiserror-impl v1.0.63 [INFO] [stderr] Compiling serde_derive v1.0.204 [INFO] [stderr] Compiling futures-util v0.3.30 [INFO] [stderr] Compiling tokio v1.38.0 [INFO] [stderr] Compiling pin-project v1.1.5 [INFO] [stderr] Compiling regex v1.10.5 [INFO] [stderr] Compiling flexi_logger v0.28.5 [INFO] [stderr] Compiling futures-executor v0.3.30 [INFO] [stderr] Compiling http-body-util v0.1.2 [INFO] [stderr] Compiling futures v0.3.30 [INFO] [stderr] Compiling tokio-util v0.7.11 [INFO] [stderr] Compiling tower v0.4.13 [INFO] [stderr] Compiling h2 v0.4.5 [INFO] [stderr] Compiling serde_yaml v0.8.26 [INFO] [stderr] Compiling hyper v1.4.1 [INFO] [stderr] Compiling hyper-util v0.1.6 [INFO] [stderr] Compiling web_server v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::core::server::VirtualHost` [INFO] [stdout] --> src/core/jexus.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::core::server::VirtualHost; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Response` [INFO] [stdout] --> src/core/location.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use hyper::{Response, Uri}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `io` [INFO] [stdout] --> src/os/file_manager.rs:1:15 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{fs, io}; [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user_agent` [INFO] [stdout] --> src/core/server.rs:74:13 [INFO] [stdout] | [INFO] [stdout] 74 | let user_agent = request.headers().get("User-Agent").map(|value| value.to_str().unwrap_or("Unknown")).unwrap_or("Unknown"); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_user_agent` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `jexus_config::User` is more private than the item `GlobalContext::user` [INFO] [stdout] --> src/config/jexus_config.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | pub user: User, [INFO] [stdout] | ^^^^^^^^^^^^^^ field `GlobalContext::user` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `jexus_config::User` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/config/jexus_config.rs:59:1 [INFO] [stdout] | [INFO] [stdout] 59 | struct User { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `jexus_config::User` is more private than the item `JxsMain::user` [INFO] [stdout] --> src/config/jexus_config.rs:281:5 [INFO] [stdout] | [INFO] [stdout] 281 | pub user: User, [INFO] [stdout] | ^^^^^^^^^^^^^^ field `JxsMain::user` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `jexus_config::User` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/config/jexus_config.rs:59:1 [INFO] [stdout] | [INFO] [stdout] 59 | struct User { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `main` is never read [INFO] [stdout] --> src/config/jexus_config.rs:276:9 [INFO] [stdout] | [INFO] [stdout] 275 | pub struct JxsValidConfig { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 276 | pub main: JxsMain, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `user` and `worker_processes` are never read [INFO] [stdout] --> src/config/jexus_config.rs:281:9 [INFO] [stdout] | [INFO] [stdout] 280 | pub struct JxsMain { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 281 | pub user: User, [INFO] [stdout] | ^^^^ [INFO] [stdout] 282 | pub worker_processes: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `root` is never read [INFO] [stdout] --> src/config/jexus_config.rs:292:9 [INFO] [stdout] | [INFO] [stdout] 290 | pub struct JxsServer { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 291 | pub listen: usize, [INFO] [stdout] 292 | pub root: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `JxsServer` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `index`, `auto_index`, `random_index`, and `fastcgi_pass` are never read [INFO] [stdout] --> src/config/jexus_config.rs:299:9 [INFO] [stdout] | [INFO] [stdout] 297 | pub struct JxsLocation { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 298 | pub uri: Uri, [INFO] [stdout] 299 | pub index: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 300 | pub auto_index: AutoIndex, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 301 | pub random_index: RandomIndex, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 302 | pub proxy_pass: String, [INFO] [stdout] 303 | pub fastcgi_pass: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `JxsLocation` 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 `get_tcp_listener` is never used [INFO] [stdout] --> src/core/server.rs:50:18 [INFO] [stdout] | [INFO] [stdout] 23 | impl VirtualHost<'_> { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 50 | pub async fn get_tcp_listener(&mut self) -> TcpListener { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `jxs_valid_config` and `resolver` are never read [INFO] [stdout] --> src/core/jexus.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Jexus { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 9 | pub jxs_valid_config: JxsValidConfig, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 10 | pub resolver: JxsResolver, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `jxs_valid_config` is never read [INFO] [stdout] --> src/core/resolver.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct JxsResolver { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 8 | jxs_valid_config: Box [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `uri` and `module` are never read [INFO] [stdout] --> src/core/location.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct LocationInstance { [INFO] [stdout] | ---------------- fields in this struct [INFO] [stdout] 6 | uri: Uri, [INFO] [stdout] | ^^^ [INFO] [stdout] 7 | module: ProxyModule [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LocationInstance` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_root` is never used [INFO] [stdout] --> src/os/capabilities.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn is_root() -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `IndexModule` is never constructed [INFO] [stdout] --> src/jxs/http/index.rs:3:16 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct IndexModule { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `IndexListModule` is never constructed [INFO] [stdout] --> src/jxs/http/index.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct IndexListModule { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `proxy_pass` is never read [INFO] [stdout] --> src/jxs/http/proxy.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct ProxyModule { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 5 | proxy_pass: String, // todo на какой нибудь удобо читаемый тип [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ProxyModule` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_proxy_pass` and `build` are never used [INFO] [stdout] --> src/jxs/http/proxy.rs:16:16 [INFO] [stdout] | [INFO] [stdout] 9 | impl ProxyModule { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 16 | pub fn set_proxy_pass(&mut self, proxy_pass: String) -> &mut ProxyModule { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | pub fn build(&self) -> Box { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 32.88s [INFO] running `Command { std: "docker" "inspect" "c60cd0f43e7e6a6c19b02df1bb117e24d08fee56c5a03b1e45958c911ac4a884", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c60cd0f43e7e6a6c19b02df1bb117e24d08fee56c5a03b1e45958c911ac4a884", kill_on_drop: false }` [INFO] [stdout] c60cd0f43e7e6a6c19b02df1bb117e24d08fee56c5a03b1e45958c911ac4a884 [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e64cf0fba07adb5c4882aa8ee1c9835762b592843be74af3459494cdfbe9f6e5 [INFO] running `Command { std: "docker" "start" "-a" "e64cf0fba07adb5c4882aa8ee1c9835762b592843be74af3459494cdfbe9f6e5", kill_on_drop: false }` [INFO] [stderr] Compiling web_server v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::core::server::VirtualHost` [INFO] [stdout] --> src/core/jexus.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::core::server::VirtualHost; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Response` [INFO] [stdout] --> src/core/location.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use hyper::{Response, Uri}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `io` [INFO] [stdout] --> src/os/file_manager.rs:1:15 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{fs, io}; [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user_agent` [INFO] [stdout] --> src/core/server.rs:74:13 [INFO] [stdout] | [INFO] [stdout] 74 | let user_agent = request.headers().get("User-Agent").map(|value| value.to_str().unwrap_or("Unknown")).unwrap_or("Unknown"); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_user_agent` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `jexus_config::User` is more private than the item `GlobalContext::user` [INFO] [stdout] --> src/config/jexus_config.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | pub user: User, [INFO] [stdout] | ^^^^^^^^^^^^^^ field `GlobalContext::user` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `jexus_config::User` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/config/jexus_config.rs:59:1 [INFO] [stdout] | [INFO] [stdout] 59 | struct User { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `jexus_config::User` is more private than the item `JxsMain::user` [INFO] [stdout] --> src/config/jexus_config.rs:281:5 [INFO] [stdout] | [INFO] [stdout] 281 | pub user: User, [INFO] [stdout] | ^^^^^^^^^^^^^^ field `JxsMain::user` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `jexus_config::User` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/config/jexus_config.rs:59:1 [INFO] [stdout] | [INFO] [stdout] 59 | struct User { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `main` is never read [INFO] [stdout] --> src/config/jexus_config.rs:276:9 [INFO] [stdout] | [INFO] [stdout] 275 | pub struct JxsValidConfig { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 276 | pub main: JxsMain, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `user` and `worker_processes` are never read [INFO] [stdout] --> src/config/jexus_config.rs:281:9 [INFO] [stdout] | [INFO] [stdout] 280 | pub struct JxsMain { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 281 | pub user: User, [INFO] [stdout] | ^^^^ [INFO] [stdout] 282 | pub worker_processes: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `root` is never read [INFO] [stdout] --> src/config/jexus_config.rs:292:9 [INFO] [stdout] | [INFO] [stdout] 290 | pub struct JxsServer { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 291 | pub listen: usize, [INFO] [stdout] 292 | pub root: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `JxsServer` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `index`, `auto_index`, `random_index`, and `fastcgi_pass` are never read [INFO] [stdout] --> src/config/jexus_config.rs:299:9 [INFO] [stdout] | [INFO] [stdout] 297 | pub struct JxsLocation { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 298 | pub uri: Uri, [INFO] [stdout] 299 | pub index: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 300 | pub auto_index: AutoIndex, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 301 | pub random_index: RandomIndex, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 302 | pub proxy_pass: String, [INFO] [stdout] 303 | pub fastcgi_pass: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `JxsLocation` 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 `get_tcp_listener` is never used [INFO] [stdout] --> src/core/server.rs:50:18 [INFO] [stdout] | [INFO] [stdout] 23 | impl VirtualHost<'_> { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 50 | pub async fn get_tcp_listener(&mut self) -> TcpListener { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `jxs_valid_config` and `resolver` are never read [INFO] [stdout] --> src/core/jexus.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Jexus { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 9 | pub jxs_valid_config: JxsValidConfig, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 10 | pub resolver: JxsResolver, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `jxs_valid_config` is never read [INFO] [stdout] --> src/core/resolver.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct JxsResolver { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 8 | jxs_valid_config: Box [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `uri` and `module` are never read [INFO] [stdout] --> src/core/location.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct LocationInstance { [INFO] [stdout] | ---------------- fields in this struct [INFO] [stdout] 6 | uri: Uri, [INFO] [stdout] | ^^^ [INFO] [stdout] 7 | module: ProxyModule [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LocationInstance` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_root` is never used [INFO] [stdout] --> src/os/capabilities.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn is_root() -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `IndexModule` is never constructed [INFO] [stdout] --> src/jxs/http/index.rs:3:16 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct IndexModule { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `IndexListModule` is never constructed [INFO] [stdout] --> src/jxs/http/index.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct IndexListModule { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `proxy_pass` is never read [INFO] [stdout] --> src/jxs/http/proxy.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct ProxyModule { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 5 | proxy_pass: String, // todo на какой нибудь удобо читаемый тип [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ProxyModule` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_proxy_pass` and `build` are never used [INFO] [stdout] --> src/jxs/http/proxy.rs:16:16 [INFO] [stdout] | [INFO] [stdout] 9 | impl ProxyModule { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 16 | pub fn set_proxy_pass(&mut self, proxy_pass: String) -> &mut ProxyModule { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | pub fn build(&self) -> Box { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.95s [INFO] running `Command { std: "docker" "inspect" "e64cf0fba07adb5c4882aa8ee1c9835762b592843be74af3459494cdfbe9f6e5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e64cf0fba07adb5c4882aa8ee1c9835762b592843be74af3459494cdfbe9f6e5", kill_on_drop: false }` [INFO] [stdout] e64cf0fba07adb5c4882aa8ee1c9835762b592843be74af3459494cdfbe9f6e5 [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 51955dbda0b8adbadc0e7f41890af4bb228b2efe38f064d5e3f8fd9ce37ed9fd [INFO] running `Command { std: "docker" "start" "-a" "51955dbda0b8adbadc0e7f41890af4bb228b2efe38f064d5e3f8fd9ce37ed9fd", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `crate::core::server::VirtualHost` [INFO] [stderr] --> src/core/jexus.rs:6:5 [INFO] [stderr] | [INFO] [stderr] 6 | use crate::core::server::VirtualHost; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `Response` [INFO] [stderr] --> src/core/location.rs:1:13 [INFO] [stderr] | [INFO] [stderr] 1 | use hyper::{Response, Uri}; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `io` [INFO] [stderr] --> src/os/file_manager.rs:1:15 [INFO] [stderr] | [INFO] [stderr] 1 | use std::{fs, io}; [INFO] [stderr] | ^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `user_agent` [INFO] [stderr] --> src/core/server.rs:74:13 [INFO] [stderr] | [INFO] [stderr] 74 | let user_agent = request.headers().get("User-Agent").map(|value| value.to_str().unwrap_or("Unknown")).unwrap_or("Unknown"); [INFO] [stderr] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_user_agent` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: type `jexus_config::User` is more private than the item `GlobalContext::user` [INFO] [stderr] --> src/config/jexus_config.rs:21:5 [INFO] [stderr] | [INFO] [stderr] 21 | pub user: User, [INFO] [stderr] | ^^^^^^^^^^^^^^ field `GlobalContext::user` is reachable at visibility `pub(crate)` [INFO] [stderr] | [INFO] [stderr] note: but type `jexus_config::User` is only usable at visibility `pub(self)` [INFO] [stderr] --> src/config/jexus_config.rs:59:1 [INFO] [stderr] | [INFO] [stderr] 59 | struct User { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] = note: `#[warn(private_interfaces)]` on by default [INFO] [stderr] [INFO] [stderr] warning: type `jexus_config::User` is more private than the item `JxsMain::user` [INFO] [stderr] --> src/config/jexus_config.rs:281:5 [INFO] [stderr] | [INFO] [stderr] 281 | pub user: User, [INFO] [stderr] | ^^^^^^^^^^^^^^ field `JxsMain::user` is reachable at visibility `pub(crate)` [INFO] [stderr] | [INFO] [stderr] note: but type `jexus_config::User` is only usable at visibility `pub(self)` [INFO] [stderr] --> src/config/jexus_config.rs:59:1 [INFO] [stderr] | [INFO] [stderr] 59 | struct User { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field `main` is never read [INFO] [stderr] --> src/config/jexus_config.rs:276:9 [INFO] [stderr] | [INFO] [stderr] 275 | pub struct JxsValidConfig { [INFO] [stderr] | -------------- field in this struct [INFO] [stderr] 276 | pub main: JxsMain, [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: fields `user` and `worker_processes` are never read [INFO] [stderr] --> src/config/jexus_config.rs:281:9 [INFO] [stderr] | [INFO] [stderr] 280 | pub struct JxsMain { [INFO] [stderr] | ------- fields in this struct [INFO] [stderr] 281 | pub user: User, [INFO] [stderr] | ^^^^ [INFO] [stderr] 282 | pub worker_processes: usize, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field `root` is never read [INFO] [stderr] --> src/config/jexus_config.rs:292:9 [INFO] [stderr] | [INFO] [stderr] 290 | pub struct JxsServer { [INFO] [stderr] | --------- field in this struct [INFO] [stderr] 291 | pub listen: usize, [INFO] [stderr] 292 | pub root: String, [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `JxsServer` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: fields `index`, `auto_index`, `random_index`, and `fastcgi_pass` are never read [INFO] [stderr] --> src/config/jexus_config.rs:299:9 [INFO] [stderr] | [INFO] [stderr] 297 | pub struct JxsLocation { [INFO] [stderr] | ----------- fields in this struct [INFO] [stderr] 298 | pub uri: Uri, [INFO] [stderr] 299 | pub index: String, [INFO] [stderr] | ^^^^^ [INFO] [stderr] 300 | pub auto_index: AutoIndex, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] 301 | pub random_index: RandomIndex, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] 302 | pub proxy_pass: String, [INFO] [stderr] 303 | pub fastcgi_pass: String, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `JxsLocation` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: method `get_tcp_listener` is never used [INFO] [stderr] --> src/core/server.rs:50:18 [INFO] [stderr] | [INFO] [stderr] 23 | impl VirtualHost<'_> { [INFO] [stderr] | -------------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 50 | pub async fn get_tcp_listener(&mut self) -> TcpListener { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: fields `jxs_valid_config` and `resolver` are never read [INFO] [stderr] --> src/core/jexus.rs:9:9 [INFO] [stderr] | [INFO] [stderr] 8 | pub struct Jexus { [INFO] [stderr] | ----- fields in this struct [INFO] [stderr] 9 | pub jxs_valid_config: JxsValidConfig, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] 10 | pub resolver: JxsResolver, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field `jxs_valid_config` is never read [INFO] [stderr] --> src/core/resolver.rs:8:5 [INFO] [stderr] | [INFO] [stderr] 7 | pub struct JxsResolver { [INFO] [stderr] | ----------- field in this struct [INFO] [stderr] 8 | jxs_valid_config: Box [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: fields `uri` and `module` are never read [INFO] [stderr] --> src/core/location.rs:6:5 [INFO] [stderr] | [INFO] [stderr] 5 | pub struct LocationInstance { [INFO] [stderr] | ---------------- fields in this struct [INFO] [stderr] 6 | uri: Uri, [INFO] [stderr] | ^^^ [INFO] [stderr] 7 | module: ProxyModule [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `LocationInstance` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: function `is_root` is never used [INFO] [stderr] --> src/os/capabilities.rs:3:8 [INFO] [stderr] | [INFO] [stderr] 3 | pub fn is_root() -> bool { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `IndexModule` is never constructed [INFO] [stderr] --> src/jxs/http/index.rs:3:16 [INFO] [stderr] | [INFO] [stderr] 3 | pub struct IndexModule { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `IndexListModule` is never constructed [INFO] [stderr] --> src/jxs/http/index.rs:13:16 [INFO] [stderr] | [INFO] [stderr] 13 | pub struct IndexListModule { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field `proxy_pass` is never read [INFO] [stderr] --> src/jxs/http/proxy.rs:5:9 [INFO] [stderr] | [INFO] [stderr] 4 | pub struct ProxyModule { [INFO] [stderr] | ----------- field in this struct [INFO] [stderr] 5 | proxy_pass: String, // todo на какой нибудь удобо читаемый тип [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `ProxyModule` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: methods `set_proxy_pass` and `build` are never used [INFO] [stderr] --> src/jxs/http/proxy.rs:16:16 [INFO] [stderr] | [INFO] [stderr] 9 | impl ProxyModule { [INFO] [stderr] | ---------------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 16 | pub fn set_proxy_pass(&mut self, proxy_pass: String) -> &mut ProxyModule { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 21 | pub fn build(&self) -> Box { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `web_server` (bin "web_server" test) generated 19 warnings (run `cargo fix --bin "web_server" --tests` to apply 3 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.15s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/web_server-417078e5166149c4) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "51955dbda0b8adbadc0e7f41890af4bb228b2efe38f064d5e3f8fd9ce37ed9fd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "51955dbda0b8adbadc0e7f41890af4bb228b2efe38f064d5e3f8fd9ce37ed9fd", kill_on_drop: false }` [INFO] [stdout] 51955dbda0b8adbadc0e7f41890af4bb228b2efe38f064d5e3f8fd9ce37ed9fd