[INFO] cloning repository https://github.com/noandrea/costoflife-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/noandrea/costoflife-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnoandrea%2Fcostoflife-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnoandrea%2Fcostoflife-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] bc03b2cead4f5e0df16a6f4dd7230ce97aad93f8 [INFO] checking noandrea/costoflife-rs against try#a7a572ce3edd6d476191fbfe92c9c1986e009b34 for pr-87190-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnoandrea%2Fcostoflife-rs" "/workspace/builds/worker-0/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/noandrea/costoflife-rs on toolchain a7a572ce3edd6d476191fbfe92c9c1986e009b34 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/noandrea/costoflife-rs [INFO] finished tweaking git repo https://github.com/noandrea/costoflife-rs [INFO] tweaked toml for git repo https://github.com/noandrea/costoflife-rs written to /workspace/builds/worker-0/source/Cargo.toml [INFO] crate git repo https://github.com/noandrea/costoflife-rs already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded terminal_size v0.1.15 [INFO] [stderr] Downloaded wasm-bindgen-test-macro v0.3.23 [INFO] [stderr] Downloaded wasm-bindgen-test v0.3.23 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b69a07dd3b0cf839be08b5213608d248de7b2777bc28bc192858b1ea4eb56ec8 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "b69a07dd3b0cf839be08b5213608d248de7b2777bc28bc192858b1ea4eb56ec8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b69a07dd3b0cf839be08b5213608d248de7b2777bc28bc192858b1ea4eb56ec8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b69a07dd3b0cf839be08b5213608d248de7b2777bc28bc192858b1ea4eb56ec8", kill_on_drop: false }` [INFO] [stdout] b69a07dd3b0cf839be08b5213608d248de7b2777bc28bc192858b1ea4eb56ec8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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" "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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 5731f9e916906ec400c9df7f7b0372b410aa9230604603ac4e179e9dcc9723f1 [INFO] running `Command { std: "docker" "start" "-a" "5731f9e916906ec400c9df7f7b0372b410aa9230604603ac4e179e9dcc9723f1", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Compiling proc-macro2 v1.0.26 [INFO] [stderr] Compiling syn v1.0.69 [INFO] [stderr] Compiling wasm-bindgen-shared v0.2.73 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Compiling bumpalo v3.4.0 [INFO] [stderr] Compiling getrandom v0.1.15 [INFO] [stderr] Compiling typenum v1.12.0 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling wasm-bindgen v0.2.73 [INFO] [stderr] Checking unicode-width v0.1.8 [INFO] [stderr] Checking ppv-lite86 v0.2.10 [INFO] [stderr] Compiling unicode-segmentation v1.7.1 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking strsim v0.10.0 [INFO] [stderr] Checking subtle v2.3.0 [INFO] [stderr] Checking hashbrown v0.9.1 [INFO] [stderr] Checking deunicode v0.4.3 [INFO] [stderr] Checking arrayvec v0.5.2 [INFO] [stderr] Checking constant_time_eq v0.1.5 [INFO] [stderr] Checking arrayref v0.3.6 [INFO] [stderr] Checking os_str_bytes v2.4.0 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling num-bigint v0.3.1 [INFO] [stderr] Compiling indexmap v1.6.0 [INFO] [stderr] Compiling num-bigint v0.4.0 [INFO] [stderr] Compiling generic-array v0.14.4 [INFO] [stderr] Compiling blake3 v0.3.7 [INFO] [stderr] Checking textwrap v0.12.1 [INFO] [stderr] Checking pad v0.1.6 [INFO] [stderr] Checking simsearch v0.2.2 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling heck v0.3.1 [INFO] [stderr] Compiling log v0.4.11 [INFO] [stderr] Checking bitflags v1.2.1 [INFO] [stderr] Checking slug v0.1.4 [INFO] [stderr] Checking terminal_size v0.1.15 [INFO] [stderr] Checking dirs-sys-next v0.1.2 [INFO] [stderr] Checking regex v1.4.5 [INFO] [stderr] Checking directories-next v2.0.0 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking console v0.14.1 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling wasm-bindgen-test-macro v0.3.23 [INFO] [stderr] Checking chrono v0.4.19 [INFO] [stderr] Checking crypto-mac v0.8.0 [INFO] [stderr] Checking digest v0.9.0 [INFO] [stderr] Checking tempfile v3.1.0 [INFO] [stderr] Checking dialoguer v0.8.0 [INFO] [stderr] Checking bigdecimal v0.2.0 [INFO] [stderr] Compiling wasm-bindgen-backend v0.2.73 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.73 [INFO] [stderr] Compiling clap_derive v3.0.0-beta.2 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.73 [INFO] [stderr] Checking clap v3.0.0-beta.2 [INFO] [stderr] Checking js-sys v0.3.50 [INFO] [stderr] Checking console_error_panic_hook v0.1.6 [INFO] [stderr] Checking costoflife v0.3.0 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2018 edition to 2021 [INFO] [stderr] Fixed src/utils.rs (1 fix) [INFO] [stderr] Migrating src/main.rs from 2018 edition to 2021 [INFO] [stderr] Fixed src/interaction.rs (4 fixes) [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/interaction.rs:128:5 [INFO] [stdout] | [INFO] [stdout] 120 | / loop { [INFO] [stdout] 121 | | let v = input("how much does it cost?", NonEmpty); [INFO] [stdout] 122 | | amount = match parse_amount(&v) { [INFO] [stdout] 123 | | Some(a) => a, [INFO] [stdout] 124 | | None => continue, [INFO] [stdout] 125 | | } [INFO] [stdout] 126 | | } [INFO] [stdout] | |_____- any code following this expression is unreachable [INFO] [stdout] 127 | // tags [INFO] [stdout] 128 | let mut tags: Vec = Vec::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `amount` is assigned to, but never used [INFO] [stdout] --> src/interaction.rs:119:13 [INFO] [stdout] | [INFO] [stdout] 119 | let mut amount = parse_amount("0.0").unwrap(); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] = note: consider using `_amount` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `amount` is never read [INFO] [stdout] --> src/interaction.rs:122:9 [INFO] [stdout] | [INFO] [stdout] 122 | amount = match parse_amount(&v) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `size` [INFO] [stdout] --> src/ledger.rs:153:12 [INFO] [stdout] | [INFO] [stdout] 153 | pub fn size(&self, on: Option) -> usize { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Yes` [INFO] [stdout] --> src/interaction.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | Yes, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `No` [INFO] [stdout] --> src/interaction.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | No, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `to_bool` [INFO] [stdout] --> src/interaction.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn to_bool(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `from_bool` [INFO] [stdout] --> src/interaction.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn from_bool(v: bool) -> PolarAnswer { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `NonEmpty` [INFO] [stdout] --> src/interaction.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | NonEmpty, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Empty` [INFO] [stdout] --> src/interaction.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | Empty, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `to_bool` [INFO] [stdout] --> src/interaction.rs:37:8 [INFO] [stdout] | [INFO] [stdout] 37 | fn to_bool(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `confirm` [INFO] [stdout] --> src/interaction.rs:46:8 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn confirm(q: &str, def: PolarAnswer) -> PolarAnswer { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `input` [INFO] [stdout] --> src/interaction.rs:57:8 [INFO] [stdout] | [INFO] [stdout] 57 | pub fn input(q: &str, empty: Feat) -> String { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `select_opt` [INFO] [stdout] --> src/interaction.rs:66:8 [INFO] [stdout] | [INFO] [stdout] 66 | pub fn select_opt<'a, T: ?Sized>(q: &str, opts: Vec<(&'a str, &'a T)>) -> Option<&'a T> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `select` [INFO] [stdout] --> src/interaction.rs:85:8 [INFO] [stdout] | [INFO] [stdout] 85 | pub fn select<'a, T: ?Sized>(q: &str, opts: Vec<(&'a str, &'a T)>) -> &'a T { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `menu` [INFO] [stdout] --> src/interaction.rs:101:8 [INFO] [stdout] | [INFO] [stdout] 101 | pub fn menu() -> Option { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `new_tx` [INFO] [stdout] --> src/interaction.rs:116:8 [INFO] [stdout] | [INFO] [stdout] 116 | pub fn new_tx() -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 17 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking wasm-bindgen-futures v0.4.23 [INFO] [stderr] Checking wasm-bindgen-test v0.3.23 [INFO] [stderr] Fixed src/lib.rs (1 fix) [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/interaction.rs:128:5 [INFO] [stdout] | [INFO] [stdout] 120 | / loop { [INFO] [stdout] 121 | | let v = input("how much does it cost?", NonEmpty); [INFO] [stdout] 122 | | amount = match parse_amount(&v) { [INFO] [stdout] 123 | | Some(a) => a, [INFO] [stdout] 124 | | None => continue, [INFO] [stdout] 125 | | } [INFO] [stdout] 126 | | } [INFO] [stdout] | |_____- any code following this expression is unreachable [INFO] [stdout] 127 | // tags [INFO] [stdout] 128 | let mut tags: Vec = Vec::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `amount` is assigned to, but never used [INFO] [stdout] --> src/interaction.rs:119:13 [INFO] [stdout] | [INFO] [stdout] 119 | let mut amount = parse_amount("0.0").unwrap(); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] = note: consider using `_amount` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `amount` is never read [INFO] [stdout] --> src/interaction.rs:122:9 [INFO] [stdout] | [INFO] [stdout] 122 | amount = match parse_amount(&v) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Yes` [INFO] [stdout] --> src/interaction.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | Yes, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `No` [INFO] [stdout] --> src/interaction.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | No, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `to_bool` [INFO] [stdout] --> src/interaction.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn to_bool(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `from_bool` [INFO] [stdout] --> src/interaction.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn from_bool(v: bool) -> PolarAnswer { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `NonEmpty` [INFO] [stdout] --> src/interaction.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | NonEmpty, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Empty` [INFO] [stdout] --> src/interaction.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | Empty, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `to_bool` [INFO] [stdout] --> src/interaction.rs:37:8 [INFO] [stdout] | [INFO] [stdout] 37 | fn to_bool(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `confirm` [INFO] [stdout] --> src/interaction.rs:46:8 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn confirm(q: &str, def: PolarAnswer) -> PolarAnswer { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `input` [INFO] [stdout] --> src/interaction.rs:57:8 [INFO] [stdout] | [INFO] [stdout] 57 | pub fn input(q: &str, empty: Feat) -> String { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `select_opt` [INFO] [stdout] --> src/interaction.rs:66:8 [INFO] [stdout] | [INFO] [stdout] 66 | pub fn select_opt<'a, T: ?Sized>(q: &str, opts: Vec<(&'a str, &'a T)>) -> Option<&'a T> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `select` [INFO] [stdout] --> src/interaction.rs:85:8 [INFO] [stdout] | [INFO] [stdout] 85 | pub fn select<'a, T: ?Sized>(q: &str, opts: Vec<(&'a str, &'a T)>) -> &'a T { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `menu` [INFO] [stdout] --> src/interaction.rs:101:8 [INFO] [stdout] | [INFO] [stdout] 101 | pub fn menu() -> Option { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `new_tx` [INFO] [stdout] --> src/interaction.rs:116:8 [INFO] [stdout] | [INFO] [stdout] 116 | pub fn new_tx() -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 16 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 44.09s [INFO] [stderr] Running `cargo check` to verify 2021 [INFO] [stderr] Checking costoflife v0.3.0 (/tmp/fixit) [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/interaction.rs:128:5 [INFO] [stdout] | [INFO] [stdout] 120 | / loop { [INFO] [stdout] 121 | | let v = input("how much does it cost?", NonEmpty); [INFO] [stdout] 122 | | amount = match parse_amount(&v) { [INFO] [stdout] 123 | | Some(a) => a, [INFO] [stdout] 124 | | None => continue, [INFO] [stdout] 125 | | } [INFO] [stdout] 126 | | } [INFO] [stdout] | |_____- any code following this expression is unreachable [INFO] [stdout] 127 | // tags [INFO] [stdout] 128 | let mut tags: Vec = Vec::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `amount` is assigned to, but never used [INFO] [stdout] --> src/interaction.rs:119:13 [INFO] [stdout] | [INFO] [stdout] 119 | let mut amount = parse_amount("0.0").unwrap(); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] = note: consider using `_amount` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `amount` is never read [INFO] [stdout] --> src/interaction.rs:122:9 [INFO] [stdout] | [INFO] [stdout] 122 | amount = match parse_amount(&v) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/interaction.rs:128:5 [INFO] [stdout] | [INFO] [stdout] 120 | / loop { [INFO] [stdout] 121 | | let v = input("how much does it cost?", NonEmpty); [INFO] [stdout] 122 | | amount = match parse_amount(&v) { [INFO] [stdout] 123 | | Some(a) => a, [INFO] [stdout] 124 | | None => continue, [INFO] [stdout] 125 | | } [INFO] [stdout] 126 | | } [INFO] [stdout] | |_____- any code following this expression is unreachable [INFO] [stdout] 127 | // tags [INFO] [stdout] 128 | let mut tags: Vec = Vec::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `amount` is assigned to, but never used [INFO] [stdout] --> src/interaction.rs:119:13 [INFO] [stdout] | [INFO] [stdout] 119 | let mut amount = parse_amount("0.0").unwrap(); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] = note: consider using `_amount` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `amount` is never read [INFO] [stdout] --> src/interaction.rs:122:9 [INFO] [stdout] | [INFO] [stdout] 122 | amount = match parse_amount(&v) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `size` [INFO] [stdout] --> src/ledger.rs:153:12 [INFO] [stdout] | [INFO] [stdout] 153 | pub fn size(&self, on: Option) -> usize { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Yes` [INFO] [stdout] --> src/interaction.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | Yes, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `No` [INFO] [stdout] --> src/interaction.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | No, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `to_bool` [INFO] [stdout] --> src/interaction.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn to_bool(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `from_bool` [INFO] [stdout] --> src/interaction.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn from_bool(v: bool) -> PolarAnswer { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `NonEmpty` [INFO] [stdout] --> src/interaction.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | NonEmpty, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Empty` [INFO] [stdout] --> src/interaction.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | Empty, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `to_bool` [INFO] [stdout] --> src/interaction.rs:37:8 [INFO] [stdout] | [INFO] [stdout] 37 | fn to_bool(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `confirm` [INFO] [stdout] --> src/interaction.rs:46:8 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn confirm(q: &str, def: PolarAnswer) -> PolarAnswer { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `input` [INFO] [stdout] --> src/interaction.rs:57:8 [INFO] [stdout] | [INFO] [stdout] 57 | pub fn input(q: &str, empty: Feat) -> String { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `select_opt` [INFO] [stdout] --> src/interaction.rs:66:8 [INFO] [stdout] | [INFO] [stdout] 66 | pub fn select_opt<'a, T: ?Sized>(q: &str, opts: Vec<(&'a str, &'a T)>) -> Option<&'a T> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `select` [INFO] [stdout] --> src/interaction.rs:85:8 [INFO] [stdout] | [INFO] [stdout] 85 | pub fn select<'a, T: ?Sized>(q: &str, opts: Vec<(&'a str, &'a T)>) -> &'a T { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `menu` [INFO] [stdout] --> src/interaction.rs:101:8 [INFO] [stdout] | [INFO] [stdout] 101 | pub fn menu() -> Option { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `new_tx` [INFO] [stdout] --> src/interaction.rs:116:8 [INFO] [stdout] | [INFO] [stdout] 116 | pub fn new_tx() -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Yes` [INFO] [stdout] --> src/interaction.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | Yes, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `No` [INFO] [stdout] --> src/interaction.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | No, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `to_bool` [INFO] [stdout] --> src/interaction.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn to_bool(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `from_bool` [INFO] [stdout] --> src/interaction.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn from_bool(v: bool) -> PolarAnswer { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `NonEmpty` [INFO] [stdout] --> src/interaction.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | NonEmpty, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Empty` [INFO] [stdout] --> src/interaction.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | Empty, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `to_bool` [INFO] [stdout] --> src/interaction.rs:37:8 [INFO] [stdout] | [INFO] [stdout] 37 | fn to_bool(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `confirm` [INFO] [stdout] --> src/interaction.rs:46:8 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn confirm(q: &str, def: PolarAnswer) -> PolarAnswer { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `input` [INFO] [stdout] --> src/interaction.rs:57:8 [INFO] [stdout] | [INFO] [stdout] 57 | pub fn input(q: &str, empty: Feat) -> String { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `select_opt` [INFO] [stdout] --> src/interaction.rs:66:8 [INFO] [stdout] | [INFO] [stdout] 66 | pub fn select_opt<'a, T: ?Sized>(q: &str, opts: Vec<(&'a str, &'a T)>) -> Option<&'a T> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `select` [INFO] [stdout] --> src/interaction.rs:85:8 [INFO] [stdout] | [INFO] [stdout] 85 | pub fn select<'a, T: ?Sized>(q: &str, opts: Vec<(&'a str, &'a T)>) -> &'a T { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `menu` [INFO] [stdout] --> src/interaction.rs:101:8 [INFO] [stdout] | [INFO] [stdout] 101 | pub fn menu() -> Option { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `new_tx` [INFO] [stdout] --> src/interaction.rs:116:8 [INFO] [stdout] | [INFO] [stdout] 116 | pub fn new_tx() -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 17 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 16 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1.82s [INFO] running `Command { std: "docker" "inspect" "5731f9e916906ec400c9df7f7b0372b410aa9230604603ac4e179e9dcc9723f1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5731f9e916906ec400c9df7f7b0372b410aa9230604603ac4e179e9dcc9723f1", kill_on_drop: false }` [INFO] [stdout] 5731f9e916906ec400c9df7f7b0372b410aa9230604603ac4e179e9dcc9723f1