[INFO] cloning repository https://github.com/MordecaiMalignatus/install-agent [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/MordecaiMalignatus/install-agent" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMordecaiMalignatus%2Finstall-agent", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMordecaiMalignatus%2Finstall-agent'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 6d7b49658d53097f2c02771dd0317b2b87f02c1a [INFO] testing MordecaiMalignatus/install-agent against master#ff2c56344c764af598ad33027e9c7a48881808ef for pr-118825 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMordecaiMalignatus%2Finstall-agent" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/MordecaiMalignatus/install-agent on toolchain ff2c56344c764af598ad33027e9c7a48881808ef [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ff2c56344c764af598ad33027e9c7a48881808ef" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/MordecaiMalignatus/install-agent [INFO] finished tweaking git repo https://github.com/MordecaiMalignatus/install-agent [INFO] tweaked toml for git repo https://github.com/MordecaiMalignatus/install-agent written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/MordecaiMalignatus/install-agent 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" "+ff2c56344c764af598ad33027e9c7a48881808ef" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [ERROR] this task or one of its parent failed! [ERROR] no output for 300 seconds [ERROR] note: run with `RUST_BACKTRACE=1` to display a backtrace. [INFO] testing MordecaiMalignatus/install-agent against try#5e4273472e1b2f223618a9b3def795f6224f241d for pr-118825 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMordecaiMalignatus%2Finstall-agent" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/MordecaiMalignatus/install-agent on toolchain 5e4273472e1b2f223618a9b3def795f6224f241d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+5e4273472e1b2f223618a9b3def795f6224f241d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/MordecaiMalignatus/install-agent [INFO] finished tweaking git repo https://github.com/MordecaiMalignatus/install-agent [INFO] tweaked toml for git repo https://github.com/MordecaiMalignatus/install-agent written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/MordecaiMalignatus/install-agent 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" "+5e4273472e1b2f223618a9b3def795f6224f241d" "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 anyhow v1.0.54 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+5e4273472e1b2f223618a9b3def795f6224f241d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9775d658286e8c6faac1cc6e3935222bc78e7acbbf6ba4fab3a70a033001859f [INFO] running `Command { std: "docker" "start" "-a" "9775d658286e8c6faac1cc6e3935222bc78e7acbbf6ba4fab3a70a033001859f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9775d658286e8c6faac1cc6e3935222bc78e7acbbf6ba4fab3a70a033001859f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9775d658286e8c6faac1cc6e3935222bc78e7acbbf6ba4fab3a70a033001859f", kill_on_drop: false }` [INFO] [stdout] 9775d658286e8c6faac1cc6e3935222bc78e7acbbf6ba4fab3a70a033001859f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+5e4273472e1b2f223618a9b3def795f6224f241d" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7806af94cfa0377cc79cad8416bee92ea9ab0ce084329b30e8c03a617d6d9554 [INFO] running `Command { std: "docker" "start" "-a" "7806af94cfa0377cc79cad8416bee92ea9ab0ce084329b30e8c03a617d6d9554", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.119 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling indexmap v1.8.0 [INFO] [stderr] Compiling hashbrown v0.11.2 [INFO] [stderr] Compiling anyhow v1.0.54 [INFO] [stderr] Compiling textwrap v0.14.2 [INFO] [stderr] Compiling strsim v0.10.0 [INFO] [stderr] Compiling termcolor v1.1.2 [INFO] [stderr] Compiling os_str_bytes v6.0.0 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling clap v3.1.0 [INFO] [stderr] Compiling install-agent v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `args` [INFO] [stdout] --> src/plists.rs:12:22 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn from_args(args: &clap::ArgMatches) -> Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_args` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `agentspec` [INFO] [stdout] --> src/plists.rs:40:23 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn from_agent(agentspec: &Agent) -> Result { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_agentspec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `matches` [INFO] [stdout] --> src/main.rs:53:20 [INFO] [stdout] | [INFO] [stdout] 53 | fn cmd_list_agents(matches: &ArgMatches) -> Result<()> { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_matches` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file` [INFO] [stdout] --> src/main.rs:57:18 [INFO] [stdout] | [INFO] [stdout] 57 | fn launch_editor(file: &Path) -> Result<()> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cmd_install_agent` is never used [INFO] [stdout] --> src/main.rs:40:4 [INFO] [stdout] | [INFO] [stdout] 40 | fn cmd_install_agent(args: &clap::ArgMatches) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `write_agent` is never used [INFO] [stdout] --> src/main.rs:49:4 [INFO] [stdout] | [INFO] [stdout] 49 | fn write_agent(filename: PathBuf, content: PList) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `launch_editor` is never used [INFO] [stdout] --> src/main.rs:57:4 [INFO] [stdout] | [INFO] [stdout] 57 | fn launch_editor(file: &Path) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Agent` is never constructed [INFO] [stdout] --> src/plists.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Agent { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_args` is never used [INFO] [stdout] --> src/plists.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl Agent { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 12 | pub fn from_args(args: &clap::ArgMatches) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `AgentCommand` is never used [INFO] [stdout] --> src/plists.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 17 | pub enum AgentCommand { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `LaunchType` is never used [INFO] [stdout] --> src/plists.rs:22:10 [INFO] [stdout] | [INFO] [stdout] 22 | pub enum LaunchType { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Interval` is never constructed [INFO] [stdout] --> src/plists.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 28 | pub struct Interval { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_agent` is never used [INFO] [stdout] --> src/plists.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 39 | impl PList { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 40 | pub fn from_agent(agentspec: &Agent) -> Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 4.18s [INFO] running `Command { std: "docker" "inspect" "7806af94cfa0377cc79cad8416bee92ea9ab0ce084329b30e8c03a617d6d9554", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7806af94cfa0377cc79cad8416bee92ea9ab0ce084329b30e8c03a617d6d9554", kill_on_drop: false }` [INFO] [stdout] 7806af94cfa0377cc79cad8416bee92ea9ab0ce084329b30e8c03a617d6d9554 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+5e4273472e1b2f223618a9b3def795f6224f241d" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a129768f2ce9594b5e342f8efc1015227c1b3da8f8ec2428eebe27396b124c65 [INFO] running `Command { std: "docker" "start" "-a" "a129768f2ce9594b5e342f8efc1015227c1b3da8f8ec2428eebe27396b124c65", kill_on_drop: false }` [INFO] [stderr] Compiling install-agent v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `args` [INFO] [stdout] --> src/plists.rs:12:22 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn from_args(args: &clap::ArgMatches) -> Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_args` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `agentspec` [INFO] [stdout] --> src/plists.rs:40:23 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn from_agent(agentspec: &Agent) -> Result { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_agentspec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `matches` [INFO] [stdout] --> src/main.rs:53:20 [INFO] [stdout] | [INFO] [stdout] 53 | fn cmd_list_agents(matches: &ArgMatches) -> Result<()> { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_matches` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file` [INFO] [stdout] --> src/main.rs:57:18 [INFO] [stdout] | [INFO] [stdout] 57 | fn launch_editor(file: &Path) -> Result<()> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cmd_install_agent` is never used [INFO] [stdout] --> src/main.rs:40:4 [INFO] [stdout] | [INFO] [stdout] 40 | fn cmd_install_agent(args: &clap::ArgMatches) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `write_agent` is never used [INFO] [stdout] --> src/main.rs:49:4 [INFO] [stdout] | [INFO] [stdout] 49 | fn write_agent(filename: PathBuf, content: PList) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `launch_editor` is never used [INFO] [stdout] --> src/main.rs:57:4 [INFO] [stdout] | [INFO] [stdout] 57 | fn launch_editor(file: &Path) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_args` is never used [INFO] [stdout] --> src/plists.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl Agent { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 12 | pub fn from_args(args: &clap::ArgMatches) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `CommandWithArgs` is never constructed [INFO] [stdout] --> src/plists.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 17 | pub enum AgentCommand { [INFO] [stdout] | ------------ variant in this enum [INFO] [stdout] 18 | SimpleCommand { path: PathBuf }, [INFO] [stdout] 19 | CommandWithArgs { path: PathBuf, args: Vec }, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Interval` and `ScheduledIntervals` are never constructed [INFO] [stdout] --> src/plists.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 22 | pub enum LaunchType { [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] 23 | OnLoad, [INFO] [stdout] 24 | Interval { seconds: u32 }, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 25 | ScheduledIntervals { intervals: Vec }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.45s [INFO] running `Command { std: "docker" "inspect" "a129768f2ce9594b5e342f8efc1015227c1b3da8f8ec2428eebe27396b124c65", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a129768f2ce9594b5e342f8efc1015227c1b3da8f8ec2428eebe27396b124c65", kill_on_drop: false }` [INFO] [stdout] a129768f2ce9594b5e342f8efc1015227c1b3da8f8ec2428eebe27396b124c65 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+5e4273472e1b2f223618a9b3def795f6224f241d" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 8412d7deafc2e1733bc9f1ece03e111627e14a69cb222aef1d59c043611172f5 [INFO] running `Command { std: "docker" "start" "-a" "8412d7deafc2e1733bc9f1ece03e111627e14a69cb222aef1d59c043611172f5", kill_on_drop: false }` [INFO] [stderr] warning: unused variable: `args` [INFO] [stderr] --> src/plists.rs:12:22 [INFO] [stderr] | [INFO] [stderr] 12 | pub fn from_args(args: &clap::ArgMatches) -> Result { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_args` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `agentspec` [INFO] [stderr] --> src/plists.rs:40:23 [INFO] [stderr] | [INFO] [stderr] 40 | pub fn from_agent(agentspec: &Agent) -> Result { [INFO] [stderr] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_agentspec` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `matches` [INFO] [stderr] --> src/main.rs:53:20 [INFO] [stderr] | [INFO] [stderr] 53 | fn cmd_list_agents(matches: &ArgMatches) -> Result<()> { [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_matches` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `file` [INFO] [stderr] --> src/main.rs:57:18 [INFO] [stderr] | [INFO] [stderr] 57 | fn launch_editor(file: &Path) -> Result<()> { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_file` [INFO] [stderr] [INFO] [stderr] warning: function `cmd_install_agent` is never used [INFO] [stderr] --> src/main.rs:40:4 [INFO] [stderr] | [INFO] [stderr] 40 | fn cmd_install_agent(args: &clap::ArgMatches) -> Result<()> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: function `write_agent` is never used [INFO] [stderr] --> src/main.rs:49:4 [INFO] [stderr] | [INFO] [stderr] 49 | fn write_agent(filename: PathBuf, content: PList) -> Result<()> { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `launch_editor` is never used [INFO] [stderr] --> src/main.rs:57:4 [INFO] [stderr] | [INFO] [stderr] 57 | fn launch_editor(file: &Path) -> Result<()> { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `from_args` is never used [INFO] [stderr] --> src/plists.rs:12:12 [INFO] [stderr] | [INFO] [stderr] 11 | impl Agent { [INFO] [stderr] | ---------- associated function in this implementation [INFO] [stderr] 12 | pub fn from_args(args: &clap::ArgMatches) -> Result { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variant `CommandWithArgs` is never constructed [INFO] [stderr] --> src/plists.rs:19:5 [INFO] [stderr] | [INFO] [stderr] 17 | pub enum AgentCommand { [INFO] [stderr] | ------------ variant in this enum [INFO] [stderr] 18 | SimpleCommand { path: PathBuf }, [INFO] [stderr] 19 | CommandWithArgs { path: PathBuf, args: Vec }, [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variants `Interval` and `ScheduledIntervals` are never constructed [INFO] [stderr] --> src/plists.rs:24:5 [INFO] [stderr] | [INFO] [stderr] 22 | pub enum LaunchType { [INFO] [stderr] | ---------- variants in this enum [INFO] [stderr] 23 | OnLoad, [INFO] [stderr] 24 | Interval { seconds: u32 }, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] 25 | ScheduledIntervals { intervals: Vec }, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `install-agent` (bin "install-agent" test) generated 10 warnings (run `cargo fix --bin "install-agent" --tests` to apply 4 suggestions) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.01s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/install_agent-e25b76a94731d3c6) [INFO] [stdout] [INFO] [stdout] running 1 test [INFO] [stdout] test plists::test::test_simple_plist ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- plists::test::test_simple_plist stdout ---- [INFO] [stdout] thread 'plists::test::test_simple_plist' panicked at src/plists.rs:41:9: [INFO] [stdout] not yet implemented [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x55750103f31c - std::backtrace_rs::backtrace::libunwind::trace::he911f9c907837597 [INFO] [stdout] at /rustc/5e4273472e1b2f223618a9b3def795f6224f241d/library/std/src/../../backtrace/src/backtrace/libunwind.rs:104:5 [INFO] [stdout] 1: 0x55750103f31c - std::backtrace_rs::backtrace::trace_unsynchronized::hb30926ceb4a5ace8 [INFO] [stdout] at /rustc/5e4273472e1b2f223618a9b3def795f6224f241d/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stdout] 2: 0x55750103f31c - std::sys_common::backtrace::_print_fmt::h20b4c3cb4b8e01de [INFO] [stdout] at /rustc/5e4273472e1b2f223618a9b3def795f6224f241d/library/std/src/sys_common/backtrace.rs:68:5 [INFO] [stdout] 3: 0x55750103f31c - ::fmt::hcb347474accdbb50 [INFO] [stdout] at /rustc/5e4273472e1b2f223618a9b3def795f6224f241d/library/std/src/sys_common/backtrace.rs:44:22 [INFO] [stdout] 4: 0x557501068f10 - core::fmt::rt::Argument::fmt::h0959df1f48ddd7a2 [INFO] [stdout] at /rustc/5e4273472e1b2f223618a9b3def795f6224f241d/library/core/src/fmt/rt.rs:142:9 [INFO] [stdout] 5: 0x557501068f10 - core::fmt::write::hb02961b4380cf4e7 [INFO] [stdout] at /rustc/5e4273472e1b2f223618a9b3def795f6224f241d/library/core/src/fmt/mod.rs:1120:17 [INFO] [stdout] 6: 0x55750103cdef - std::io::Write::write_fmt::h529bf90db5fd4c64 [INFO] [stdout] at /rustc/5e4273472e1b2f223618a9b3def795f6224f241d/library/std/src/io/mod.rs:1810:15 [INFO] [stdout] 7: 0x55750103f104 - std::sys_common::backtrace::_print::h9f31dc4772e05e46 [INFO] [stdout] at /rustc/5e4273472e1b2f223618a9b3def795f6224f241d/library/std/src/sys_common/backtrace.rs:47:5 [INFO] [stdout] 8: 0x55750103f104 - std::sys_common::backtrace::print::he1974c4a8ca14219 [INFO] [stdout] at /rustc/5e4273472e1b2f223618a9b3def795f6224f241d/library/std/src/sys_common/backtrace.rs:34:9 [INFO] [stdout] 9: 0x557501040e37 - std::panicking::default_hook::{{closure}}::h9663c9f0f27e933c [INFO] [stdout] 10: 0x557501040b23 - std::panicking::default_hook::h232155e937189ed1 [INFO] [stdout] at /rustc/5e4273472e1b2f223618a9b3def795f6224f241d/library/std/src/panicking.rs:289:9 [INFO] [stdout] 11: 0x55750100cfa7 - as core::ops::function::Fn>::call::h30a8b128ee88d398 [INFO] [stdout] at /rustc/5e4273472e1b2f223618a9b3def795f6224f241d/library/alloc/src/boxed.rs:2029:9 [INFO] [stdout] 12: 0x55750100cfa7 - test::test_main::{{closure}}::hcafb25d50378ac2e [INFO] [stdout] at /rustc/5e4273472e1b2f223618a9b3def795f6224f241d/library/test/src/lib.rs:138:21 [INFO] [stdout] 13: 0x557501041448 - as core::ops::function::Fn>::call::hb0500737c93e9fc8 [INFO] [stdout] at /rustc/5e4273472e1b2f223618a9b3def795f6224f241d/library/alloc/src/boxed.rs:2029:9 [INFO] [stdout] 14: 0x557501041448 - std::panicking::rust_panic_with_hook::hc8764d1694e821a7 [INFO] [stdout] at /rustc/5e4273472e1b2f223618a9b3def795f6224f241d/library/std/src/panicking.rs:783:13 [INFO] [stdout] 15: 0x557501041169 - std::panicking::begin_panic_handler::{{closure}}::hf3ed629468815f4d [INFO] [stdout] at /rustc/5e4273472e1b2f223618a9b3def795f6224f241d/library/std/src/panicking.rs:649:13 [INFO] [stdout] 16: 0x55750103f7e6 - std::sys_common::backtrace::__rust_end_short_backtrace::h4e08af68b8432e1a [INFO] [stdout] at /rustc/5e4273472e1b2f223618a9b3def795f6224f241d/library/std/src/sys_common/backtrace.rs:171:18 [INFO] [stdout] 17: 0x557501040f02 - rust_begin_unwind [INFO] [stdout] at /rustc/5e4273472e1b2f223618a9b3def795f6224f241d/library/std/src/panicking.rs:645:5 [INFO] [stdout] 18: 0x557500fd7cf5 - core::panicking::panic_fmt::hd274135c92cc1bf8 [INFO] [stdout] at /rustc/5e4273472e1b2f223618a9b3def795f6224f241d/library/core/src/panicking.rs:72:14 [INFO] [stdout] 19: 0x557500fd7db3 - core::panicking::panic::hdb514ca351aed0df [INFO] [stdout] at /rustc/5e4273472e1b2f223618a9b3def795f6224f241d/library/core/src/panicking.rs:144:5 [INFO] [stdout] 20: 0x557500fd9211 - install_agent::plists::PList::from_agent::hebb8535221ed1d71 [INFO] [stdout] at /opt/rustwide/workdir/src/plists.rs:41:9 [INFO] [stdout] 21: 0x557500fd93a3 - install_agent::plists::test::test_simple_plist::h4a35e0b395500093 [INFO] [stdout] at /opt/rustwide/workdir/src/plists.rs:74:13 [INFO] [stdout] 22: 0x557500fd9237 - install_agent::plists::test::test_simple_plist::{{closure}}::h84200ce68b221235 [INFO] [stdout] at /opt/rustwide/workdir/src/plists.rs:51:27 [INFO] [stdout] 23: 0x557500fd8896 - core::ops::function::FnOnce::call_once::h0e8f5f84b18576ae [INFO] [stdout] at /rustc/5e4273472e1b2f223618a9b3def795f6224f241d/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 24: 0x55750101269f - core::ops::function::FnOnce::call_once::he101e5838844b848 [INFO] [stdout] at /rustc/5e4273472e1b2f223618a9b3def795f6224f241d/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 25: 0x55750101269f - test::__rust_begin_short_backtrace::hed21417c1aa71a94 [INFO] [stdout] at /rustc/5e4273472e1b2f223618a9b3def795f6224f241d/library/test/src/lib.rs:627:18 [INFO] [stdout] 26: 0x557501011615 - test::run_test_in_process::{{closure}}::h46df11f5a11dd433 [INFO] [stdout] at /rustc/5e4273472e1b2f223618a9b3def795f6224f241d/library/test/src/lib.rs:650:60 [INFO] [stdout] 27: 0x557501011615 - as core::ops::function::FnOnce<()>>::call_once::ha2e64525433f53a7 [INFO] [stdout] at /rustc/5e4273472e1b2f223618a9b3def795f6224f241d/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] 28: 0x557501011615 - std::panicking::try::do_call::hb1d734fe97663a7f [INFO] [stdout] at /rustc/5e4273472e1b2f223618a9b3def795f6224f241d/library/std/src/panicking.rs:552:40 [INFO] [stdout] 29: 0x557501011615 - std::panicking::try::h9d066276df30f924 [INFO] [stdout] at /rustc/5e4273472e1b2f223618a9b3def795f6224f241d/library/std/src/panicking.rs:516:19 [INFO] [stdout] 30: 0x557501011615 - std::panic::catch_unwind::heaada02e29cd999e [INFO] [stdout] at /rustc/5e4273472e1b2f223618a9b3def795f6224f241d/library/std/src/panic.rs:142:14 [INFO] [stdout] 31: 0x557501011615 - test::run_test_in_process::hcb05ee14075e628d [INFO] [stdout] at /rustc/5e4273472e1b2f223618a9b3def795f6224f241d/library/test/src/lib.rs:650:27 [INFO] [stdout] 32: 0x557501011615 - test::run_test::{{closure}}::hf9413b0f448cd684 [INFO] [stdout] at /rustc/5e4273472e1b2f223618a9b3def795f6224f241d/library/test/src/lib.rs:573:43 [INFO] [stdout] 33: 0x557500fd9856 - test::run_test::{{closure}}::h1bb15d2e8774a33f [INFO] [stdout] at /rustc/5e4273472e1b2f223618a9b3def795f6224f241d/library/test/src/lib.rs:601:41 [INFO] [stdout] 34: 0x557500fd9856 - std::sys_common::backtrace::__rust_begin_short_backtrace::h530f23a50d8639c1 [INFO] [stdout] at /rustc/5e4273472e1b2f223618a9b3def795f6224f241d/library/std/src/sys_common/backtrace.rs:155:18 [INFO] [stdout] 35: 0x557500fdea37 - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h37b8455d57d25f70 [INFO] [stdout] at /rustc/5e4273472e1b2f223618a9b3def795f6224f241d/library/std/src/thread/mod.rs:529:17 [INFO] [stdout] 36: 0x557500fdea37 - as core::ops::function::FnOnce<()>>::call_once::h3867791011bf949d [INFO] [stdout] at /rustc/5e4273472e1b2f223618a9b3def795f6224f241d/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] 37: 0x557500fdea37 - std::panicking::try::do_call::h1cac0f1203e6219b [INFO] [stdout] at /rustc/5e4273472e1b2f223618a9b3def795f6224f241d/library/std/src/panicking.rs:552:40 [INFO] [stdout] 38: 0x557500fdea37 - std::panicking::try::h82de9f14e7a5f0ca [INFO] [stdout] at /rustc/5e4273472e1b2f223618a9b3def795f6224f241d/library/std/src/panicking.rs:516:19 [INFO] [stdout] 39: 0x557500fdea37 - std::panic::catch_unwind::hcea1081d521eaa80 [INFO] [stdout] at /rustc/5e4273472e1b2f223618a9b3def795f6224f241d/library/std/src/panic.rs:142:14 [INFO] [stdout] 40: 0x557500fdea37 - std::thread::Builder::spawn_unchecked_::{{closure}}::ha7aa8f4eaae79bb5 [INFO] [stdout] at /rustc/5e4273472e1b2f223618a9b3def795f6224f241d/library/std/src/thread/mod.rs:528:30 [INFO] [stdout] 41: 0x557500fdea37 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h5c1a4829e968af7c [INFO] [stdout] at /rustc/5e4273472e1b2f223618a9b3def795f6224f241d/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 42: 0x557501045ea5 - as core::ops::function::FnOnce>::call_once::h6cea6bfb156e0019 [INFO] [stdout] at /rustc/5e4273472e1b2f223618a9b3def795f6224f241d/library/alloc/src/boxed.rs:2015:9 [INFO] [stdout] 43: 0x557501045ea5 - as core::ops::function::FnOnce>::call_once::h3c499441c8da3187 [INFO] [stdout] at /rustc/5e4273472e1b2f223618a9b3def795f6224f241d/library/alloc/src/boxed.rs:2015:9 [INFO] [stdout] 44: 0x557501045ea5 - std::sys::unix::thread::Thread::new::thread_start::h45692980afba103a [INFO] [stdout] at /rustc/5e4273472e1b2f223618a9b3def795f6224f241d/library/std/src/sys/unix/thread.rs:108:17 [INFO] [stdout] 45: 0x7f4661877ac3 - [INFO] [stdout] 46: 0x7f4661908bf4 - __clone [INFO] [stdout] 47: 0x0 - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] plists::test::test_simple_plist [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.02s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass `--bin install-agent` [INFO] running `Command { std: "docker" "inspect" "8412d7deafc2e1733bc9f1ece03e111627e14a69cb222aef1d59c043611172f5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8412d7deafc2e1733bc9f1ece03e111627e14a69cb222aef1d59c043611172f5", kill_on_drop: false }` [INFO] [stdout] 8412d7deafc2e1733bc9f1ece03e111627e14a69cb222aef1d59c043611172f5