[INFO] cloning repository https://github.com/cisko3000/fair-share-meters [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/cisko3000/fair-share-meters" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcisko3000%2Ffair-share-meters", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcisko3000%2Ffair-share-meters'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ef9c103e3ccd3fc6c930f32a2f534884f202b95c [INFO] building cisko3000/fair-share-meters against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcisko3000%2Ffair-share-meters" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/cisko3000/fair-share-meters on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/cisko3000/fair-share-meters [INFO] finished tweaking git repo https://github.com/cisko3000/fair-share-meters [INFO] tweaked toml for git repo https://github.com/cisko3000/fair-share-meters written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/cisko3000/fair-share-meters 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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 29d74453f17d58ceb8a42b006a4e0b6b5ec559546a4245323bbf1e1b938aca7f [INFO] running `Command { std: "docker" "start" "-a" "29d74453f17d58ceb8a42b006a4e0b6b5ec559546a4245323bbf1e1b938aca7f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "29d74453f17d58ceb8a42b006a4e0b6b5ec559546a4245323bbf1e1b938aca7f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "29d74453f17d58ceb8a42b006a4e0b6b5ec559546a4245323bbf1e1b938aca7f", kill_on_drop: false }` [INFO] [stdout] 29d74453f17d58ceb8a42b006a4e0b6b5ec559546a4245323bbf1e1b938aca7f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f0cf4c50ffaee51aa789beaac8024641b2746a4ed8e3a0c779402782623f736d [INFO] running `Command { std: "docker" "start" "-a" "f0cf4c50ffaee51aa789beaac8024641b2746a4ed8e3a0c779402782623f736d", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.147 [INFO] [stderr] Compiling iana-time-zone v0.1.57 [INFO] [stderr] Compiling cassowary v0.3.0 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling lock_api v0.4.10 [INFO] [stderr] Compiling signal-hook-registry v1.4.1 [INFO] [stderr] Compiling parking_lot_core v0.9.8 [INFO] [stderr] Compiling getrandom v0.2.10 [INFO] [stderr] Compiling mio v0.8.8 [INFO] [stderr] Compiling time v0.1.45 [INFO] [stderr] Compiling signal-hook v0.3.15 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling parking_lot v0.12.1 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling signal-hook-mio v0.2.3 [INFO] [stderr] Compiling crossterm v0.25.0 [INFO] [stderr] Compiling chrono v0.4.26 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling tui v0.19.0 [INFO] [stderr] Compiling meters v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `thread` [INFO] [stdout] --> src/main.rs:5:15 [INFO] [stdout] | [INFO] [stdout] 5 | use std::{io, thread}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Widget` [INFO] [stdout] --> src/main.rs:9:59 [INFO] [stdout] | [INFO] [stdout] 9 | use tui::{backend::{CrosstermBackend, Backend}, widgets::{Widget, Block, Borders, Gauge}, layout::{Layout, Constraint, Direction}, Frame,... [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Update` [INFO] [stdout] --> src/main.rs:24:45 [INFO] [stdout] | [INFO] [stdout] 24 | use crate::meter::{Account, Client, Reader, Update}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `match` scrutinee expression [INFO] [stdout] --> src/main.rs:115:19 [INFO] [stdout] | [INFO] [stdout] 115 | match (app.account.master_meter.clients[1].meter.history.len() > 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 115 - match (app.account.master_meter.clients[1].meter.history.len() > 0) { [INFO] [stdout] 115 + match app.account.master_meter.clients[1].meter.history.len() > 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `h` [INFO] [stdout] --> src/meter.rs:114:17 [INFO] [stdout] | [INFO] [stdout] 114 | for (i, h) in self.clients[0].meter.history.iter().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_h` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `client` [INFO] [stdout] --> src/meter.rs:158:25 [INFO] [stdout] | [INFO] [stdout] 158 | .map(|(idx, client)| [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_client` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `h` [INFO] [stdout] --> src/meter.rs:210:17 [INFO] [stdout] | [INFO] [stdout] 210 | for (i, h) in self.clients[0].meter.history.iter().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_h` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `meter` [INFO] [stdout] --> src/meter.rs:204:33 [INFO] [stdout] | [INFO] [stdout] 204 | fn update_totals(&mut self, meter: &Meter) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_meter` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hist_len` [INFO] [stdout] --> src/meter.rs:260:17 [INFO] [stdout] | [INFO] [stdout] 260 | let hist_len = hist.len(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_hist_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res` [INFO] [stdout] --> src/main.rs:205:9 [INFO] [stdout] | [INFO] [stdout] 205 | let res = run_app(&mut terminal, app, tick_rate); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `charge_accounts` is never used [INFO] [stdout] --> src/meter.rs:146:8 [INFO] [stdout] | [INFO] [stdout] 145 | pub trait Charger { [INFO] [stdout] | ------- method in this trait [INFO] [stdout] 146 | fn charge_accounts(&mut self); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.33s [INFO] running `Command { std: "docker" "inspect" "f0cf4c50ffaee51aa789beaac8024641b2746a4ed8e3a0c779402782623f736d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f0cf4c50ffaee51aa789beaac8024641b2746a4ed8e3a0c779402782623f736d", kill_on_drop: false }` [INFO] [stdout] f0cf4c50ffaee51aa789beaac8024641b2746a4ed8e3a0c779402782623f736d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c459a26eed8ba0e2329de61c8ef1d403dd9a67678abcb7a11343fec8127ecb1c [INFO] running `Command { std: "docker" "start" "-a" "c459a26eed8ba0e2329de61c8ef1d403dd9a67678abcb7a11343fec8127ecb1c", kill_on_drop: false }` [INFO] [stderr] Compiling meters v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `thread` [INFO] [stdout] --> src/main.rs:5:15 [INFO] [stdout] | [INFO] [stdout] 5 | use std::{io, thread}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Widget` [INFO] [stdout] --> src/main.rs:9:59 [INFO] [stdout] | [INFO] [stdout] 9 | use tui::{backend::{CrosstermBackend, Backend}, widgets::{Widget, Block, Borders, Gauge}, layout::{Layout, Constraint, Direction}, Frame,... [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Update` [INFO] [stdout] --> src/main.rs:24:45 [INFO] [stdout] | [INFO] [stdout] 24 | use crate::meter::{Account, Client, Reader, Update}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `match` scrutinee expression [INFO] [stdout] --> src/main.rs:115:19 [INFO] [stdout] | [INFO] [stdout] 115 | match (app.account.master_meter.clients[1].meter.history.len() > 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 115 - match (app.account.master_meter.clients[1].meter.history.len() > 0) { [INFO] [stdout] 115 + match app.account.master_meter.clients[1].meter.history.len() > 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `h` [INFO] [stdout] --> src/meter.rs:114:17 [INFO] [stdout] | [INFO] [stdout] 114 | for (i, h) in self.clients[0].meter.history.iter().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_h` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `client` [INFO] [stdout] --> src/meter.rs:158:25 [INFO] [stdout] | [INFO] [stdout] 158 | .map(|(idx, client)| [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_client` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `h` [INFO] [stdout] --> src/meter.rs:210:17 [INFO] [stdout] | [INFO] [stdout] 210 | for (i, h) in self.clients[0].meter.history.iter().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_h` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `meter` [INFO] [stdout] --> src/meter.rs:204:33 [INFO] [stdout] | [INFO] [stdout] 204 | fn update_totals(&mut self, meter: &Meter) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_meter` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hist_len` [INFO] [stdout] --> src/meter.rs:260:17 [INFO] [stdout] | [INFO] [stdout] 260 | let hist_len = hist.len(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_hist_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res` [INFO] [stdout] --> src/main.rs:205:9 [INFO] [stdout] | [INFO] [stdout] 205 | let res = run_app(&mut terminal, app, tick_rate); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `charge_accounts` is never used [INFO] [stdout] --> src/meter.rs:146:8 [INFO] [stdout] | [INFO] [stdout] 145 | pub trait Charger { [INFO] [stdout] | ------- method in this trait [INFO] [stdout] 146 | fn charge_accounts(&mut self); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.19s [INFO] running `Command { std: "docker" "inspect" "c459a26eed8ba0e2329de61c8ef1d403dd9a67678abcb7a11343fec8127ecb1c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c459a26eed8ba0e2329de61c8ef1d403dd9a67678abcb7a11343fec8127ecb1c", kill_on_drop: false }` [INFO] [stdout] c459a26eed8ba0e2329de61c8ef1d403dd9a67678abcb7a11343fec8127ecb1c