[INFO] cloning repository https://github.com/MelvinTo/fork-tree [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/MelvinTo/fork-tree" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMelvinTo%2Ffork-tree", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMelvinTo%2Ffork-tree'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] dc3bae81cda50c8125a4b7211295267ee3ea1e43 [INFO] checking MelvinTo/fork-tree against master#385fa9d845dd326c6bbfd58c22244215e431948a for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMelvinTo%2Ffork-tree" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/MelvinTo/fork-tree on toolchain 385fa9d845dd326c6bbfd58c22244215e431948a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/MelvinTo/fork-tree [INFO] finished tweaking git repo https://github.com/MelvinTo/fork-tree [INFO] tweaked toml for git repo https://github.com/MelvinTo/fork-tree written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/MelvinTo/fork-tree 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" "+385fa9d845dd326c6bbfd58c22244215e431948a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5573dead0f8d83f5f78d2caa960b77f3a44ef512a0a907c8cefe7f0c8be54a93 [INFO] running `Command { std: "docker" "start" "-a" "5573dead0f8d83f5f78d2caa960b77f3a44ef512a0a907c8cefe7f0c8be54a93", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5573dead0f8d83f5f78d2caa960b77f3a44ef512a0a907c8cefe7f0c8be54a93", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5573dead0f8d83f5f78d2caa960b77f3a44ef512a0a907c8cefe7f0c8be54a93", kill_on_drop: false }` [INFO] [stdout] 5573dead0f8d83f5f78d2caa960b77f3a44ef512a0a907c8cefe7f0c8be54a93 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5eafec3005976e8ea6f89f8d52a0b48c7fbfa57e199245dc31f99b9351afebc8 [INFO] running `Command { std: "docker" "start" "-a" "5eafec3005976e8ea6f89f8d52a0b48c7fbfa57e199245dc31f99b9351afebc8", kill_on_drop: false }` [INFO] [stderr] Compiling serde v1.0.137 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Checking regex-syntax v0.6.26 [INFO] [stderr] Checking humantime v2.1.0 [INFO] [stderr] Checking termcolor v1.1.3 [INFO] [stderr] Compiling libc v0.2.126 [INFO] [stderr] Checking aho-corasick v0.7.18 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking regex v1.5.6 [INFO] [stderr] Checking env_logger v0.8.4 [INFO] [stderr] Checking serde_json v1.0.81 [INFO] [stderr] Checking fork-tree v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:204:13 [INFO] [stdout] | [INFO] [stdout] 204 | let mut p = self.get_process_mut(&ctxt.pid).ok_or(MyError::InvalidProcess)?; [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: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:204:13 [INFO] [stdout] | [INFO] [stdout] 204 | let mut p = self.get_process_mut(&ctxt.pid).ok_or(MyError::InvalidProcess)?; [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: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:222:13 [INFO] [stdout] | [INFO] [stdout] 222 | let mut p = self.get_process_mut(&ctxt.pid).ok_or(MyError::InvalidProcess)?; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:222:13 [INFO] [stdout] | [INFO] [stdout] 222 | let mut p = self.get_process_mut(&ctxt.pid).ok_or(MyError::InvalidProcess)?; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `MyResult` is never used [INFO] [stdout] --> src/main.rs:33:6 [INFO] [stdout] | [INFO] [stdout] 33 | type MyResult = Result>; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `root` and `processes` are never read [INFO] [stdout] --> src/main.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 36 | struct ForkTree { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 37 | root: ForkProcess, [INFO] [stdout] | ^^^^ [INFO] [stdout] 38 | processes: HashMap, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ForkTree` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/main.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 42 | struct ForkProcess { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 43 | cmd: String, [INFO] [stdout] | ^^^ [INFO] [stdout] 44 | pid: u64, [INFO] [stdout] | ^^^ [INFO] [stdout] 45 | duration: f64, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 46 | start_time: f64, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 47 | ppid: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] 48 | args: Vec, [INFO] [stdout] | ^^^^ [INFO] [stdout] 49 | cpids: Vec, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ForkProcess` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Context` is never constructed [INFO] [stdout] --> src/main.rs:53:8 [INFO] [stdout] | [INFO] [stdout] 53 | struct Context { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `MyError` is never used [INFO] [stdout] --> src/main.rs:61:6 [INFO] [stdout] | [INFO] [stdout] 61 | enum MyError { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/main.rs:108:8 [INFO] [stdout] | [INFO] [stdout] 100 | impl ForkTree { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 108 | fn get_process(&self, pid: &u64) -> Option<&ForkProcess> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | fn get_process_mut(&mut self, pid: &u64) -> Option<&mut ForkProcess> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 116 | fn process_line(&mut self, line: &str) -> MyResult<()> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 145 | fn parse_context(line: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 173 | fn process_clone_line(&mut self, ctxt: &Context) -> MyResult<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 193 | fn process_exec_line(&mut self, ctxt: &Context) -> MyResult<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 219 | fn process_exit_line(&mut self, ctxt: &Context) -> MyResult<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 227 | fn print_fork_tree(&self, pid: u64) -> MyResult<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new_with_ppid`, `new_with_pid`, and `add_child_process` are never used [INFO] [stdout] --> src/main.rs:263:8 [INFO] [stdout] | [INFO] [stdout] 250 | impl ForkProcess { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 263 | fn new_with_ppid(pid: u64, ppid: u64) -> ForkProcess { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 275 | fn new_with_pid(pid: u64) -> ForkProcess { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 287 | fn add_child_process(&mut self, cpid: u64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `root` is never read [INFO] [stdout] --> src/main.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 36 | struct ForkTree { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 37 | root: ForkProcess, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ForkTree` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `pid` and `ppid` are never read [INFO] [stdout] --> src/main.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 42 | struct ForkProcess { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 43 | cmd: String, [INFO] [stdout] 44 | pid: u64, [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | ppid: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ForkProcess` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:375:13 [INFO] [stdout] | [INFO] [stdout] 375 | ft.process_line(&line); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 375 | let _ = ft.process_line(&line); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:378:9 [INFO] [stdout] | [INFO] [stdout] 378 | ft.print_fork_tree(14991); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 378 | let _ = ft.print_fork_tree(14991); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 5.17s [INFO] running `Command { std: "docker" "inspect" "5eafec3005976e8ea6f89f8d52a0b48c7fbfa57e199245dc31f99b9351afebc8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5eafec3005976e8ea6f89f8d52a0b48c7fbfa57e199245dc31f99b9351afebc8", kill_on_drop: false }` [INFO] [stdout] 5eafec3005976e8ea6f89f8d52a0b48c7fbfa57e199245dc31f99b9351afebc8 [INFO] checking MelvinTo/fork-tree against try#645bb72776a6a56a1a8f52631a44bd082b2ba509 for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMelvinTo%2Ffork-tree" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/MelvinTo/fork-tree on toolchain 645bb72776a6a56a1a8f52631a44bd082b2ba509 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/MelvinTo/fork-tree [INFO] finished tweaking git repo https://github.com/MelvinTo/fork-tree [INFO] tweaked toml for git repo https://github.com/MelvinTo/fork-tree written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/MelvinTo/fork-tree 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" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] dcc09ec44de1c486bb7a0829c455d8a5d62490a54e3bd7c1fe69d5e3ec841f92 [INFO] running `Command { std: "docker" "start" "-a" "dcc09ec44de1c486bb7a0829c455d8a5d62490a54e3bd7c1fe69d5e3ec841f92", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "dcc09ec44de1c486bb7a0829c455d8a5d62490a54e3bd7c1fe69d5e3ec841f92", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dcc09ec44de1c486bb7a0829c455d8a5d62490a54e3bd7c1fe69d5e3ec841f92", kill_on_drop: false }` [INFO] [stdout] dcc09ec44de1c486bb7a0829c455d8a5d62490a54e3bd7c1fe69d5e3ec841f92 [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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 82de322c0a75010d3266126bd3d2be311165219f8a54188e458c8e3a06fb7c7c [INFO] running `Command { std: "docker" "start" "-a" "82de322c0a75010d3266126bd3d2be311165219f8a54188e458c8e3a06fb7c7c", kill_on_drop: false }` [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Compiling serde v1.0.137 [INFO] [stderr] Checking regex-syntax v0.6.26 [INFO] [stderr] Compiling libc v0.2.126 [INFO] [stderr] Checking humantime v2.1.0 [INFO] [stderr] Checking termcolor v1.1.3 [INFO] [stderr] Checking aho-corasick v0.7.18 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking regex v1.5.6 [INFO] [stderr] Checking env_logger v0.8.4 [INFO] [stderr] Checking serde_json v1.0.81 [INFO] [stderr] Checking fork-tree v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:204:13 [INFO] [stdout] | [INFO] [stdout] 204 | let mut p = self.get_process_mut(&ctxt.pid).ok_or(MyError::InvalidProcess)?; [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: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:222:13 [INFO] [stdout] | [INFO] [stdout] 222 | let mut p = self.get_process_mut(&ctxt.pid).ok_or(MyError::InvalidProcess)?; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `root` is never read [INFO] [stdout] --> src/main.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 36 | struct ForkTree { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 37 | root: ForkProcess, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ForkTree` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `pid` and `ppid` are never read [INFO] [stdout] --> src/main.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 42 | struct ForkProcess { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 43 | cmd: String, [INFO] [stdout] 44 | pid: u64, [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | ppid: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ForkProcess` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:204:13 [INFO] [stdout] | [INFO] [stdout] 204 | let mut p = self.get_process_mut(&ctxt.pid).ok_or(MyError::InvalidProcess)?; [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: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:222:13 [INFO] [stdout] | [INFO] [stdout] 222 | let mut p = self.get_process_mut(&ctxt.pid).ok_or(MyError::InvalidProcess)?; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:375:13 [INFO] [stdout] | [INFO] [stdout] 375 | ft.process_line(&line); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 375 | let _ = ft.process_line(&line); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:378:9 [INFO] [stdout] | [INFO] [stdout] 378 | ft.print_fork_tree(14991); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 378 | let _ = ft.print_fork_tree(14991); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `MyResult` is never used [INFO] [stdout] --> src/main.rs:33:6 [INFO] [stdout] | [INFO] [stdout] 33 | type MyResult = Result>; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `root` and `processes` are never read [INFO] [stdout] --> src/main.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 36 | struct ForkTree { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 37 | root: ForkProcess, [INFO] [stdout] | ^^^^ [INFO] [stdout] 38 | processes: HashMap, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ForkTree` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/main.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 42 | struct ForkProcess { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 43 | cmd: String, [INFO] [stdout] | ^^^ [INFO] [stdout] 44 | pid: u64, [INFO] [stdout] | ^^^ [INFO] [stdout] 45 | duration: f64, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 46 | start_time: f64, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 47 | ppid: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] 48 | args: Vec, [INFO] [stdout] | ^^^^ [INFO] [stdout] 49 | cpids: Vec, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ForkProcess` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Context` is never constructed [INFO] [stdout] --> src/main.rs:53:8 [INFO] [stdout] | [INFO] [stdout] 53 | struct Context { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `MyError` is never used [INFO] [stdout] --> src/main.rs:61:6 [INFO] [stdout] | [INFO] [stdout] 61 | enum MyError { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/main.rs:108:8 [INFO] [stdout] | [INFO] [stdout] 100 | impl ForkTree { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 108 | fn get_process(&self, pid: &u64) -> Option<&ForkProcess> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | fn get_process_mut(&mut self, pid: &u64) -> Option<&mut ForkProcess> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 116 | fn process_line(&mut self, line: &str) -> MyResult<()> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 145 | fn parse_context(line: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 173 | fn process_clone_line(&mut self, ctxt: &Context) -> MyResult<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 193 | fn process_exec_line(&mut self, ctxt: &Context) -> MyResult<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 219 | fn process_exit_line(&mut self, ctxt: &Context) -> MyResult<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 227 | fn print_fork_tree(&self, pid: u64) -> MyResult<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new_with_ppid`, `new_with_pid`, and `add_child_process` are never used [INFO] [stdout] --> src/main.rs:263:8 [INFO] [stdout] | [INFO] [stdout] 250 | impl ForkProcess { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 263 | fn new_with_ppid(pid: u64, ppid: u64) -> ForkProcess { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 275 | fn new_with_pid(pid: u64) -> ForkProcess { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 287 | fn add_child_process(&mut self, cpid: u64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 5.62s [INFO] running `Command { std: "docker" "inspect" "82de322c0a75010d3266126bd3d2be311165219f8a54188e458c8e3a06fb7c7c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "82de322c0a75010d3266126bd3d2be311165219f8a54188e458c8e3a06fb7c7c", kill_on_drop: false }` [INFO] [stdout] 82de322c0a75010d3266126bd3d2be311165219f8a54188e458c8e3a06fb7c7c