[INFO] cloning repository https://github.com/markus-k/mtt [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/markus-k/mtt" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmarkus-k%2Fmtt", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmarkus-k%2Fmtt'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1684d2a13eeb6f34c64a34f66ea83a5f64c97365 [INFO] checking markus-k/mtt against try#4f260f0f20b3133d20cfb50353c0221943af5796+rustflags=-Dunmustuse_in_always_ok for pr-148577 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmarkus-k%2Fmtt" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/markus-k/mtt [INFO] finished tweaking git repo https://github.com/markus-k/mtt [INFO] tweaked toml for git repo https://github.com/markus-k/mtt written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/markus-k/mtt on toolchain 4f260f0f20b3133d20cfb50353c0221943af5796 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/markus-k/mtt 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" "+4f260f0f20b3133d20cfb50353c0221943af5796" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 84975a6ada7bbabdbfaebf1028d3fbbed859b76eb149d7c0991119a30796d232 [INFO] running `Command { std: "docker" "start" "-a" "84975a6ada7bbabdbfaebf1028d3fbbed859b76eb149d7c0991119a30796d232", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "84975a6ada7bbabdbfaebf1028d3fbbed859b76eb149d7c0991119a30796d232", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "84975a6ada7bbabdbfaebf1028d3fbbed859b76eb149d7c0991119a30796d232", kill_on_drop: false }` [INFO] [stdout] 84975a6ada7bbabdbfaebf1028d3fbbed859b76eb149d7c0991119a30796d232 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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 -Dunmustuse_in_always_ok" "-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 654710a848aaf7fe20aa8cdd44ecbcab5333feaa285fbd0f6aee4f403dd5142a [INFO] running `Command { std: "docker" "start" "-a" "654710a848aaf7fe20aa8cdd44ecbcab5333feaa285fbd0f6aee4f403dd5142a", kill_on_drop: false }` [INFO] [stderr] Compiling syn v1.0.74 [INFO] [stderr] Compiling serde_derive v1.0.127 [INFO] [stderr] Compiling serde v1.0.127 [INFO] [stderr] Compiling serde_json v1.0.66 [INFO] [stderr] Checking textwrap v0.15.0 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Checking dirs-sys v0.3.6 [INFO] [stderr] Checking time v0.1.44 [INFO] [stderr] Checking directories v3.0.2 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling clap_derive v3.1.7 [INFO] [stderr] Checking clap v3.1.8 [INFO] [stderr] Checking chrono v0.4.19 [INFO] [stderr] Checking mtt v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:261:9 [INFO] [stdout] | [INFO] [stdout] 261 | let mut state = AppState::read_from_file(&state_path).unwrap_or_default(); [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: enum `AppError` is never used [INFO] [stdout] --> src/main.rs:71:6 [INFO] [stdout] | [INFO] [stdout] 71 | enum AppError { [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 items `new` and `duration` are never used [INFO] [stdout] --> src/main.rs:98:8 [INFO] [stdout] | [INFO] [stdout] 97 | impl TimerRecord { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 98 | fn new(start: DateTime, end: DateTime, comment: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 106 | fn duration(&self) -> Duration { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `start_timer`, `stop_timer`, `total_duration`, and `is_running` are never used [INFO] [stdout] --> src/main.rs:128:8 [INFO] [stdout] | [INFO] [stdout] 127 | impl Timer { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] 128 | fn start_timer(&mut self, start_time: DateTime) -> Result<(), AppError> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 138 | fn stop_timer( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 156 | fn total_duration(&self) -> Duration { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 161 | fn is_running(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_active_timer`, `has_active_timer`, `set_timer_active`, `create_timer`, and `get_timer` are never used [INFO] [stdout] --> src/main.rs:181:8 [INFO] [stdout] | [INFO] [stdout] 180 | impl AppState { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] 181 | fn get_active_timer(&self) -> Option<&Timer> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 188 | fn has_active_timer(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 196 | fn set_timer_active(&mut self, timer_name: &str) -> Result<(), AppError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 206 | fn create_timer(&mut self, name: &str) -> Option<&Timer> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 217 | fn get_timer(&self, name: &str) -> Option<&Timer> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_duration_string` is never used [INFO] [stdout] --> src/main.rs:249:4 [INFO] [stdout] | [INFO] [stdout] 249 | fn get_duration_string(duration: &Duration) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 48 | / #[clap(help = "Timer to start")] [INFO] [stdout] 49 | | timer_name: Option, [INFO] [stdout] | |______________________________^ [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-D unmustuse-in-always-ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:57:5 [INFO] [stdout] | [INFO] [stdout] 57 | / #[clap(help = "Timer to stop")] [INFO] [stdout] 58 | | timer_name: Option, [INFO] [stdout] | |______________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:60:5 [INFO] [stdout] | [INFO] [stdout] 60 | / #[clap( [INFO] [stdout] 61 | | long, [INFO] [stdout] 62 | | help = "Stop time to use instead of now (if you forgot to stop your timer again)" [INFO] [stdout] 63 | | )] [INFO] [stdout] 64 | | stop_time: String, [INFO] [stdout] | |_____________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:66:5 [INFO] [stdout] | [INFO] [stdout] 66 | / #[clap(long, help = "A comment to add to this timer record")] [INFO] [stdout] 67 | | comment: String, [INFO] [stdout] | |___________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `mtt` (bin "mtt") due to 4 previous errors; 6 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:261:9 [INFO] [stdout] | [INFO] [stdout] 261 | let mut state = AppState::read_from_file(&state_path).unwrap_or_default(); [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: variants `TimerAlreadyRunning` and `NoTimerRunning` are never constructed [INFO] [stdout] --> src/main.rs:72:5 [INFO] [stdout] | [INFO] [stdout] 71 | enum AppError { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 72 | TimerAlreadyRunning, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 73 | NoTimerRunning, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AppError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `start_timer`, `stop_timer`, and `is_running` are never used [INFO] [stdout] --> src/main.rs:128:8 [INFO] [stdout] | [INFO] [stdout] 127 | impl Timer { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] 128 | fn start_timer(&mut self, start_time: DateTime) -> Result<(), AppError> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 138 | fn stop_timer( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 161 | fn is_running(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_active_timer` and `has_active_timer` are never used [INFO] [stdout] --> src/main.rs:181:8 [INFO] [stdout] | [INFO] [stdout] 180 | impl AppState { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] 181 | fn get_active_timer(&self) -> Option<&Timer> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 188 | fn has_active_timer(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_duration_string` is never used [INFO] [stdout] --> src/main.rs:249:4 [INFO] [stdout] | [INFO] [stdout] 249 | fn get_duration_string(duration: &Duration) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 48 | / #[clap(help = "Timer to start")] [INFO] [stdout] 49 | | timer_name: Option, [INFO] [stdout] | |______________________________^ [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-D unmustuse-in-always-ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:57:5 [INFO] [stdout] | [INFO] [stdout] 57 | / #[clap(help = "Timer to stop")] [INFO] [stdout] 58 | | timer_name: Option, [INFO] [stdout] | |______________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:60:5 [INFO] [stdout] | [INFO] [stdout] 60 | / #[clap( [INFO] [stdout] 61 | | long, [INFO] [stdout] 62 | | help = "Stop time to use instead of now (if you forgot to stop your timer again)" [INFO] [stdout] 63 | | )] [INFO] [stdout] 64 | | stop_time: String, [INFO] [stdout] | |_____________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:66:5 [INFO] [stdout] | [INFO] [stdout] 66 | / #[clap(long, help = "A comment to add to this timer record")] [INFO] [stdout] 67 | | comment: String, [INFO] [stdout] | |___________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `mtt` (bin "mtt" test) due to 4 previous errors; 5 warnings emitted [INFO] running `Command { std: "docker" "inspect" "654710a848aaf7fe20aa8cdd44ecbcab5333feaa285fbd0f6aee4f403dd5142a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "654710a848aaf7fe20aa8cdd44ecbcab5333feaa285fbd0f6aee4f403dd5142a", kill_on_drop: false }` [INFO] [stdout] 654710a848aaf7fe20aa8cdd44ecbcab5333feaa285fbd0f6aee4f403dd5142a