[INFO] cloning repository https://github.com/JPBeckner/puck [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/JPBeckner/puck" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJPBeckner%2Fpuck", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJPBeckner%2Fpuck'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] e25fc3d031d21fe83214b50d2d3959d40631244f [INFO] checking JPBeckner/puck 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%2FJPBeckner%2Fpuck" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/JPBeckner/puck [INFO] finished tweaking git repo https://github.com/JPBeckner/puck [INFO] tweaked toml for git repo https://github.com/JPBeckner/puck written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/JPBeckner/puck 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/JPBeckner/puck 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-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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] 015c7f1853f9949d086a82fbe5deebbddbadc8aa87414a7fa22cc699bc96f11f [INFO] running `Command { std: "docker" "start" "-a" "015c7f1853f9949d086a82fbe5deebbddbadc8aa87414a7fa22cc699bc96f11f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "015c7f1853f9949d086a82fbe5deebbddbadc8aa87414a7fa22cc699bc96f11f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "015c7f1853f9949d086a82fbe5deebbddbadc8aa87414a7fa22cc699bc96f11f", kill_on_drop: false }` [INFO] [stdout] 015c7f1853f9949d086a82fbe5deebbddbadc8aa87414a7fa22cc699bc96f11f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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] 8f493b7953e9c81ce31658ad393b57eb9a8b20f9c41cc73d5bdab6f103fcadf2 [INFO] running `Command { std: "docker" "start" "-a" "8f493b7953e9c81ce31658ad393b57eb9a8b20f9c41cc73d5bdab6f103fcadf2", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.26 [INFO] [stderr] Compiling libc v0.2.94 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling syn v1.0.71 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling unicode-segmentation v1.7.1 [INFO] [stderr] Compiling serde v1.0.125 [INFO] [stderr] Checking unicode-width v0.1.8 [INFO] [stderr] Compiling serde_json v1.0.64 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Checking itoa v0.4.7 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Compiling heck v0.3.2 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking time v0.1.44 [INFO] [stderr] Checking clap v2.33.3 [INFO] [stderr] Checking chrono v0.4.19 [INFO] [stderr] Compiling structopt-derive v0.4.14 [INFO] [stderr] Checking structopt v0.3.21 [INFO] [stderr] Checking puck v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `DateTime`, `Datelike`, `NaiveTime`, `Timelike`, and `Utc` [INFO] [stdout] --> src/puck.rs:2:14 [INFO] [stdout] | [INFO] [stdout] 2 | use chrono::{Datelike, Timelike, Utc, DateTime, NaiveTime}; [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 imports: `DateTime`, `Datelike`, `NaiveTime`, `Timelike`, and `Utc` [INFO] [stdout] --> src/puck.rs:2:14 [INFO] [stdout] | [INFO] [stdout] 2 | use chrono::{Datelike, Timelike, Utc, DateTime, NaiveTime}; [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: `user` [INFO] [stdout] --> src/puck.rs:17:58 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn register(&mut self, io: String, hour: String, user: String) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_user` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user` [INFO] [stdout] --> src/puck.rs:17:58 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn register(&mut self, io: String, hour: String, user: String) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_user` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/main.rs:89:9 [INFO] [stdout] | [INFO] [stdout] 89 | _ => () [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/main.rs:89:9 [INFO] [stdout] | [INFO] [stdout] 78 | PuckCli::Punch { io, hour, user } => { [INFO] [stdout] | --------------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 83 | PuckCli::Balance { year, month, day } => { [INFO] [stdout] | ------------------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 86 | PuckCli::User { new, default } => { [INFO] [stdout] | ------------------------------ matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 89 | _ => () [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `year` [INFO] [stdout] --> src/main.rs:83:28 [INFO] [stdout] | [INFO] [stdout] 83 | PuckCli::Balance { year, month, day } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `year: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `month` [INFO] [stdout] --> src/main.rs:83:34 [INFO] [stdout] | [INFO] [stdout] 83 | PuckCli::Balance { year, month, day } => { [INFO] [stdout] | ^^^^^ help: try ignoring the field: `month: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `day` [INFO] [stdout] --> src/main.rs:83:41 [INFO] [stdout] | [INFO] [stdout] 83 | PuckCli::Balance { year, month, day } => { [INFO] [stdout] | ^^^ help: try ignoring the field: `day: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `new` [INFO] [stdout] --> src/main.rs:86:25 [INFO] [stdout] | [INFO] [stdout] 86 | PuckCli::User { new, default } => { [INFO] [stdout] | ^^^ help: try ignoring the field: `new: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `default` [INFO] [stdout] --> src/main.rs:86:30 [INFO] [stdout] | [INFO] [stdout] 86 | PuckCli::User { new, default } => { [INFO] [stdout] | ^^^^^^^ help: try ignoring the field: `default: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `data` is never read [INFO] [stdout] --> src/puck.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Puck { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 5 | data: Data [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `map` is never read [INFO] [stdout] --> src/puck.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 23 | pub struct Data { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 24 | // user: String, [INFO] [stdout] 25 | map: HashMap, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | / #[structopt(name = "io", about = "In or Out", required = true)] [INFO] [stdout] 12 | | io: String, [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:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | / #[structopt(name = "hour", about = "Hour to register", required = true)] [INFO] [stdout] 14 | | hour: String, [INFO] [stdout] | |____________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | / #[structopt(name = "user", about = "User to register in", required = false, default_value = "")] [INFO] [stdout] 16 | | user: String, [INFO] [stdout] | |____________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | / #[structopt(name = "year")] [INFO] [stdout] 22 | | year: String, [INFO] [stdout] | |____________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | / #[structopt(name = "month")] [INFO] [stdout] 24 | | month: String, [INFO] [stdout] | |_____________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | / #[structopt(name = "day")] [INFO] [stdout] 26 | | day: String, [INFO] [stdout] | |___________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | / #[structopt(name = "new", about = "Register new user")] [INFO] [stdout] 31 | | new: String, [INFO] [stdout] | |___________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | / #[structopt(name = "default", about = "Set default user")] [INFO] [stdout] 33 | | default: String, [INFO] [stdout] | |_______________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/main.rs:89:9 [INFO] [stdout] | [INFO] [stdout] 89 | _ => () [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/main.rs:89:9 [INFO] [stdout] | [INFO] [stdout] 78 | PuckCli::Punch { io, hour, user } => { [INFO] [stdout] | --------------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 83 | PuckCli::Balance { year, month, day } => { [INFO] [stdout] | ------------------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 86 | PuckCli::User { new, default } => { [INFO] [stdout] | ------------------------------ matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 89 | _ => () [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `year` [INFO] [stdout] --> src/main.rs:83:28 [INFO] [stdout] | [INFO] [stdout] 83 | PuckCli::Balance { year, month, day } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `year: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `month` [INFO] [stdout] --> src/main.rs:83:34 [INFO] [stdout] | [INFO] [stdout] 83 | PuckCli::Balance { year, month, day } => { [INFO] [stdout] | ^^^^^ help: try ignoring the field: `month: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `day` [INFO] [stdout] --> src/main.rs:83:41 [INFO] [stdout] | [INFO] [stdout] 83 | PuckCli::Balance { year, month, day } => { [INFO] [stdout] | ^^^ help: try ignoring the field: `day: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `new` [INFO] [stdout] --> src/main.rs:86:25 [INFO] [stdout] | [INFO] [stdout] 86 | PuckCli::User { new, default } => { [INFO] [stdout] | ^^^ help: try ignoring the field: `new: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `default` [INFO] [stdout] --> src/main.rs:86:30 [INFO] [stdout] | [INFO] [stdout] 86 | PuckCli::User { new, default } => { [INFO] [stdout] | ^^^^^^^ help: try ignoring the field: `default: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `data` is never read [INFO] [stdout] --> src/puck.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Puck { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 5 | data: Data [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `map` is never read [INFO] [stdout] --> src/puck.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 23 | pub struct Data { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 24 | // user: String, [INFO] [stdout] 25 | map: HashMap, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | / #[structopt(name = "io", about = "In or Out", required = true)] [INFO] [stdout] 12 | | io: String, [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:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | / #[structopt(name = "hour", about = "Hour to register", required = true)] [INFO] [stdout] 14 | | hour: String, [INFO] [stdout] | |____________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | / #[structopt(name = "user", about = "User to register in", required = false, default_value = "")] [INFO] [stdout] 16 | | user: String, [INFO] [stdout] | |____________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | / #[structopt(name = "year")] [INFO] [stdout] 22 | | year: String, [INFO] [stdout] | |____________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | / #[structopt(name = "month")] [INFO] [stdout] 24 | | month: String, [INFO] [stdout] | |_____________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | / #[structopt(name = "day")] [INFO] [stdout] 26 | | day: String, [INFO] [stdout] | |___________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | / #[structopt(name = "new", about = "Register new user")] [INFO] [stdout] 31 | | new: String, [INFO] [stdout] | |___________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | / #[structopt(name = "default", about = "Set default user")] [INFO] [stdout] 33 | | default: String, [INFO] [stdout] | |_______________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `puck` (bin "puck") due to 8 previous errors; 10 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `puck` (bin "puck" test) due to 8 previous errors; 10 warnings emitted [INFO] running `Command { std: "docker" "inspect" "8f493b7953e9c81ce31658ad393b57eb9a8b20f9c41cc73d5bdab6f103fcadf2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8f493b7953e9c81ce31658ad393b57eb9a8b20f9c41cc73d5bdab6f103fcadf2", kill_on_drop: false }` [INFO] [stdout] 8f493b7953e9c81ce31658ad393b57eb9a8b20f9c41cc73d5bdab6f103fcadf2