[INFO] cloning repository https://github.com/ggielly/rouilleFTPd [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ggielly/rouilleFTPd" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fggielly%2FrouilleFTPd", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fggielly%2FrouilleFTPd'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 99345de21846f2464d151a9f4056cd7bd9d853da [INFO] testing ggielly/rouilleFTPd against try#8de4c7234dd9b97c9d76b58671343fdbbc9a433e+target=x86_64-unknown-linux-musl for musl_upgrade_1_2_5_with_libc_patch_0 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fggielly%2FrouilleFTPd" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/ggielly/rouilleFTPd [INFO] finished tweaking git repo https://github.com/ggielly/rouilleFTPd [INFO] tweaked toml for git repo https://github.com/ggielly/rouilleFTPd written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/ggielly/rouilleFTPd on toolchain 8de4c7234dd9b97c9d76b58671343fdbbc9a433e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 198 packages to latest compatible versions [INFO] [stderr] Adding bcrypt v0.10.1 (available: v0.17.0) [INFO] [stderr] Adding colored v2.2.0 (available: v3.0.0) [INFO] [stderr] Adding rand v0.8.5 (available: v0.9.1) [INFO] [stderr] Adding sysinfo v0.21.2 (available: v0.35.2) [INFO] [stderr] Adding thiserror v1.0.69 (available: v2.0.12) [INFO] [stderr] Adding validator v0.18.1 (available: v0.20.0) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded win-sys v0.3.1 [INFO] [stderr] Downloaded validator v0.18.1 [INFO] [stderr] Downloaded libredox v0.1.4 [INFO] [stderr] Downloaded env_logger v0.11.8 [INFO] [stderr] Downloaded blowfish v0.8.0 [INFO] [stderr] Downloaded shared_memory v0.12.4 [INFO] [stderr] Downloaded portable-atomic-util v0.2.4 [INFO] [stderr] Downloaded jiff-static v0.2.15 [INFO] [stderr] Downloaded sysinfo v0.21.2 [INFO] [stderr] Downloaded bcrypt v0.10.1 [INFO] [stderr] Downloaded colored v2.2.0 [INFO] [stderr] Downloaded nix v0.23.2 [INFO] [stderr] Downloaded env_filter v0.1.3 [INFO] [stderr] Downloaded jiff v0.2.15 [INFO] [stderr] Downloaded windows v0.34.0 [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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] dd8f5c8a9d722f71ece2fe2762611eacb9d46d6a61fc32f34c30943c4cb3c5b8 [INFO] running `Command { std: "docker" "start" "-a" "dd8f5c8a9d722f71ece2fe2762611eacb9d46d6a61fc32f34c30943c4cb3c5b8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "dd8f5c8a9d722f71ece2fe2762611eacb9d46d6a61fc32f34c30943c4cb3c5b8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dd8f5c8a9d722f71ece2fe2762611eacb9d46d6a61fc32f34c30943c4cb3c5b8", kill_on_drop: false }` [INFO] [stdout] dd8f5c8a9d722f71ece2fe2762611eacb9d46d6a61fc32f34c30943c4cb3c5b8 [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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "build" "--frozen" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 019a314882f186628f012c6dfed8b3d0b8f0c324a4b714524aa91d2e3fd89708 [INFO] running `Command { std: "docker" "start" "-a" "019a314882f186628f012c6dfed8b3d0b8f0c324a4b714524aa91d2e3fd89708", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.95 [INFO] [stderr] Compiling unicode-ident v1.0.18 [INFO] [stderr] Compiling libc v0.2.174 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Compiling autocfg v1.5.0 [INFO] [stderr] Compiling stable_deref_trait v1.2.0 [INFO] [stderr] Compiling cfg-if v1.0.1 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling writeable v0.6.1 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling litemap v0.8.0 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Compiling memchr v2.7.5 [INFO] [stderr] Compiling icu_properties_data v2.0.1 [INFO] [stderr] Compiling icu_normalizer_data v2.0.0 [INFO] [stderr] Compiling typenum v1.18.0 [INFO] [stderr] Compiling zerocopy v0.8.26 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling regex-syntax v0.8.5 [INFO] [stderr] Compiling anstyle-parse v0.2.7 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Compiling memoffset v0.6.5 [INFO] [stderr] Compiling lock_api v0.4.13 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling anstyle v1.0.11 [INFO] [stderr] Compiling colorchoice v1.0.4 [INFO] [stderr] Compiling anstyle-query v1.1.3 [INFO] [stderr] Compiling rayon-core v1.12.1 [INFO] [stderr] Compiling tinyvec v1.9.0 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling anstream v0.6.19 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling crossbeam-deque v0.8.6 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling utf8_iter v1.0.4 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling unicode-segmentation v1.12.0 [INFO] [stderr] Compiling equivalent v1.0.2 [INFO] [stderr] Compiling unicode-width v0.1.14 [INFO] [stderr] Compiling hashbrown v0.15.4 [INFO] [stderr] Compiling percent-encoding v2.3.1 [INFO] [stderr] Compiling textwrap v0.11.0 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling form_urlencoded v1.2.1 [INFO] [stderr] Compiling indexmap v2.10.0 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Compiling unicode-normalization v0.1.24 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling cipher v0.3.0 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling toml_write v0.1.2 [INFO] [stderr] Compiling sysinfo v0.21.2 [INFO] [stderr] Compiling ryu v1.0.20 [INFO] [stderr] Compiling opaque-debug v0.3.1 [INFO] [stderr] Compiling clap_lex v0.7.5 [INFO] [stderr] Compiling heck v0.5.0 [INFO] [stderr] Compiling strsim v0.8.0 [INFO] [stderr] Compiling ansi_term v0.12.1 [INFO] [stderr] Compiling unicode-bidi v0.3.18 [INFO] [stderr] Compiling itoa v1.0.15 [INFO] [stderr] Compiling once_cell v1.21.3 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling strsim v0.11.1 [INFO] [stderr] Compiling lazy_static v1.5.0 [INFO] [stderr] Compiling vec_map v0.8.2 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling anyhow v1.0.98 [INFO] [stderr] Compiling winnow v0.7.11 [INFO] [stderr] Compiling log v0.4.27 [INFO] [stderr] Compiling idna v0.5.0 [INFO] [stderr] Compiling blowfish v0.8.0 [INFO] [stderr] Compiling clap v2.34.0 [INFO] [stderr] Compiling rayon v1.10.0 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling env_filter v0.1.3 [INFO] [stderr] Compiling clap_builder v4.5.40 [INFO] [stderr] Compiling parking_lot v0.12.4 [INFO] [stderr] Compiling nix v0.23.2 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling signal-hook-registry v1.4.5 [INFO] [stderr] Compiling structopt-derive v0.4.18 [INFO] [stderr] Compiling socket2 v0.5.10 [INFO] [stderr] Compiling mio v1.0.4 [INFO] [stderr] Compiling pin-project-lite v0.2.16 [INFO] [stderr] Compiling iana-time-zone v0.1.63 [INFO] [stderr] Compiling jiff v0.2.15 [INFO] [stderr] Compiling bytes v1.10.1 [INFO] [stderr] Compiling base64 v0.13.1 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling clap_derive v4.5.40 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling yoke v0.8.0 [INFO] [stderr] Compiling shared_memory v0.12.4 [INFO] [stderr] Compiling structopt v0.3.26 [INFO] [stderr] Compiling zerovec v0.11.2 [INFO] [stderr] Compiling zerotrie v0.2.2 [INFO] [stderr] Compiling bcrypt v0.10.1 [INFO] [stderr] Compiling chrono v0.4.41 [INFO] [stderr] Compiling tokio v1.45.1 [INFO] [stderr] Compiling tinystr v0.8.1 [INFO] [stderr] Compiling potential_utf v0.1.2 [INFO] [stderr] Compiling icu_locale_core v2.0.0 [INFO] [stderr] Compiling icu_collections v2.0.0 [INFO] [stderr] Compiling env_logger v0.11.8 [INFO] [stderr] Compiling icu_provider v2.0.0 [INFO] [stderr] Compiling colored v2.2.0 [INFO] [stderr] Compiling icu_properties v2.0.1 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling filetime v0.2.25 [INFO] [stderr] Compiling clap v4.5.40 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Compiling toml_datetime v0.6.11 [INFO] [stderr] Compiling serde_spanned v0.6.9 [INFO] [stderr] Compiling toml_edit v0.22.27 [INFO] [stderr] Compiling validator v0.18.1 [INFO] [stderr] Compiling toml v0.8.23 [INFO] [stderr] Compiling rouilleftpd v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `error` and `info` [INFO] [stdout] --> src/core_auth/helper.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | use log::{error, info}; [INFO] [stdout] | ^^^^^ ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::PathBuf` [INFO] [stdout] --> src/core_auth/helper.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::path::PathBuf; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/core_auth/helper.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::io::AsyncWriteExt` [INFO] [stdout] --> src/core_auth/helper.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use tokio::io::AsyncWriteExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::net::TcpStream` [INFO] [stdout] --> src/core_auth/helper.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use tokio::net::TcpStream; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::sync::Mutex` [INFO] [stdout] --> src/core_auth/helper.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use tokio::sync::Mutex; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::helpers::generate_and_send_statline` [INFO] [stdout] --> src/core_ftpcommand/cwd.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::helpers::generate_and_send_statline; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `colored::*` [INFO] [stdout] --> src/core_ftpcommand/user.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use colored::*; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `debug` [INFO] [stdout] --> src/ipc.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | use log::{debug, warn}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data_stream` [INFO] [stdout] --> src/core_ftpcommand/stor.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 41 | data_stream: Option>>, // Change data_stream to Option [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_data_stream` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `load_from_file` is never used [INFO] [stdout] --> src/config.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 36 | impl Config { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 37 | pub fn load_from_file(path: &str) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `IP_HOSTNAME_MAX_LENGTH` is never used [INFO] [stdout] --> src/constants.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | pub const IP_HOSTNAME_MAX_LENGTH: usize = 128; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SITEOP` is never used [INFO] [stdout] --> src/constants.rs:70:11 [INFO] [stdout] | [INFO] [stdout] 70 | pub const SITEOP: u8 = 1; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `GADMIN` is never used [INFO] [stdout] --> src/constants.rs:71:11 [INFO] [stdout] | [INFO] [stdout] 71 | pub const GADMIN: u8 = 2; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `GLOCK` is never used [INFO] [stdout] --> src/constants.rs:72:11 [INFO] [stdout] | [INFO] [stdout] 72 | pub const GLOCK: u8 = 3; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXEMPT` is never used [INFO] [stdout] --> src/constants.rs:73:11 [INFO] [stdout] | [INFO] [stdout] 73 | pub const EXEMPT: u8 = 4; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `COLOR` is never used [INFO] [stdout] --> src/constants.rs:74:11 [INFO] [stdout] | [INFO] [stdout] 74 | pub const COLOR: u8 = 5; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `USEREDIT` is never used [INFO] [stdout] --> src/constants.rs:76:11 [INFO] [stdout] | [INFO] [stdout] 76 | pub const USEREDIT: u8 = 7; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ANONYMOUS` is never used [INFO] [stdout] --> src/constants.rs:77:11 [INFO] [stdout] | [INFO] [stdout] 77 | pub const ANONYMOUS: u8 = 8; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `NUKE` is never used [INFO] [stdout] --> src/constants.rs:78:11 [INFO] [stdout] | [INFO] [stdout] 78 | pub const NUKE: u8 = 10; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `UNNUKE` is never used [INFO] [stdout] --> src/constants.rs:79:11 [INFO] [stdout] | [INFO] [stdout] 79 | pub const UNNUKE: u8 = 11; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `UNDUPE` is never used [INFO] [stdout] --> src/constants.rs:80:11 [INFO] [stdout] | [INFO] [stdout] 80 | pub const UNDUPE: u8 = 12; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `KICK` is never used [INFO] [stdout] --> src/constants.rs:81:11 [INFO] [stdout] | [INFO] [stdout] 81 | pub const KICK: u8 = 13; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `KILL` is never used [INFO] [stdout] --> src/constants.rs:82:11 [INFO] [stdout] | [INFO] [stdout] 82 | pub const KILL: u8 = 14; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TAKE` is never used [INFO] [stdout] --> src/constants.rs:83:11 [INFO] [stdout] | [INFO] [stdout] 83 | pub const TAKE: u8 = 15; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `GIVE` is never used [INFO] [stdout] --> src/constants.rs:84:11 [INFO] [stdout] | [INFO] [stdout] 84 | pub const GIVE: u8 = 16; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `USERS` is never used [INFO] [stdout] --> src/constants.rs:85:11 [INFO] [stdout] | [INFO] [stdout] 85 | pub const USERS: u8 = 17; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `IDLER` is never used [INFO] [stdout] --> src/constants.rs:86:11 [INFO] [stdout] | [INFO] [stdout] 86 | pub const IDLER: u8 = 18; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CUSTOM1` is never used [INFO] [stdout] --> src/constants.rs:87:11 [INFO] [stdout] | [INFO] [stdout] 87 | pub const CUSTOM1: u8 = 19; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CUSTOM2` is never used [INFO] [stdout] --> src/constants.rs:88:11 [INFO] [stdout] | [INFO] [stdout] 88 | pub const CUSTOM2: u8 = 20; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CUSTOM3` is never used [INFO] [stdout] --> src/constants.rs:89:11 [INFO] [stdout] | [INFO] [stdout] 89 | pub const CUSTOM3: u8 = 21; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CUSTOM4` is never used [INFO] [stdout] --> src/constants.rs:90:11 [INFO] [stdout] | [INFO] [stdout] 90 | pub const CUSTOM4: u8 = 22; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CUSTOM5` is never used [INFO] [stdout] --> src/constants.rs:91:11 [INFO] [stdout] | [INFO] [stdout] 91 | pub const CUSTOM5: u8 = 23; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `GENERAL_COOKIES` is never used [INFO] [stdout] --> src/cookies.rs:11:11 [INFO] [stdout] | [INFO] [stdout] 11 | pub const GENERAL_COOKIES: &[(&str, &str)] = &[ [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UserCookie` is never constructed [INFO] [stdout] --> src/cookies.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 35 | pub struct UserCookie { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `USER_COOKIES` is never used [INFO] [stdout] --> src/cookies.rs:40:11 [INFO] [stdout] | [INFO] [stdout] 40 | pub const USER_COOKIES: &[UserCookie] = &[ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ONELINERS_COOKIES` is never used [INFO] [stdout] --> src/cookies.rs:58:11 [INFO] [stdout] | [INFO] [stdout] 58 | pub const ONELINERS_COOKIES: &[(&str, &str)] = &[ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `LASTONLINE_COOKIES` is never used [INFO] [stdout] --> src/cookies.rs:69:11 [INFO] [stdout] | [INFO] [stdout] 69 | pub const LASTONLINE_COOKIES: &[(&str, &str)] = &[ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `NEW_DIRECTORIES_COOKIES` is never used [INFO] [stdout] --> src/cookies.rs:81:11 [INFO] [stdout] | [INFO] [stdout] 81 | pub const NEW_DIRECTORIES_COOKIES: &[(&str, &str)] = &[ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `NUKE_UNNUKE_COOKIES` is never used [INFO] [stdout] --> src/cookies.rs:90:11 [INFO] [stdout] | [INFO] [stdout] 90 | pub const NUKE_UNNUKE_COOKIES: &[(&str, &str)] = &[ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MULTIPURPOSE_STATS_COOKIES` is never used [INFO] [stdout] --> src/cookies.rs:101:11 [INFO] [stdout] | [INFO] [stdout] 101 | pub const MULTIPURPOSE_STATS_COOKIES: &[(&str, &str)] = &[ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `COOKIE_DEFINITIONS` is never used [INFO] [stdout] --> src/cookies.rs:116:11 [INFO] [stdout] | [INFO] [stdout] 116 | pub const COOKIE_DEFINITIONS: &[(&str, &str)] = &[ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hash_password` is never used [INFO] [stdout] --> src/core_auth/helper.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn hash_password(password: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `verify_password` is never used [INFO] [stdout] --> src/core_auth/helper.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn verify_password(password: &str, hashed_password: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_flag_value` is never used [INFO] [stdout] --> src/core_ftpcommand/site/helper.rs:99:8 [INFO] [stdout] | [INFO] [stdout] 99 | pub fn get_flag_value(flag_name: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_flag_name` is never used [INFO] [stdout] --> src/core_ftpcommand/site/helper.rs:128:8 [INFO] [stdout] | [INFO] [stdout] 128 | pub fn get_flag_name(flag_value: u8) -> Option<&'static str> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `load_statline` is never used [INFO] [stdout] --> src/core_ftpcommand/site/helper.rs:156:14 [INFO] [stdout] | [INFO] [stdout] 156 | pub async fn load_statline(config: Arc) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cleanup_cookie_site_user` is never used [INFO] [stdout] --> src/core_ftpcommand/site/helper.rs:193:14 [INFO] [stdout] | [INFO] [stdout] 193 | pub async fn cleanup_cookie_site_user<'a>( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `construct_path` is never used [INFO] [stdout] --> src/core_ftpcommand/utils.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn construct_path(config: &Config, current_dir: &str, sanitized_arg: &str) -> PathBuf { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_str` is never used [INFO] [stdout] --> src/core_ftpcommand/ftpcommand.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl FtpCommand { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 30 | pub fn from_str(cmd: &str) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_fxp_transfer` is never used [INFO] [stdout] --> src/core_network/handlers.rs:8:14 [INFO] [stdout] | [INFO] [stdout] 8 | pub async fn handle_fxp_transfer( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_config` is never used [INFO] [stdout] --> src/helpers.rs:72:10 [INFO] [stdout] | [INFO] [stdout] 72 | async fn read_config(path: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `InvalidKeyFormat` is never constructed [INFO] [stdout] --> src/ipc.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum IpcError { [INFO] [stdout] | -------- variant in this enum [INFO] [stdout] 10 | #[error("Invalid IPC key format")] [INFO] [stdout] 11 | InvalidKeyFormat, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `IpcError` 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 `read_user_records` is never used [INFO] [stdout] --> src/ipc.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl Ipc { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 34 | pub fn read_user_records(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `initialize_session` is never used [INFO] [stdout] --> src/server.rs:43:8 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn initialize_session(config: &Config) -> Session { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/session.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 25 | impl Session { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn average_transfer_rate(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | pub fn free_space_mib(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | pub fn upload_stat(&self) -> (f64, &str) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | pub fn download_stat(&self) -> (f64, &str) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | pub fn speed_stat(&self) -> (f64, &str) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | pub fn section(&self) -> &str { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 83 | pub fn credits(&self) -> (f64, &str) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 87 | pub fn ratio(&self) -> &str { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 91 | pub fn get_disk_info(&self) -> Vec<(String, u64, u64)> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SessionManager` is never constructed [INFO] [stdout] --> src/session.rs:105:12 [INFO] [stdout] | [INFO] [stdout] 105 | pub struct SessionManager { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `log_disk_info`, `get_session`, and `create_session` are never used [INFO] [stdout] --> src/session.rs:111:12 [INFO] [stdout] | [INFO] [stdout] 110 | impl SessionManager { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 111 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 119 | pub fn log_disk_info(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 124 | pub fn get_session(&self, id: &str) -> Option<&Session> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 128 | pub fn create_session(&mut self, id: String, base_path: PathBuf) -> &mut Session { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_bytes` is never used [INFO] [stdout] --> src/users.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl UserRecord { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 13 | pub fn from_bytes(bytes: &[u8]) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `start_watchdog` is never used [INFO] [stdout] --> src/watchdog.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn start_watchdog(ipc: Arc, verbose: bool) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 42s [INFO] running `Command { std: "docker" "inspect" "019a314882f186628f012c6dfed8b3d0b8f0c324a4b714524aa91d2e3fd89708", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "019a314882f186628f012c6dfed8b3d0b8f0c324a4b714524aa91d2e3fd89708", kill_on_drop: false }` [INFO] [stdout] 019a314882f186628f012c6dfed8b3d0b8f0c324a4b714524aa91d2e3fd89708 [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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--no-run" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 078dcf93e98894985987a58ff4e5b715508dc95e225ce3e3a78f7f9f1e4d0bfa [INFO] running `Command { std: "docker" "start" "-a" "078dcf93e98894985987a58ff4e5b715508dc95e225ce3e3a78f7f9f1e4d0bfa", kill_on_drop: false }` [INFO] [stderr] Compiling rouilleftpd v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `error` and `info` [INFO] [stdout] --> src/core_auth/helper.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | use log::{error, info}; [INFO] [stdout] | ^^^^^ ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::PathBuf` [INFO] [stdout] --> src/core_auth/helper.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::path::PathBuf; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/core_auth/helper.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::io::AsyncWriteExt` [INFO] [stdout] --> src/core_auth/helper.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use tokio::io::AsyncWriteExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::net::TcpStream` [INFO] [stdout] --> src/core_auth/helper.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use tokio::net::TcpStream; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::sync::Mutex` [INFO] [stdout] --> src/core_auth/helper.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use tokio::sync::Mutex; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::helpers::generate_and_send_statline` [INFO] [stdout] --> src/core_ftpcommand/cwd.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::helpers::generate_and_send_statline; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `colored::*` [INFO] [stdout] --> src/core_ftpcommand/user.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use colored::*; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `debug` [INFO] [stdout] --> src/ipc.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | use log::{debug, warn}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data_stream` [INFO] [stdout] --> src/core_ftpcommand/stor.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 41 | data_stream: Option>>, // Change data_stream to Option [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_data_stream` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `load_from_file` is never used [INFO] [stdout] --> src/config.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 36 | impl Config { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 37 | pub fn load_from_file(path: &str) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `IP_HOSTNAME_MAX_LENGTH` is never used [INFO] [stdout] --> src/constants.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | pub const IP_HOSTNAME_MAX_LENGTH: usize = 128; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SITEOP` is never used [INFO] [stdout] --> src/constants.rs:70:11 [INFO] [stdout] | [INFO] [stdout] 70 | pub const SITEOP: u8 = 1; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `GADMIN` is never used [INFO] [stdout] --> src/constants.rs:71:11 [INFO] [stdout] | [INFO] [stdout] 71 | pub const GADMIN: u8 = 2; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `GLOCK` is never used [INFO] [stdout] --> src/constants.rs:72:11 [INFO] [stdout] | [INFO] [stdout] 72 | pub const GLOCK: u8 = 3; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EXEMPT` is never used [INFO] [stdout] --> src/constants.rs:73:11 [INFO] [stdout] | [INFO] [stdout] 73 | pub const EXEMPT: u8 = 4; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `COLOR` is never used [INFO] [stdout] --> src/constants.rs:74:11 [INFO] [stdout] | [INFO] [stdout] 74 | pub const COLOR: u8 = 5; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `USEREDIT` is never used [INFO] [stdout] --> src/constants.rs:76:11 [INFO] [stdout] | [INFO] [stdout] 76 | pub const USEREDIT: u8 = 7; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ANONYMOUS` is never used [INFO] [stdout] --> src/constants.rs:77:11 [INFO] [stdout] | [INFO] [stdout] 77 | pub const ANONYMOUS: u8 = 8; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `NUKE` is never used [INFO] [stdout] --> src/constants.rs:78:11 [INFO] [stdout] | [INFO] [stdout] 78 | pub const NUKE: u8 = 10; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `UNNUKE` is never used [INFO] [stdout] --> src/constants.rs:79:11 [INFO] [stdout] | [INFO] [stdout] 79 | pub const UNNUKE: u8 = 11; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `UNDUPE` is never used [INFO] [stdout] --> src/constants.rs:80:11 [INFO] [stdout] | [INFO] [stdout] 80 | pub const UNDUPE: u8 = 12; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `KICK` is never used [INFO] [stdout] --> src/constants.rs:81:11 [INFO] [stdout] | [INFO] [stdout] 81 | pub const KICK: u8 = 13; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `KILL` is never used [INFO] [stdout] --> src/constants.rs:82:11 [INFO] [stdout] | [INFO] [stdout] 82 | pub const KILL: u8 = 14; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TAKE` is never used [INFO] [stdout] --> src/constants.rs:83:11 [INFO] [stdout] | [INFO] [stdout] 83 | pub const TAKE: u8 = 15; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `GIVE` is never used [INFO] [stdout] --> src/constants.rs:84:11 [INFO] [stdout] | [INFO] [stdout] 84 | pub const GIVE: u8 = 16; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `USERS` is never used [INFO] [stdout] --> src/constants.rs:85:11 [INFO] [stdout] | [INFO] [stdout] 85 | pub const USERS: u8 = 17; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `IDLER` is never used [INFO] [stdout] --> src/constants.rs:86:11 [INFO] [stdout] | [INFO] [stdout] 86 | pub const IDLER: u8 = 18; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CUSTOM1` is never used [INFO] [stdout] --> src/constants.rs:87:11 [INFO] [stdout] | [INFO] [stdout] 87 | pub const CUSTOM1: u8 = 19; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CUSTOM2` is never used [INFO] [stdout] --> src/constants.rs:88:11 [INFO] [stdout] | [INFO] [stdout] 88 | pub const CUSTOM2: u8 = 20; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CUSTOM3` is never used [INFO] [stdout] --> src/constants.rs:89:11 [INFO] [stdout] | [INFO] [stdout] 89 | pub const CUSTOM3: u8 = 21; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CUSTOM4` is never used [INFO] [stdout] --> src/constants.rs:90:11 [INFO] [stdout] | [INFO] [stdout] 90 | pub const CUSTOM4: u8 = 22; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CUSTOM5` is never used [INFO] [stdout] --> src/constants.rs:91:11 [INFO] [stdout] | [INFO] [stdout] 91 | pub const CUSTOM5: u8 = 23; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `GENERAL_COOKIES` is never used [INFO] [stdout] --> src/cookies.rs:11:11 [INFO] [stdout] | [INFO] [stdout] 11 | pub const GENERAL_COOKIES: &[(&str, &str)] = &[ [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UserCookie` is never constructed [INFO] [stdout] --> src/cookies.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 35 | pub struct UserCookie { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `USER_COOKIES` is never used [INFO] [stdout] --> src/cookies.rs:40:11 [INFO] [stdout] | [INFO] [stdout] 40 | pub const USER_COOKIES: &[UserCookie] = &[ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ONELINERS_COOKIES` is never used [INFO] [stdout] --> src/cookies.rs:58:11 [INFO] [stdout] | [INFO] [stdout] 58 | pub const ONELINERS_COOKIES: &[(&str, &str)] = &[ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `LASTONLINE_COOKIES` is never used [INFO] [stdout] --> src/cookies.rs:69:11 [INFO] [stdout] | [INFO] [stdout] 69 | pub const LASTONLINE_COOKIES: &[(&str, &str)] = &[ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `NEW_DIRECTORIES_COOKIES` is never used [INFO] [stdout] --> src/cookies.rs:81:11 [INFO] [stdout] | [INFO] [stdout] 81 | pub const NEW_DIRECTORIES_COOKIES: &[(&str, &str)] = &[ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `NUKE_UNNUKE_COOKIES` is never used [INFO] [stdout] --> src/cookies.rs:90:11 [INFO] [stdout] | [INFO] [stdout] 90 | pub const NUKE_UNNUKE_COOKIES: &[(&str, &str)] = &[ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MULTIPURPOSE_STATS_COOKIES` is never used [INFO] [stdout] --> src/cookies.rs:101:11 [INFO] [stdout] | [INFO] [stdout] 101 | pub const MULTIPURPOSE_STATS_COOKIES: &[(&str, &str)] = &[ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `COOKIE_DEFINITIONS` is never used [INFO] [stdout] --> src/cookies.rs:116:11 [INFO] [stdout] | [INFO] [stdout] 116 | pub const COOKIE_DEFINITIONS: &[(&str, &str)] = &[ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hash_password` is never used [INFO] [stdout] --> src/core_auth/helper.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn hash_password(password: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `verify_password` is never used [INFO] [stdout] --> src/core_auth/helper.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn verify_password(password: &str, hashed_password: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_flag_value` is never used [INFO] [stdout] --> src/core_ftpcommand/site/helper.rs:99:8 [INFO] [stdout] | [INFO] [stdout] 99 | pub fn get_flag_value(flag_name: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_flag_name` is never used [INFO] [stdout] --> src/core_ftpcommand/site/helper.rs:128:8 [INFO] [stdout] | [INFO] [stdout] 128 | pub fn get_flag_name(flag_value: u8) -> Option<&'static str> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `load_statline` is never used [INFO] [stdout] --> src/core_ftpcommand/site/helper.rs:156:14 [INFO] [stdout] | [INFO] [stdout] 156 | pub async fn load_statline(config: Arc) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cleanup_cookie_site_user` is never used [INFO] [stdout] --> src/core_ftpcommand/site/helper.rs:193:14 [INFO] [stdout] | [INFO] [stdout] 193 | pub async fn cleanup_cookie_site_user<'a>( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `construct_path` is never used [INFO] [stdout] --> src/core_ftpcommand/utils.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn construct_path(config: &Config, current_dir: &str, sanitized_arg: &str) -> PathBuf { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_str` is never used [INFO] [stdout] --> src/core_ftpcommand/ftpcommand.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl FtpCommand { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 30 | pub fn from_str(cmd: &str) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_fxp_transfer` is never used [INFO] [stdout] --> src/core_network/handlers.rs:8:14 [INFO] [stdout] | [INFO] [stdout] 8 | pub async fn handle_fxp_transfer( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_config` is never used [INFO] [stdout] --> src/helpers.rs:72:10 [INFO] [stdout] | [INFO] [stdout] 72 | async fn read_config(path: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `InvalidKeyFormat` is never constructed [INFO] [stdout] --> src/ipc.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum IpcError { [INFO] [stdout] | -------- variant in this enum [INFO] [stdout] 10 | #[error("Invalid IPC key format")] [INFO] [stdout] 11 | InvalidKeyFormat, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `IpcError` 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 `read_user_records` is never used [INFO] [stdout] --> src/ipc.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl Ipc { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 34 | pub fn read_user_records(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `initialize_session` is never used [INFO] [stdout] --> src/server.rs:43:8 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn initialize_session(config: &Config) -> Session { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/session.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 25 | impl Session { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn average_transfer_rate(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | pub fn free_space_mib(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | pub fn upload_stat(&self) -> (f64, &str) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | pub fn download_stat(&self) -> (f64, &str) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | pub fn speed_stat(&self) -> (f64, &str) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | pub fn section(&self) -> &str { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 83 | pub fn credits(&self) -> (f64, &str) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 87 | pub fn ratio(&self) -> &str { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 91 | pub fn get_disk_info(&self) -> Vec<(String, u64, u64)> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SessionManager` is never constructed [INFO] [stdout] --> src/session.rs:105:12 [INFO] [stdout] | [INFO] [stdout] 105 | pub struct SessionManager { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `log_disk_info`, `get_session`, and `create_session` are never used [INFO] [stdout] --> src/session.rs:111:12 [INFO] [stdout] | [INFO] [stdout] 110 | impl SessionManager { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 111 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 119 | pub fn log_disk_info(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 124 | pub fn get_session(&self, id: &str) -> Option<&Session> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 128 | pub fn create_session(&mut self, id: String, base_path: PathBuf) -> &mut Session { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_bytes` is never used [INFO] [stdout] --> src/users.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl UserRecord { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 13 | pub fn from_bytes(bytes: &[u8]) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `start_watchdog` is never used [INFO] [stdout] --> src/watchdog.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn start_watchdog(ipc: Arc, verbose: bool) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.95s [INFO] running `Command { std: "docker" "inspect" "078dcf93e98894985987a58ff4e5b715508dc95e225ce3e3a78f7f9f1e4d0bfa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "078dcf93e98894985987a58ff4e5b715508dc95e225ce3e3a78f7f9f1e4d0bfa", kill_on_drop: false }` [INFO] [stdout] 078dcf93e98894985987a58ff4e5b715508dc95e225ce3e3a78f7f9f1e4d0bfa [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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 52e3a3d17ada009ebe52a7f781e48db7585b21d7995e766a5fbf52015af16edc [INFO] running `Command { std: "docker" "start" "-a" "52e3a3d17ada009ebe52a7f781e48db7585b21d7995e766a5fbf52015af16edc", kill_on_drop: false }` [INFO] [stderr] warning: unused imports: `error` and `info` [INFO] [stderr] --> src/core_auth/helper.rs:3:11 [INFO] [stderr] | [INFO] [stderr] 3 | use log::{error, info}; [INFO] [stderr] | ^^^^^ ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::path::PathBuf` [INFO] [stderr] --> src/core_auth/helper.rs:6:5 [INFO] [stderr] | [INFO] [stderr] 6 | use std::path::PathBuf; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::sync::Arc` [INFO] [stderr] --> src/core_auth/helper.rs:7:5 [INFO] [stderr] | [INFO] [stderr] 7 | use std::sync::Arc; [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `tokio::io::AsyncWriteExt` [INFO] [stderr] --> src/core_auth/helper.rs:8:5 [INFO] [stderr] | [INFO] [stderr] 8 | use tokio::io::AsyncWriteExt; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `tokio::net::TcpStream` [INFO] [stderr] --> src/core_auth/helper.rs:9:5 [INFO] [stderr] | [INFO] [stderr] 9 | use tokio::net::TcpStream; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `tokio::sync::Mutex` [INFO] [stderr] --> src/core_auth/helper.rs:10:5 [INFO] [stderr] | [INFO] [stderr] 10 | use tokio::sync::Mutex; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `crate::helpers::generate_and_send_statline` [INFO] [stderr] --> src/core_ftpcommand/cwd.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use crate::helpers::generate_and_send_statline; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `colored::*` [INFO] [stderr] --> src/core_ftpcommand/user.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use colored::*; [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `debug` [INFO] [stderr] --> src/ipc.rs:2:11 [INFO] [stderr] | [INFO] [stderr] 2 | use log::{debug, warn}; [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `data_stream` [INFO] [stderr] --> src/core_ftpcommand/stor.rs:41:5 [INFO] [stderr] | [INFO] [stderr] 41 | data_stream: Option>>, // Change data_stream to Option [INFO] [stderr] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_data_stream` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated function `load_from_file` is never used [INFO] [stderr] --> src/config.rs:37:12 [INFO] [stderr] | [INFO] [stderr] 36 | impl Config { [INFO] [stderr] | ----------- associated function in this implementation [INFO] [stderr] 37 | pub fn load_from_file(path: &str) -> Self { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: constant `IP_HOSTNAME_MAX_LENGTH` is never used [INFO] [stderr] --> src/constants.rs:4:11 [INFO] [stderr] | [INFO] [stderr] 4 | pub const IP_HOSTNAME_MAX_LENGTH: usize = 128; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `SITEOP` is never used [INFO] [stderr] --> src/constants.rs:70:11 [INFO] [stderr] | [INFO] [stderr] 70 | pub const SITEOP: u8 = 1; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `GADMIN` is never used [INFO] [stderr] --> src/constants.rs:71:11 [INFO] [stderr] | [INFO] [stderr] 71 | pub const GADMIN: u8 = 2; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `GLOCK` is never used [INFO] [stderr] --> src/constants.rs:72:11 [INFO] [stderr] | [INFO] [stderr] 72 | pub const GLOCK: u8 = 3; [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `EXEMPT` is never used [INFO] [stderr] --> src/constants.rs:73:11 [INFO] [stderr] | [INFO] [stderr] 73 | pub const EXEMPT: u8 = 4; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `COLOR` is never used [INFO] [stderr] --> src/constants.rs:74:11 [INFO] [stderr] | [INFO] [stderr] 74 | pub const COLOR: u8 = 5; [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `USEREDIT` is never used [INFO] [stderr] --> src/constants.rs:76:11 [INFO] [stderr] | [INFO] [stderr] 76 | pub const USEREDIT: u8 = 7; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `ANONYMOUS` is never used [INFO] [stderr] --> src/constants.rs:77:11 [INFO] [stderr] | [INFO] [stderr] 77 | pub const ANONYMOUS: u8 = 8; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `NUKE` is never used [INFO] [stderr] --> src/constants.rs:78:11 [INFO] [stderr] | [INFO] [stderr] 78 | pub const NUKE: u8 = 10; [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `UNNUKE` is never used [INFO] [stderr] --> src/constants.rs:79:11 [INFO] [stderr] | [INFO] [stderr] 79 | pub const UNNUKE: u8 = 11; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `UNDUPE` is never used [INFO] [stderr] --> src/constants.rs:80:11 [INFO] [stderr] | [INFO] [stderr] 80 | pub const UNDUPE: u8 = 12; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `KICK` is never used [INFO] [stderr] --> src/constants.rs:81:11 [INFO] [stderr] | [INFO] [stderr] 81 | pub const KICK: u8 = 13; [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `KILL` is never used [INFO] [stderr] --> src/constants.rs:82:11 [INFO] [stderr] | [INFO] [stderr] 82 | pub const KILL: u8 = 14; [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `TAKE` is never used [INFO] [stderr] --> src/constants.rs:83:11 [INFO] [stderr] | [INFO] [stderr] 83 | pub const TAKE: u8 = 15; [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `GIVE` is never used [INFO] [stderr] --> src/constants.rs:84:11 [INFO] [stderr] | [INFO] [stderr] 84 | pub const GIVE: u8 = 16; [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `USERS` is never used [INFO] [stderr] --> src/constants.rs:85:11 [INFO] [stderr] | [INFO] [stderr] 85 | pub const USERS: u8 = 17; [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `IDLER` is never used [INFO] [stderr] --> src/constants.rs:86:11 [INFO] [stderr] | [INFO] [stderr] 86 | pub const IDLER: u8 = 18; [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `CUSTOM1` is never used [INFO] [stderr] --> src/constants.rs:87:11 [INFO] [stderr] | [INFO] [stderr] 87 | pub const CUSTOM1: u8 = 19; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `CUSTOM2` is never used [INFO] [stderr] --> src/constants.rs:88:11 [INFO] [stderr] | [INFO] [stderr] 88 | pub const CUSTOM2: u8 = 20; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `CUSTOM3` is never used [INFO] [stderr] --> src/constants.rs:89:11 [INFO] [stderr] | [INFO] [stderr] 89 | pub const CUSTOM3: u8 = 21; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `CUSTOM4` is never used [INFO] [stderr] --> src/constants.rs:90:11 [INFO] [stderr] | [INFO] [stderr] 90 | pub const CUSTOM4: u8 = 22; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `CUSTOM5` is never used [INFO] [stderr] --> src/constants.rs:91:11 [INFO] [stderr] | [INFO] [stderr] 91 | pub const CUSTOM5: u8 = 23; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `GENERAL_COOKIES` is never used [INFO] [stderr] --> src/cookies.rs:11:11 [INFO] [stderr] | [INFO] [stderr] 11 | pub const GENERAL_COOKIES: &[(&str, &str)] = &[ [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `UserCookie` is never constructed [INFO] [stderr] --> src/cookies.rs:35:12 [INFO] [stderr] | [INFO] [stderr] 35 | pub struct UserCookie { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `USER_COOKIES` is never used [INFO] [stderr] --> src/cookies.rs:40:11 [INFO] [stderr] | [INFO] [stderr] 40 | pub const USER_COOKIES: &[UserCookie] = &[ [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `ONELINERS_COOKIES` is never used [INFO] [stderr] --> src/cookies.rs:58:11 [INFO] [stderr] | [INFO] [stderr] 58 | pub const ONELINERS_COOKIES: &[(&str, &str)] = &[ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `LASTONLINE_COOKIES` is never used [INFO] [stderr] --> src/cookies.rs:69:11 [INFO] [stderr] | [INFO] [stderr] 69 | pub const LASTONLINE_COOKIES: &[(&str, &str)] = &[ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `NEW_DIRECTORIES_COOKIES` is never used [INFO] [stderr] --> src/cookies.rs:81:11 [INFO] [stderr] | [INFO] [stderr] 81 | pub const NEW_DIRECTORIES_COOKIES: &[(&str, &str)] = &[ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `NUKE_UNNUKE_COOKIES` is never used [INFO] [stderr] --> src/cookies.rs:90:11 [INFO] [stderr] | [INFO] [stderr] 90 | pub const NUKE_UNNUKE_COOKIES: &[(&str, &str)] = &[ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `MULTIPURPOSE_STATS_COOKIES` is never used [INFO] [stderr] --> src/cookies.rs:101:11 [INFO] [stderr] | [INFO] [stderr] 101 | pub const MULTIPURPOSE_STATS_COOKIES: &[(&str, &str)] = &[ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `COOKIE_DEFINITIONS` is never used [INFO] [stderr] --> src/cookies.rs:116:11 [INFO] [stderr] | [INFO] [stderr] 116 | pub const COOKIE_DEFINITIONS: &[(&str, &str)] = &[ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `hash_password` is never used [INFO] [stderr] --> src/core_auth/helper.rs:12:8 [INFO] [stderr] | [INFO] [stderr] 12 | pub fn hash_password(password: &str) -> String { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `verify_password` is never used [INFO] [stderr] --> src/core_auth/helper.rs:16:8 [INFO] [stderr] | [INFO] [stderr] 16 | pub fn verify_password(password: &str, hashed_password: &str) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `get_flag_value` is never used [INFO] [stderr] --> src/core_ftpcommand/site/helper.rs:99:8 [INFO] [stderr] | [INFO] [stderr] 99 | pub fn get_flag_value(flag_name: &str) -> Option { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `get_flag_name` is never used [INFO] [stderr] --> src/core_ftpcommand/site/helper.rs:128:8 [INFO] [stderr] | [INFO] [stderr] 128 | pub fn get_flag_name(flag_value: u8) -> Option<&'static str> { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `load_statline` is never used [INFO] [stderr] --> src/core_ftpcommand/site/helper.rs:156:14 [INFO] [stderr] | [INFO] [stderr] 156 | pub async fn load_statline(config: Arc) -> Result { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `cleanup_cookie_site_user` is never used [INFO] [stderr] --> src/core_ftpcommand/site/helper.rs:193:14 [INFO] [stderr] | [INFO] [stderr] 193 | pub async fn cleanup_cookie_site_user<'a>( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `construct_path` is never used [INFO] [stderr] --> src/core_ftpcommand/utils.rs:5:8 [INFO] [stderr] | [INFO] [stderr] 5 | pub fn construct_path(config: &Config, current_dir: &str, sanitized_arg: &str) -> PathBuf { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `from_str` is never used [INFO] [stderr] --> src/core_ftpcommand/ftpcommand.rs:30:12 [INFO] [stderr] | [INFO] [stderr] 29 | impl FtpCommand { [INFO] [stderr] | --------------- associated function in this implementation [INFO] [stderr] 30 | pub fn from_str(cmd: &str) -> Option { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `handle_fxp_transfer` is never used [INFO] [stderr] --> src/core_network/handlers.rs:8:14 [INFO] [stderr] | [INFO] [stderr] 8 | pub async fn handle_fxp_transfer( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `read_config` is never used [INFO] [stderr] --> src/helpers.rs:72:10 [INFO] [stderr] | [INFO] [stderr] 72 | async fn read_config(path: &str) -> Result { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variant `InvalidKeyFormat` is never constructed [INFO] [stderr] --> src/ipc.rs:11:5 [INFO] [stderr] | [INFO] [stderr] 9 | pub enum IpcError { [INFO] [stderr] | -------- variant in this enum [INFO] [stderr] 10 | #[error("Invalid IPC key format")] [INFO] [stderr] 11 | InvalidKeyFormat, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `IpcError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: method `read_user_records` is never used [INFO] [stderr] --> src/ipc.rs:34:12 [INFO] [stderr] | [INFO] [stderr] 22 | impl Ipc { [INFO] [stderr] | -------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 34 | pub fn read_user_records(&self) -> Vec { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `initialize_session` is never used [INFO] [stderr] --> src/server.rs:43:8 [INFO] [stderr] | [INFO] [stderr] 43 | pub fn initialize_session(config: &Config) -> Session { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: multiple methods are never used [INFO] [stderr] --> src/session.rs:45:12 [INFO] [stderr] | [INFO] [stderr] 25 | impl Session { [INFO] [stderr] | ------------ methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 45 | pub fn average_transfer_rate(&self) -> f64 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 54 | pub fn free_space_mib(&self) -> f64 { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 67 | pub fn upload_stat(&self) -> (f64, &str) { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 71 | pub fn download_stat(&self) -> (f64, &str) { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 75 | pub fn speed_stat(&self) -> (f64, &str) { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 79 | pub fn section(&self) -> &str { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 83 | pub fn credits(&self) -> (f64, &str) { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 87 | pub fn ratio(&self) -> &str { [INFO] [stderr] | ^^^^^ [INFO] [stderr] ... [INFO] [stderr] 91 | pub fn get_disk_info(&self) -> Vec<(String, u64, u64)> { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `SessionManager` is never constructed [INFO] [stderr] --> src/session.rs:105:12 [INFO] [stderr] | [INFO] [stderr] 105 | pub struct SessionManager { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated items `new`, `log_disk_info`, `get_session`, and `create_session` are never used [INFO] [stderr] --> src/session.rs:111:12 [INFO] [stderr] | [INFO] [stderr] 110 | impl SessionManager { [INFO] [stderr] | ------------------- associated items in this implementation [INFO] [stderr] 111 | pub fn new() -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 119 | pub fn log_disk_info(&self) { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 124 | pub fn get_session(&self, id: &str) -> Option<&Session> { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 128 | pub fn create_session(&mut self, id: String, base_path: PathBuf) -> &mut Session { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `from_bytes` is never used [INFO] [stderr] --> src/users.rs:13:12 [INFO] [stderr] | [INFO] [stderr] 12 | impl UserRecord { [INFO] [stderr] | --------------- associated function in this implementation [INFO] [stderr] 13 | pub fn from_bytes(bytes: &[u8]) -> Self { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `start_watchdog` is never used [INFO] [stderr] --> src/watchdog.rs:5:8 [INFO] [stderr] | [INFO] [stderr] 5 | pub fn start_watchdog(ipc: Arc, verbose: bool) { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `rouilleftpd` (bin "rouilleftpd" test) generated 60 warnings (run `cargo fix --bin "rouilleftpd" --tests` to apply 9 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.21s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/x86_64-unknown-linux-musl/debug/deps/rouilleftpd-933b853d42a1fa31) [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" "52e3a3d17ada009ebe52a7f781e48db7585b21d7995e766a5fbf52015af16edc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "52e3a3d17ada009ebe52a7f781e48db7585b21d7995e766a5fbf52015af16edc", kill_on_drop: false }` [INFO] [stdout] 52e3a3d17ada009ebe52a7f781e48db7585b21d7995e766a5fbf52015af16edc