[INFO] cloning repository https://github.com/LavenderOfTheLake/BackupUtility [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/LavenderOfTheLake/BackupUtility" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLavenderOfTheLake%2FBackupUtility", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLavenderOfTheLake%2FBackupUtility'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] df16f78494c9590953253098d4238a087f378b5a [INFO] testing LavenderOfTheLake/BackupUtility against beta-2025-01-12 for beta-1.85-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLavenderOfTheLake%2FBackupUtility" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/LavenderOfTheLake/BackupUtility on toolchain beta-2025-01-12 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+beta-2025-01-12" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/LavenderOfTheLake/BackupUtility [INFO] finished tweaking git repo https://github.com/LavenderOfTheLake/BackupUtility [INFO] tweaked toml for git repo https://github.com/LavenderOfTheLake/BackupUtility written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/LavenderOfTheLake/BackupUtility 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" "+beta-2025-01-12" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded clap v4.4.13 [INFO] [stderr] Downloaded parse_duration v2.1.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:86ea7c7af713d31e8cfdb68a6d0db50b5cf7cbeecde3d112f9f257f747318d36" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2025-01-12" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a4fe5ee0990adf65c1d4c1537af1b861c6e58e22e58be748add050ab30d9f8e3 [INFO] running `Command { std: "docker" "start" "-a" "a4fe5ee0990adf65c1d4c1537af1b861c6e58e22e58be748add050ab30d9f8e3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a4fe5ee0990adf65c1d4c1537af1b861c6e58e22e58be748add050ab30d9f8e3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a4fe5ee0990adf65c1d4c1537af1b861c6e58e22e58be748add050ab30d9f8e3", kill_on_drop: false }` [INFO] [stdout] a4fe5ee0990adf65c1d4c1537af1b861c6e58e22e58be748add050ab30d9f8e3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:86ea7c7af713d31e8cfdb68a6d0db50b5cf7cbeecde3d112f9f257f747318d36" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2025-01-12" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 93472882fc57481d2b05072cf5200266a82e1a9d1b14e73b0c2a95a0b065dc87 [INFO] running `Command { std: "docker" "start" "-a" "93472882fc57481d2b05072cf5200266a82e1a9d1b14e73b0c2a95a0b065dc87", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling proc-macro2 v1.0.75 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling memchr v2.7.1 [INFO] [stderr] Compiling utf8parse v0.2.1 [INFO] [stderr] Compiling anstyle-query v1.0.2 [INFO] [stderr] Compiling anstyle v1.0.4 [INFO] [stderr] Compiling colorchoice v1.0.0 [INFO] [stderr] Compiling regex-syntax v0.8.2 [INFO] [stderr] Compiling serde v1.0.195 [INFO] [stderr] Compiling serde_json v1.0.111 [INFO] [stderr] Compiling strsim v0.10.0 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Compiling clap_lex v0.6.0 [INFO] [stderr] Compiling itoa v1.0.10 [INFO] [stderr] Compiling linked-hash-map v0.5.6 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling ryu v1.0.16 [INFO] [stderr] Compiling anstyle-parse v0.2.3 [INFO] [stderr] Compiling yaml-rust v0.4.5 [INFO] [stderr] Compiling anstream v0.6.5 [INFO] [stderr] Compiling num-traits v0.2.17 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling num-bigint v0.2.6 [INFO] [stderr] Compiling num-rational v0.2.4 [INFO] [stderr] Compiling num-complex v0.2.4 [INFO] [stderr] Compiling num-iter v0.1.43 [INFO] [stderr] Compiling clap_builder v4.4.12 [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stderr] Compiling syn v2.0.48 [INFO] [stderr] Compiling aho-corasick v1.1.2 [INFO] [stderr] Compiling regex-automata v0.4.3 [INFO] [stderr] Compiling num v0.2.1 [INFO] [stderr] Compiling serde_derive v1.0.195 [INFO] [stderr] Compiling clap_derive v4.4.7 [INFO] [stderr] Compiling regex v1.10.2 [INFO] [stderr] Compiling parse_duration v2.1.1 [INFO] [stderr] Compiling clap v4.4.13 [INFO] [stderr] Compiling rusty-daemon v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `serde_json` [INFO] [stdout] --> src/btrfs.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use serde_json; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mounts` [INFO] [stdout] --> src/btrfs.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | let mounts: &str = &String::from_utf8(mounts) [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_mounts` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mounts` [INFO] [stdout] --> src/btrfs.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | let mounts: FindMntOutput = [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_mounts` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `obj` [INFO] [stdout] --> src/btrfs.rs:49:23 [INFO] [stdout] | [INFO] [stdout] 49 | fn from_serde(obj: FindMntMountPoint) -> Option { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_obj` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config_file` [INFO] [stdout] --> src/main.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | config_file: &Vec, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_config_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args` [INFO] [stdout] --> src/main.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | args: &clap::ArgMatches, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_args` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/main.rs:53:29 [INFO] [stdout] | [INFO] [stdout] 53 | if let Some(a) = (&retention_tier).for_duration { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args` [INFO] [stdout] --> src/main.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 36 | args: &clap::ArgMatches, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_args` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 45 | let mut most_permissive: &RetentionTier = &vault.retention_policy[0]; [INFO] [stdout] | ----^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config_file` [INFO] [stdout] --> src/main.rs:66:5 [INFO] [stdout] | [INFO] [stdout] 66 | config_file: &Vec, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_config_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args` [INFO] [stdout] --> src/main.rs:67:5 [INFO] [stdout] | [INFO] [stdout] 67 | args: &clap::ArgMatches, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_args` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_btrfs_mounts` is never used [INFO] [stdout] --> src/btrfs.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn get_btrfs_mounts() -> Result, &'static str> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `filesystems` is never read [INFO] [stdout] --> src/btrfs.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 36 | struct FindMntOutput { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 37 | filesystems: Vec, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FindMntOutput` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `target`, `source`, `fstype`, and `options` are never read [INFO] [stdout] --> src/btrfs.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 41 | struct FindMntMountPoint { [INFO] [stdout] | ----------------- fields in this struct [INFO] [stdout] 42 | target: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 43 | source: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 44 | fstype: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 45 | options: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FindMntMountPoint` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_serde` is never used [INFO] [stdout] --> src/btrfs.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 48 | impl BtrfsMount { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 49 | fn from_serde(obj: FindMntMountPoint) -> Option { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BtrfsMount` is never constructed [INFO] [stdout] --> src/btrfs.rs:61:12 [INFO] [stdout] | [INFO] [stdout] 61 | pub struct BtrfsMount { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_mounted_btrfs_partitions` is never used [INFO] [stdout] --> src/btrfs.rs:68:8 [INFO] [stdout] | [INFO] [stdout] 68 | pub fn get_mounted_btrfs_partitions() -> Result, &'static str> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/btrfs.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn get_btrfs_mounts() -> Result, &'static str> { [INFO] [stdout] | ------------------------------------------------------------------ move the `impl` block outside of this function `get_btrfs_mounts` [INFO] [stdout] ... [INFO] [stdout] 48 | impl BtrfsMount { [INFO] [stdout] | ^^^^^---------- [INFO] [stdout] | | [INFO] [stdout] | `BtrfsMount` is not local [INFO] [stdout] | [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 27.06s [INFO] running `Command { std: "docker" "inspect" "93472882fc57481d2b05072cf5200266a82e1a9d1b14e73b0c2a95a0b065dc87", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "93472882fc57481d2b05072cf5200266a82e1a9d1b14e73b0c2a95a0b065dc87", kill_on_drop: false }` [INFO] [stdout] 93472882fc57481d2b05072cf5200266a82e1a9d1b14e73b0c2a95a0b065dc87 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:86ea7c7af713d31e8cfdb68a6d0db50b5cf7cbeecde3d112f9f257f747318d36" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2025-01-12" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a684df3b4caf5f8382ad265f67df02411fc6365c3f9c9d84a3a29d39cdab6919 [INFO] running `Command { std: "docker" "start" "-a" "a684df3b4caf5f8382ad265f67df02411fc6365c3f9c9d84a3a29d39cdab6919", kill_on_drop: false }` [INFO] [stderr] Compiling rusty-daemon v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `serde_json` [INFO] [stdout] --> src/btrfs.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use serde_json; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mounts` [INFO] [stdout] --> src/btrfs.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | let mounts: &str = &String::from_utf8(mounts) [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_mounts` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mounts` [INFO] [stdout] --> src/btrfs.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | let mounts: FindMntOutput = [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_mounts` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `obj` [INFO] [stdout] --> src/btrfs.rs:49:23 [INFO] [stdout] | [INFO] [stdout] 49 | fn from_serde(obj: FindMntMountPoint) -> Option { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_obj` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config_file` [INFO] [stdout] --> src/main.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | config_file: &Vec, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_config_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args` [INFO] [stdout] --> src/main.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | args: &clap::ArgMatches, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_args` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/main.rs:53:29 [INFO] [stdout] | [INFO] [stdout] 53 | if let Some(a) = (&retention_tier).for_duration { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args` [INFO] [stdout] --> src/main.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 36 | args: &clap::ArgMatches, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_args` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 45 | let mut most_permissive: &RetentionTier = &vault.retention_policy[0]; [INFO] [stdout] | ----^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config_file` [INFO] [stdout] --> src/main.rs:66:5 [INFO] [stdout] | [INFO] [stdout] 66 | config_file: &Vec, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_config_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args` [INFO] [stdout] --> src/main.rs:67:5 [INFO] [stdout] | [INFO] [stdout] 67 | args: &clap::ArgMatches, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_args` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_btrfs_mounts` is never used [INFO] [stdout] --> src/btrfs.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn get_btrfs_mounts() -> Result, &'static str> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `filesystems` is never read [INFO] [stdout] --> src/btrfs.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 36 | struct FindMntOutput { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 37 | filesystems: Vec, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FindMntOutput` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `target`, `source`, `fstype`, and `options` are never read [INFO] [stdout] --> src/btrfs.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 41 | struct FindMntMountPoint { [INFO] [stdout] | ----------------- fields in this struct [INFO] [stdout] 42 | target: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 43 | source: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 44 | fstype: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 45 | options: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FindMntMountPoint` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_serde` is never used [INFO] [stdout] --> src/btrfs.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 48 | impl BtrfsMount { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 49 | fn from_serde(obj: FindMntMountPoint) -> Option { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BtrfsMount` is never constructed [INFO] [stdout] --> src/btrfs.rs:61:12 [INFO] [stdout] | [INFO] [stdout] 61 | pub struct BtrfsMount { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_mounted_btrfs_partitions` is never used [INFO] [stdout] --> src/btrfs.rs:68:8 [INFO] [stdout] | [INFO] [stdout] 68 | pub fn get_mounted_btrfs_partitions() -> Result, &'static str> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/btrfs.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn get_btrfs_mounts() -> Result, &'static str> { [INFO] [stdout] | ------------------------------------------------------------------ move the `impl` block outside of this function `get_btrfs_mounts` [INFO] [stdout] ... [INFO] [stdout] 48 | impl BtrfsMount { [INFO] [stdout] | ^^^^^---------- [INFO] [stdout] | | [INFO] [stdout] | `BtrfsMount` is not local [INFO] [stdout] | [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 2.69s [INFO] running `Command { std: "docker" "inspect" "a684df3b4caf5f8382ad265f67df02411fc6365c3f9c9d84a3a29d39cdab6919", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a684df3b4caf5f8382ad265f67df02411fc6365c3f9c9d84a3a29d39cdab6919", kill_on_drop: false }` [INFO] [stdout] a684df3b4caf5f8382ad265f67df02411fc6365c3f9c9d84a3a29d39cdab6919 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:86ea7c7af713d31e8cfdb68a6d0db50b5cf7cbeecde3d112f9f257f747318d36" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2025-01-12" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 51f77d6ab0bdd0ab9f951eae16d96d0af338ab6653db2d597b11efcd81332394 [INFO] running `Command { std: "docker" "start" "-a" "51f77d6ab0bdd0ab9f951eae16d96d0af338ab6653db2d597b11efcd81332394", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `serde_json` [INFO] [stderr] --> src/btrfs.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use serde_json; [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `mounts` [INFO] [stderr] --> src/btrfs.rs:26:9 [INFO] [stderr] | [INFO] [stderr] 26 | let mounts: &str = &String::from_utf8(mounts) [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_mounts` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `mounts` [INFO] [stderr] --> src/btrfs.rs:29:9 [INFO] [stderr] | [INFO] [stderr] 29 | let mounts: FindMntOutput = [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_mounts` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `obj` [INFO] [stderr] --> src/btrfs.rs:49:23 [INFO] [stderr] | [INFO] [stderr] 49 | fn from_serde(obj: FindMntMountPoint) -> Option { [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_obj` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `config_file` [INFO] [stderr] --> src/main.rs:30:5 [INFO] [stderr] | [INFO] [stderr] 30 | config_file: &Vec, [INFO] [stderr] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_config_file` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `args` [INFO] [stderr] --> src/main.rs:31:5 [INFO] [stderr] | [INFO] [stderr] 31 | args: &clap::ArgMatches, [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_args` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `a` [INFO] [stderr] --> src/main.rs:53:29 [INFO] [stderr] | [INFO] [stderr] 53 | if let Some(a) = (&retention_tier).for_duration { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `args` [INFO] [stderr] --> src/main.rs:36:5 [INFO] [stderr] | [INFO] [stderr] 36 | args: &clap::ArgMatches, [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_args` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/main.rs:45:13 [INFO] [stderr] | [INFO] [stderr] 45 | let mut most_permissive: &RetentionTier = &vault.retention_policy[0]; [INFO] [stderr] | ----^^^^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `config_file` [INFO] [stderr] --> src/main.rs:66:5 [INFO] [stderr] | [INFO] [stderr] 66 | config_file: &Vec, [INFO] [stderr] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_config_file` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `args` [INFO] [stderr] --> src/main.rs:67:5 [INFO] [stderr] | [INFO] [stderr] 67 | args: &clap::ArgMatches, [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_args` [INFO] [stderr] [INFO] [stderr] warning: function `get_btrfs_mounts` is never used [INFO] [stderr] --> src/btrfs.rs:18:8 [INFO] [stderr] | [INFO] [stderr] 18 | pub fn get_btrfs_mounts() -> Result, &'static str> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: field `filesystems` is never read [INFO] [stderr] --> src/btrfs.rs:37:9 [INFO] [stderr] | [INFO] [stderr] 36 | struct FindMntOutput { [INFO] [stderr] | ------------- field in this struct [INFO] [stderr] 37 | filesystems: Vec, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `FindMntOutput` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: fields `target`, `source`, `fstype`, and `options` are never read [INFO] [stderr] --> src/btrfs.rs:42:9 [INFO] [stderr] | [INFO] [stderr] 41 | struct FindMntMountPoint { [INFO] [stderr] | ----------------- fields in this struct [INFO] [stderr] 42 | target: String, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] 43 | source: String, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] 44 | fstype: String, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] 45 | options: String, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `FindMntMountPoint` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: associated function `from_serde` is never used [INFO] [stderr] --> src/btrfs.rs:49:12 [INFO] [stderr] | [INFO] [stderr] 48 | impl BtrfsMount { [INFO] [stderr] | --------------- associated function in this implementation [INFO] [stderr] 49 | fn from_serde(obj: FindMntMountPoint) -> Option { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `BtrfsMount` is never constructed [INFO] [stderr] --> src/btrfs.rs:61:12 [INFO] [stderr] | [INFO] [stderr] 61 | pub struct BtrfsMount { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `get_mounted_btrfs_partitions` is never used [INFO] [stderr] --> src/btrfs.rs:68:8 [INFO] [stderr] | [INFO] [stderr] 68 | pub fn get_mounted_btrfs_partitions() -> Result, &'static str> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/btrfs.rs:48:5 [INFO] [stderr] | [INFO] [stderr] 18 | pub fn get_btrfs_mounts() -> Result, &'static str> { [INFO] [stderr] | ------------------------------------------------------------------ move the `impl` block outside of this function `get_btrfs_mounts` [INFO] [stderr] ... [INFO] [stderr] 48 | impl BtrfsMount { [INFO] [stderr] | ^^^^^---------- [INFO] [stderr] | | [INFO] [stderr] | `BtrfsMount` is not local [INFO] [stderr] | [INFO] [stderr] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stderr] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `rusty-daemon` (bin "rusty-daemon" test) generated 18 warnings (run `cargo fix --bin "rusty-daemon" --tests` to apply 2 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.07s [INFO] [stdout] [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/rusty_daemon-94ec5dda7cb4f414) [INFO] [stdout] running 1 test [INFO] [stdout] test config::tests::test ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.08s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "51f77d6ab0bdd0ab9f951eae16d96d0af338ab6653db2d597b11efcd81332394", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "51f77d6ab0bdd0ab9f951eae16d96d0af338ab6653db2d597b11efcd81332394", kill_on_drop: false }` [INFO] [stdout] 51f77d6ab0bdd0ab9f951eae16d96d0af338ab6653db2d597b11efcd81332394