[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 try#d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6 for pr-146237 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLavenderOfTheLake%2FBackupUtility" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [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-7-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/LavenderOfTheLake/BackupUtility on toolchain d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [INFO] testing LavenderOfTheLake/BackupUtility against try#d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6 for pr-146237 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLavenderOfTheLake%2FBackupUtility" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [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-7-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/LavenderOfTheLake/BackupUtility on toolchain d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded anstream v0.6.5 [INFO] [stderr] Downloaded num-iter v0.1.43 [INFO] [stderr] Downloaded parse_duration v2.1.1 [INFO] [stderr] Downloaded clap v4.4.13 [INFO] [stderr] Downloaded proc-macro2 v1.0.75 [INFO] [stderr] Downloaded serde_json v1.0.111 [INFO] [stderr] Downloaded clap_builder v4.4.12 [INFO] [stderr] Downloaded regex v1.10.2 [INFO] [stderr] Downloaded regex-automata v0.4.3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 36dff5180752303f3df1abe0dd1a0f97ceeaaa3f92174472a123c6073edd2d95 [INFO] running `Command { std: "docker" "start" "-a" "36dff5180752303f3df1abe0dd1a0f97ceeaaa3f92174472a123c6073edd2d95", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "36dff5180752303f3df1abe0dd1a0f97ceeaaa3f92174472a123c6073edd2d95", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "36dff5180752303f3df1abe0dd1a0f97ceeaaa3f92174472a123c6073edd2d95", kill_on_drop: false }` [INFO] [stdout] 36dff5180752303f3df1abe0dd1a0f97ceeaaa3f92174472a123c6073edd2d95 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e9bbfbd03720f73feccecf6c92859a92a5cf315646bed689a6cba3145684ffdf [INFO] running `Command { std: "docker" "start" "-a" "e9bbfbd03720f73feccecf6c92859a92a5cf315646bed689a6cba3145684ffdf", kill_on_drop: false }` [INFO] [stderr] Compiling num-traits v0.2.17 [INFO] [stderr] Compiling proc-macro2 v1.0.75 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling num-bigint v0.2.6 [INFO] [stderr] Compiling num-iter v0.1.43 [INFO] [stderr] Compiling num-rational v0.2.4 [INFO] [stderr] Compiling num-complex v0.2.4 [INFO] [stderr] Compiling memchr v2.7.1 [INFO] [stderr] Compiling anstyle-parse v0.2.3 [INFO] [stderr] Compiling anstyle-query v1.0.2 [INFO] [stderr] Compiling anstyle v1.0.4 [INFO] [stderr] Compiling regex-syntax v0.8.2 [INFO] [stderr] Compiling serde v1.0.195 [INFO] [stderr] Compiling anstream v0.6.5 [INFO] [stderr] Compiling serde_json v1.0.111 [INFO] [stderr] Compiling clap_lex v0.6.0 [INFO] [stderr] Compiling aho-corasick v1.1.2 [INFO] [stderr] Compiling strsim v0.10.0 [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stderr] Compiling syn v2.0.48 [INFO] [stderr] Compiling clap_builder v4.4.12 [INFO] [stderr] Compiling linked-hash-map v0.5.6 [INFO] [stderr] Compiling itoa v1.0.10 [INFO] [stderr] Compiling ryu v1.0.16 [INFO] [stderr] Compiling yaml-rust v0.4.5 [INFO] [stderr] Compiling regex-automata v0.4.3 [INFO] [stderr] Compiling num v0.2.1 [INFO] [stderr] Compiling regex v1.10.2 [INFO] [stderr] Compiling serde_derive v1.0.195 [INFO] [stderr] Compiling clap_derive v4.4.7 [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)]` (part of `#[warn(unused)]`) on by default [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] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) 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] [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: `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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) on by default [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 36.27s [INFO] running `Command { std: "docker" "inspect" "e9bbfbd03720f73feccecf6c92859a92a5cf315646bed689a6cba3145684ffdf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e9bbfbd03720f73feccecf6c92859a92a5cf315646bed689a6cba3145684ffdf", kill_on_drop: false }` [INFO] [stdout] e9bbfbd03720f73feccecf6c92859a92a5cf315646bed689a6cba3145684ffdf [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4440e9eac99c9038bf8032c666f01825e49d5eef955ef0050f9f773e5775887c [INFO] running `Command { std: "docker" "start" "-a" "4440e9eac99c9038bf8032c666f01825e49d5eef955ef0050f9f773e5775887c", 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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) 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: `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)]` (part of `#[warn(unused)]`) 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: 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: 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)]` (part of `#[warn(unused)]`) on by default [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 1.14s [INFO] running `Command { std: "docker" "inspect" "4440e9eac99c9038bf8032c666f01825e49d5eef955ef0050f9f773e5775887c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4440e9eac99c9038bf8032c666f01825e49d5eef955ef0050f9f773e5775887c", kill_on_drop: false }` [INFO] [stdout] 4440e9eac99c9038bf8032c666f01825e49d5eef955ef0050f9f773e5775887c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] f2614d554691ce88c3fc78d6706f2fa8b44247c352011d4693be72198b5c0610 [INFO] running `Command { std: "docker" "start" "-a" "f2614d554691ce88c3fc78d6706f2fa8b44247c352011d4693be72198b5c0610", 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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) 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: `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)]` (part of `#[warn(unused)]`) 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: 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: 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)]` (part of `#[warn(unused)]`) on by default [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 16 warnings (run `cargo fix --bin "rusty-daemon" --tests` to apply 2 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.11s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/rusty_daemon-44b29512ae817c7b) [INFO] [stdout] [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.05s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "f2614d554691ce88c3fc78d6706f2fa8b44247c352011d4693be72198b5c0610", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f2614d554691ce88c3fc78d6706f2fa8b44247c352011d4693be72198b5c0610", kill_on_drop: false }` [INFO] [stdout] f2614d554691ce88c3fc78d6706f2fa8b44247c352011d4693be72198b5c0610