[INFO] cloning repository https://github.com/twinzies/quadratic_voting [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/twinzies/quadratic_voting" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftwinzies%2Fquadratic_voting", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftwinzies%2Fquadratic_voting'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 4017c57cf14fc94d00338b98b449eecb9bbcc222 [INFO] building twinzies/quadratic_voting 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%2Ftwinzies%2Fquadratic_voting" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/twinzies/quadratic_voting 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/twinzies/quadratic_voting [INFO] finished tweaking git repo https://github.com/twinzies/quadratic_voting [INFO] tweaked toml for git repo https://github.com/twinzies/quadratic_voting written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/twinzies/quadratic_voting 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] [stderr] warning: unused manifest key: package.author [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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] 88c2890abc2208c16f11d852090a0b35f379e341dd0339c67391f510c2bac1e9 [INFO] running `Command { std: "docker" "start" "-a" "88c2890abc2208c16f11d852090a0b35f379e341dd0339c67391f510c2bac1e9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "88c2890abc2208c16f11d852090a0b35f379e341dd0339c67391f510c2bac1e9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "88c2890abc2208c16f11d852090a0b35f379e341dd0339c67391f510c2bac1e9", kill_on_drop: false }` [INFO] [stdout] 88c2890abc2208c16f11d852090a0b35f379e341dd0339c67391f510c2bac1e9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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] 2b5f314fae36d15c9be0f72565ab7901916d754e97b0ccb82d60ad3caecfa43e [INFO] running `Command { std: "docker" "start" "-a" "2b5f314fae36d15c9be0f72565ab7901916d754e97b0ccb82d60ad3caecfa43e", kill_on_drop: false }` [INFO] [stderr] warning: unused manifest key: package.author [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling libc v0.2.132 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling ppv-lite86 v0.2.16 [INFO] [stderr] Compiling num_threads v0.1.6 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling num-bigint v0.4.3 [INFO] [stderr] Compiling num-iter v0.1.43 [INFO] [stderr] Compiling num-rational v0.4.1 [INFO] [stderr] Compiling getrandom v0.2.7 [INFO] [stderr] Compiling time v0.3.13 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling num-complex v0.4.2 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling num v0.4.0 [INFO] [stderr] Compiling quadratic_voting v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `SubAssign` [INFO] [stdout] --> src/lib.rs:1:28 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{ops::{AddAssign, SubAssign}, fmt::Display, collections::HashMap, hash::Hash}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Add` [INFO] [stdout] --> src/proposal.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::ops::Add; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AddAssign`, `Add`, `SubAssign`, `Sub`, `collections::HashMap`, and `fmt::Display` [INFO] [stdout] --> src/tests.rs:1:17 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{ops::{AddAssign, SubAssign, Sub, Add}, fmt::Display, collections::HashMap}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^ ^^^ ^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is a test module, consider adding a `#[cfg(test)]` to the containing module [INFO] [stdout] --> src/lib.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | pub(crate) mod tests; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::Errors` [INFO] [stdout] --> src/tests.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::Errors; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is a test module, consider adding a `#[cfg(test)]` to the containing module [INFO] [stdout] --> src/lib.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | pub(crate) mod tests; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/lib.rs:81:9 [INFO] [stdout] | [INFO] [stdout] 76 | return Ok(win.0); [INFO] [stdout] | ---------------- any code following this expression is unreachable [INFO] [stdout] ... [INFO] [stdout] 81 | println!("Proposal ID {:} called and closed.", proposal); // Similar to pallet events. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] = note: this warning originates in the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `who` [INFO] [stdout] --> src/lib.rs:86:81 [INFO] [stdout] | [INFO] [stdout] 86 | pub fn return_deposit>(storage: &mut Storage, who: T::AccountId, proposal: T::ProposalId) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_who` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `new_count` [INFO] [stdout] --> src/lib.rs:124:13 [INFO] [stdout] | [INFO] [stdout] 124 | let new_count = match stance { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `storage` [INFO] [stdout] --> src/lib.rs:146:51 [INFO] [stdout] | [INFO] [stdout] 146 | fn release_funds >(storage: &mut Storage, proposal: T::ProposalId) -> Result<(), Errors> { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_storage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `proposal` [INFO] [stdout] --> src/lib.rs:146:77 [INFO] [stdout] | [INFO] [stdout] 146 | fn release_funds >(storage: &mut Storage, proposal: T::ProposalId) -> Result<(), Errors> { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_proposal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `who` [INFO] [stdout] --> src/lib.rs:151:79 [INFO] [stdout] | [INFO] [stdout] 151 | fn reserve_funds(storage: &mut Storage, amount: T::Currency, who: T::AccountId) -> Result<(), Errors> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_who` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/lib.rs:75:13 [INFO] [stdout] | [INFO] [stdout] 75 | proposal_cleanup(storage, proposal); [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] 75 | let _ = proposal_cleanup(storage, proposal); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/lib.rs:87:9 [INFO] [stdout] | [INFO] [stdout] 87 | release_funds(storage, proposal); [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] 87 | let _ = release_funds(storage, proposal); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/lib.rs:95:13 [INFO] [stdout] | [INFO] [stdout] 95 | / store_incoming_vote( [INFO] [stdout] 96 | | storage, [INFO] [stdout] 97 | | number, [INFO] [stdout] 98 | | stance, [INFO] [stdout] 99 | | proposal, [INFO] [stdout] 100 | | who); [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] 95 | let _ = store_incoming_vote( [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/lib.rs:102:13 [INFO] [stdout] | [INFO] [stdout] 102 | reserve_funds(storage, deposit_from_votes::(number), who); [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] 102 | let _ = reserve_funds(storage, deposit_from_votes::(number), who); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 8.10s [INFO] running `Command { std: "docker" "inspect" "2b5f314fae36d15c9be0f72565ab7901916d754e97b0ccb82d60ad3caecfa43e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2b5f314fae36d15c9be0f72565ab7901916d754e97b0ccb82d60ad3caecfa43e", kill_on_drop: false }` [INFO] [stdout] 2b5f314fae36d15c9be0f72565ab7901916d754e97b0ccb82d60ad3caecfa43e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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] e26ee827c14578a5162481eb4d5628ac43cc7d8b65bbb87514dc770ba6fd6e1e [INFO] running `Command { std: "docker" "start" "-a" "e26ee827c14578a5162481eb4d5628ac43cc7d8b65bbb87514dc770ba6fd6e1e", kill_on_drop: false }` [INFO] [stderr] warning: unused manifest key: package.author [INFO] [stderr] Compiling quadratic_voting v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `SubAssign` [INFO] [stdout] --> src/lib.rs:1:28 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{ops::{AddAssign, SubAssign}, fmt::Display, collections::HashMap, hash::Hash}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Add` [INFO] [stdout] --> src/proposal.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::ops::Add; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AddAssign`, `Add`, `SubAssign`, `Sub`, `collections::HashMap`, and `fmt::Display` [INFO] [stdout] --> src/tests.rs:1:17 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{ops::{AddAssign, SubAssign, Sub, Add}, fmt::Display, collections::HashMap}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^ ^^^ ^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is a test module, consider adding a `#[cfg(test)]` to the containing module [INFO] [stdout] --> src/lib.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | pub(crate) mod tests; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::Errors` [INFO] [stdout] --> src/tests.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::Errors; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is a test module, consider adding a `#[cfg(test)]` to the containing module [INFO] [stdout] --> src/lib.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | pub(crate) mod tests; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/lib.rs:81:9 [INFO] [stdout] | [INFO] [stdout] 76 | return Ok(win.0); [INFO] [stdout] | ---------------- any code following this expression is unreachable [INFO] [stdout] ... [INFO] [stdout] 81 | println!("Proposal ID {:} called and closed.", proposal); // Similar to pallet events. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] = note: this warning originates in the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `who` [INFO] [stdout] --> src/lib.rs:86:81 [INFO] [stdout] | [INFO] [stdout] 86 | pub fn return_deposit>(storage: &mut Storage, who: T::AccountId, proposal: T::ProposalId) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_who` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `new_count` [INFO] [stdout] --> src/lib.rs:124:13 [INFO] [stdout] | [INFO] [stdout] 124 | let new_count = match stance { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `storage` [INFO] [stdout] --> src/lib.rs:146:51 [INFO] [stdout] | [INFO] [stdout] 146 | fn release_funds >(storage: &mut Storage, proposal: T::ProposalId) -> Result<(), Errors> { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_storage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `proposal` [INFO] [stdout] --> src/lib.rs:146:77 [INFO] [stdout] | [INFO] [stdout] 146 | fn release_funds >(storage: &mut Storage, proposal: T::ProposalId) -> Result<(), Errors> { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_proposal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `who` [INFO] [stdout] --> src/lib.rs:151:79 [INFO] [stdout] | [INFO] [stdout] 151 | fn reserve_funds(storage: &mut Storage, amount: T::Currency, who: T::AccountId) -> Result<(), Errors> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_who` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/lib.rs:75:13 [INFO] [stdout] | [INFO] [stdout] 75 | proposal_cleanup(storage, proposal); [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] 75 | let _ = proposal_cleanup(storage, proposal); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/lib.rs:87:9 [INFO] [stdout] | [INFO] [stdout] 87 | release_funds(storage, proposal); [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] 87 | let _ = release_funds(storage, proposal); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/lib.rs:95:13 [INFO] [stdout] | [INFO] [stdout] 95 | / store_incoming_vote( [INFO] [stdout] 96 | | storage, [INFO] [stdout] 97 | | number, [INFO] [stdout] 98 | | stance, [INFO] [stdout] 99 | | proposal, [INFO] [stdout] 100 | | who); [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] 95 | let _ = store_incoming_vote( [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/lib.rs:102:13 [INFO] [stdout] | [INFO] [stdout] 102 | reserve_funds(storage, deposit_from_votes::(number), who); [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] 102 | let _ = reserve_funds(storage, deposit_from_votes::(number), who); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SubAssign` [INFO] [stdout] --> src/lib.rs:1:28 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{ops::{AddAssign, SubAssign}, fmt::Display, collections::HashMap, hash::Hash}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Add` [INFO] [stdout] --> src/proposal.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::ops::Add; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AddAssign`, `Add`, `SubAssign`, `Sub`, and `fmt::Display` [INFO] [stdout] --> src/tests.rs:1:17 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{ops::{AddAssign, SubAssign, Sub, Add}, fmt::Display, collections::HashMap}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^ ^^^ ^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::Errors` [INFO] [stdout] --> src/tests.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::Errors; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Error` [INFO] [stdout] --> src/tests.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | use std::io::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/lib.rs:81:9 [INFO] [stdout] | [INFO] [stdout] 76 | return Ok(win.0); [INFO] [stdout] | ---------------- any code following this expression is unreachable [INFO] [stdout] ... [INFO] [stdout] 81 | println!("Proposal ID {:} called and closed.", proposal); // Similar to pallet events. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] = note: this warning originates in the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tests.rs:29:13 [INFO] [stdout] | [INFO] [stdout] 29 | let mut voters:Vec<::AccountId> = Vec::new(); [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/tests.rs:80:13 [INFO] [stdout] | [INFO] [stdout] 80 | let mut test_proposals: HashMap> = HashMap::new(); [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/tests.rs:81:13 [INFO] [stdout] | [INFO] [stdout] 81 | let mut test_voter_info: HashMap>> = HashMap::new(); [INFO] [stdout] | ----^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `who` [INFO] [stdout] --> src/lib.rs:86:81 [INFO] [stdout] | [INFO] [stdout] 86 | pub fn return_deposit>(storage: &mut Storage, who: T::AccountId, proposal: T::ProposalId) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_who` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `new_count` [INFO] [stdout] --> src/lib.rs:124:13 [INFO] [stdout] | [INFO] [stdout] 124 | let new_count = match stance { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `storage` [INFO] [stdout] --> src/lib.rs:146:51 [INFO] [stdout] | [INFO] [stdout] 146 | fn release_funds >(storage: &mut Storage, proposal: T::ProposalId) -> Result<(), Errors> { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_storage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `proposal` [INFO] [stdout] --> src/lib.rs:146:77 [INFO] [stdout] | [INFO] [stdout] 146 | fn release_funds >(storage: &mut Storage, proposal: T::ProposalId) -> Result<(), Errors> { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_proposal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `who` [INFO] [stdout] --> src/lib.rs:151:79 [INFO] [stdout] | [INFO] [stdout] 151 | fn reserve_funds(storage: &mut Storage, amount: T::Currency, who: T::AccountId) -> Result<(), Errors> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_who` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `numVotes` should have a snake case name [INFO] [stdout] --> src/tests.rs:60:13 [INFO] [stdout] | [INFO] [stdout] 60 | let numVotes:u64 = 5; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `num_votes` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Currency` should have a snake case name [INFO] [stdout] --> src/tests.rs:61:13 [INFO] [stdout] | [INFO] [stdout] 61 | let Currency = numVotes * numVotes; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `currency` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/lib.rs:75:13 [INFO] [stdout] | [INFO] [stdout] 75 | proposal_cleanup(storage, proposal); [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] 75 | let _ = proposal_cleanup(storage, proposal); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/lib.rs:87:9 [INFO] [stdout] | [INFO] [stdout] 87 | release_funds(storage, proposal); [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] 87 | let _ = release_funds(storage, proposal); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/lib.rs:95:13 [INFO] [stdout] | [INFO] [stdout] 95 | / store_incoming_vote( [INFO] [stdout] 96 | | storage, [INFO] [stdout] 97 | | number, [INFO] [stdout] 98 | | stance, [INFO] [stdout] 99 | | proposal, [INFO] [stdout] 100 | | who); [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] 95 | let _ = store_incoming_vote( [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/lib.rs:102:13 [INFO] [stdout] | [INFO] [stdout] 102 | reserve_funds(storage, deposit_from_votes::(number), who); [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] 102 | let _ = reserve_funds(storage, deposit_from_votes::(number), who); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.55s [INFO] running `Command { std: "docker" "inspect" "e26ee827c14578a5162481eb4d5628ac43cc7d8b65bbb87514dc770ba6fd6e1e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e26ee827c14578a5162481eb4d5628ac43cc7d8b65bbb87514dc770ba6fd6e1e", kill_on_drop: false }` [INFO] [stdout] e26ee827c14578a5162481eb4d5628ac43cc7d8b65bbb87514dc770ba6fd6e1e