[INFO] cloning repository https://github.com/smathog/EMSim [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/smathog/EMSim" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsmathog%2FEMSim", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsmathog%2FEMSim'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 0487e33081362be4a99e128a22c8ad1f77f348c8 [INFO] checking smathog/EMSim against master#e1ac0fa95ba15221ee195647cb12464df3164513 for pr-126090-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsmathog%2FEMSim" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/smathog/EMSim on toolchain e1ac0fa95ba15221ee195647cb12464df3164513 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+e1ac0fa95ba15221ee195647cb12464df3164513" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/smathog/EMSim [INFO] finished tweaking git repo https://github.com/smathog/EMSim [INFO] tweaked toml for git repo https://github.com/smathog/EMSim written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/smathog/EMSim 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" "+e1ac0fa95ba15221ee195647cb12464df3164513" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded rand_chacha v0.3.1 [INFO] [stderr] Downloaded rand_core v0.6.3 [INFO] [stderr] Downloaded getrandom v0.2.7 [INFO] [stderr] Downloaded rand_distr v0.4.3 [INFO] [stderr] Downloaded autocfg v1.1.0 [INFO] [stderr] Downloaded once_cell v1.12.0 [INFO] [stderr] Downloaded enum_dispatch v0.3.8 [INFO] [stderr] Downloaded proc-macro2 v1.0.39 [INFO] [stderr] Downloaded syn v1.0.96 [INFO] [stderr] Downloaded quote v1.0.18 [INFO] [stderr] Downloaded libc v0.2.126 [INFO] [stderr] Downloaded unicode-ident v1.0.0 [INFO] [stderr] Downloaded invoke_impl v0.1.1 [INFO] [stderr] Downloaded libm v0.2.2 [INFO] [stderr] Downloaded num-traits v0.2.15 [INFO] [stderr] Downloaded ppv-lite86 v0.2.16 [INFO] [stderr] Downloaded wasi v0.11.0+wasi-snapshot-preview1 [INFO] [stderr] Downloaded rand v0.8.5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+e1ac0fa95ba15221ee195647cb12464df3164513" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 64b02e89b2727ce2e0ca462c859dd9312b3a341e471b902deadecb70418ab842 [INFO] running `Command { std: "docker" "start" "-a" "64b02e89b2727ce2e0ca462c859dd9312b3a341e471b902deadecb70418ab842", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "64b02e89b2727ce2e0ca462c859dd9312b3a341e471b902deadecb70418ab842", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "64b02e89b2727ce2e0ca462c859dd9312b3a341e471b902deadecb70418ab842", kill_on_drop: false }` [INFO] [stdout] 64b02e89b2727ce2e0ca462c859dd9312b3a341e471b902deadecb70418ab842 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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" "-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:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+e1ac0fa95ba15221ee195647cb12464df3164513" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7da612ae9b28a3aaa37b1065ddb5133f1fa483678b890833caa9e0be0013aeaf [INFO] running `Command { std: "docker" "start" "-a" "7da612ae9b28a3aaa37b1065ddb5133f1fa483678b890833caa9e0be0013aeaf", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.126 [INFO] [stderr] Compiling proc-macro2 v1.0.39 [INFO] [stderr] Compiling unicode-ident v1.0.0 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling syn v1.0.96 [INFO] [stderr] Compiling libm v0.2.2 [INFO] [stderr] Checking ppv-lite86 v0.2.16 [INFO] [stderr] Compiling once_cell v1.12.0 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Checking getrandom v0.2.7 [INFO] [stderr] Compiling quote v1.0.18 [INFO] [stderr] Checking rand_core v0.6.3 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking rand_distr v0.4.3 [INFO] [stderr] Compiling enum_dispatch v0.3.8 [INFO] [stderr] Compiling invoke_impl v0.1.1 [INFO] [stderr] Checking EMSim v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `honest_voter::*` [INFO] [stdout] --> src/election/voters/mod.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub use honest_voter::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `real_ordinal_voter::RealOrdinalVoter` [INFO] [stdout] --> src/election/voters/mod.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub use real_ordinal_voter::RealOrdinalVoter; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `election_profile::ElectionProfile` [INFO] [stdout] --> src/election/mod.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub use election_profile::ElectionProfile; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `real_ordinal_voter::RealOrdinalVoter` [INFO] [stdout] --> src/election/voters/mod.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub use real_ordinal_voter::RealOrdinalVoter; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `election_profile::ElectionProfile` [INFO] [stdout] --> src/election/mod.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub use election_profile::ElectionProfile; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `first_index` [INFO] [stdout] --> src/election/election_methods.rs:446:22 [INFO] [stdout] | [INFO] [stdout] 446 | let (CandidateID(first_index), CandidateID(second_index)) = (candidates[0], candidates[1]); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_first_index` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `second_index` [INFO] [stdout] --> src/election/election_methods.rs:446:48 [INFO] [stdout] | [INFO] [stdout] 446 | let (CandidateID(first_index), CandidateID(second_index)) = (candidates[0], candidates[1]); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_second_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `method` [INFO] [stdout] --> src/election/voters/honest_voter.rs:149:39 [INFO] [stdout] | [INFO] [stdout] 149 | fn cast_ordinal_ballot(&mut self, method: OrdinalEnum) -> &Vec { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_method` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `method_name` [INFO] [stdout] --> src/election/voters/honest_voter.rs:154:45 [INFO] [stdout] | [INFO] [stdout] 154 | fn cast_ordinal_equal_ballot(&mut self, method_name: &str) -> &Vec> { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_method_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `method` [INFO] [stdout] --> src/election/voters/honest_voter.rs:160:54 [INFO] [stdout] | [INFO] [stdout] 160 | fn cast_cardinal_ballot(&mut self, range: usize, method: CardinalEnum) -> &Vec { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_method` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `method` [INFO] [stdout] --> src/election/voters/honest_voter.rs:168:40 [INFO] [stdout] | [INFO] [stdout] 168 | fn cast_approval_ballot(&mut self, method: CardinalEnum) -> &Vec { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_method` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `method` [INFO] [stdout] --> src/election/voters/real_ordinal_voter.rs:30:39 [INFO] [stdout] | [INFO] [stdout] 30 | fn cast_ordinal_ballot(&mut self, method: OrdinalEnum) -> &Vec { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_method` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `method_name` [INFO] [stdout] --> src/election/voters/real_ordinal_voter.rs:34:45 [INFO] [stdout] | [INFO] [stdout] 34 | fn cast_ordinal_equal_ballot(&mut self, method_name: &str) -> &Vec> { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_method_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `range` [INFO] [stdout] --> src/election/voters/real_ordinal_voter.rs:38:40 [INFO] [stdout] | [INFO] [stdout] 38 | fn cast_cardinal_ballot(&mut self, range: usize, method: CardinalEnum) -> &Vec { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_range` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `method` [INFO] [stdout] --> src/election/voters/real_ordinal_voter.rs:38:54 [INFO] [stdout] | [INFO] [stdout] 38 | fn cast_cardinal_ballot(&mut self, range: usize, method: CardinalEnum) -> &Vec { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_method` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `method` [INFO] [stdout] --> src/election/voters/real_ordinal_voter.rs:42:40 [INFO] [stdout] | [INFO] [stdout] 42 | fn cast_approval_ballot(&mut self, method: CardinalEnum) -> &Vec { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_method` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `first` [INFO] [stdout] --> src/election/voters/real_ordinal_voter.rs:46:33 [INFO] [stdout] | [INFO] [stdout] 46 | fn honest_preference(&self, first: CandidateID, second: CandidateID) -> Ordering { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_first` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `second` [INFO] [stdout] --> src/election/voters/real_ordinal_voter.rs:46:53 [INFO] [stdout] | [INFO] [stdout] 46 | fn honest_preference(&self, first: CandidateID, second: CandidateID) -> Ordering { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_second` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `method` [INFO] [stdout] --> src/election/voters/real_cardinal_voter.rs:85:39 [INFO] [stdout] | [INFO] [stdout] 85 | fn cast_ordinal_ballot(&mut self, method: OrdinalEnum) -> &Vec { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_method` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `method_name` [INFO] [stdout] --> src/election/voters/real_cardinal_voter.rs:89:45 [INFO] [stdout] | [INFO] [stdout] 89 | fn cast_ordinal_equal_ballot(&mut self, method_name: &str) -> &Vec> { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_method_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `method` [INFO] [stdout] --> src/election/voters/real_cardinal_voter.rs:93:54 [INFO] [stdout] | [INFO] [stdout] 93 | fn cast_cardinal_ballot(&mut self, range: usize, method: CardinalEnum) -> &Vec { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_method` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `method` [INFO] [stdout] --> src/election/voters/real_cardinal_voter.rs:101:40 [INFO] [stdout] | [INFO] [stdout] 101 | fn cast_approval_ballot(&mut self, method: CardinalEnum) -> &Vec { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_method` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `first` [INFO] [stdout] --> src/election/voters/real_cardinal_voter.rs:109:33 [INFO] [stdout] | [INFO] [stdout] 109 | fn honest_preference(&self, first: CandidateID, second: CandidateID) -> Ordering { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_first` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `second` [INFO] [stdout] --> src/election/voters/real_cardinal_voter.rs:109:53 [INFO] [stdout] | [INFO] [stdout] 109 | fn honest_preference(&self, first: CandidateID, second: CandidateID) -> Ordering { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_second` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ElectionProfile` is never constructed [INFO] [stdout] --> src/election/election_profile.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct ElectionProfile [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_voters`, `num_voters`, `get_candidates`, `num_candidates`, and `get_tie_breaker` are never used [INFO] [stdout] --> src/election/election_profile.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 23 | impl Ordering + Copy> ElectionProfile { [INFO] [stdout] | ------------------------------------------------------------------------------ methods in this implementation [INFO] [stdout] 24 | /// Get a mut reference to the vec of voters [INFO] [stdout] 25 | pub fn get_voters(&mut self) -> &mut Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn num_voters(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn get_candidates(&self) -> &Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn num_candidates(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn get_tie_breaker(&self) -> F { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `plurality_driver` is never used [INFO] [stdout] --> src/election/election_methods.rs:323:4 [INFO] [stdout] | [INFO] [stdout] 323 | fn plurality_driver Ordering + Copy>( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `score_driver` is never used [INFO] [stdout] --> src/election/election_methods.rs:344:4 [INFO] [stdout] | [INFO] [stdout] 344 | fn score_driver Ordering + Copy>( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `approval_driver` is never used [INFO] [stdout] --> src/election/election_methods.rs:369:4 [INFO] [stdout] | [INFO] [stdout] 369 | fn approval_driver Ordering + Copy>( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `honest_runoff_driver` is never used [INFO] [stdout] --> src/election/election_methods.rs:390:4 [INFO] [stdout] | [INFO] [stdout] 390 | fn honest_runoff_driver Ordering + Copy>( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `star_driver` is never used [INFO] [stdout] --> src/election/election_methods.rs:417:4 [INFO] [stdout] | [INFO] [stdout] 417 | fn star_driver Ordering + Copy>( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_locations` is never used [INFO] [stdout] --> src/election/models/spatial_model.rs:15:4 [INFO] [stdout] | [INFO] [stdout] 15 | fn generate_locations + Copy>( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Function`, `Mean`, and `Preset` are never constructed [INFO] [stdout] --> src/election/voters/voters.rs:65:5 [INFO] [stdout] | [INFO] [stdout] 63 | pub enum ApprovalThresholdBehavior { [INFO] [stdout] | ------------------------- variants in this enum [INFO] [stdout] 64 | /// Set by closure for custom behavior [INFO] [stdout] 65 | Function(Box) -> f64>), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 66 | /// Set as greater than or equal to the mean of utilities [INFO] [stdout] 67 | Mean, [INFO] [stdout] | ^^^^ [INFO] [stdout] 68 | /// Set threshold directly [INFO] [stdout] 69 | Preset(f64), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `scales` and `threshold_behavior` are never read [INFO] [stdout] --> src/election/voters/honest_voter.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct HonestVoter { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 27 | scales: bool, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | threshold_behavior: ApprovalThresholdBehavior, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/election/voters/honest_voter.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 51 | impl HonestVoter { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 52 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/election/voters/real_ordinal_voter.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl RealOrdinalVoter { [INFO] [stdout] | --------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn new(ballot: Vec) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/election/voters/real_cardinal_voter.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 24 | impl RealCardinalVoter { [INFO] [stdout] | ---------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn new Ordering + Copy>( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `distance_utilities` is never used [INFO] [stdout] --> src/utility_generators.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn distance_utilities, &Vec) -> f64>( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `lp_metric` is never used [INFO] [stdout] --> src/metrics.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn lp_metric(location_1: &Vec, location_2: &Vec) -> f64 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_candidates` is never used [INFO] [stdout] --> src/utility_functions.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn generate_candidates(n: usize) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sort_candidates_by_vec` is never used [INFO] [stdout] --> src/utility_functions.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn sort_candidates_by_vec Ordering + Copy>( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `scale_utilities_linearly` is never used [INFO] [stdout] --> src/utility_functions.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn scale_utilities_linearly(utilities: &Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_approval_ballot` is never used [INFO] [stdout] --> src/utility_functions.rs:55:8 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn generate_approval_ballot(utilities: &Vec, bound: f64) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 41 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `first_index` [INFO] [stdout] --> src/election/election_methods.rs:446:22 [INFO] [stdout] | [INFO] [stdout] 446 | let (CandidateID(first_index), CandidateID(second_index)) = (candidates[0], candidates[1]); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_first_index` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `second_index` [INFO] [stdout] --> src/election/election_methods.rs:446:48 [INFO] [stdout] | [INFO] [stdout] 446 | let (CandidateID(first_index), CandidateID(second_index)) = (candidates[0], candidates[1]); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_second_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `method` [INFO] [stdout] --> src/election/voters/honest_voter.rs:149:39 [INFO] [stdout] | [INFO] [stdout] 149 | fn cast_ordinal_ballot(&mut self, method: OrdinalEnum) -> &Vec { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_method` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `method_name` [INFO] [stdout] --> src/election/voters/honest_voter.rs:154:45 [INFO] [stdout] | [INFO] [stdout] 154 | fn cast_ordinal_equal_ballot(&mut self, method_name: &str) -> &Vec> { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_method_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `method` [INFO] [stdout] --> src/election/voters/honest_voter.rs:160:54 [INFO] [stdout] | [INFO] [stdout] 160 | fn cast_cardinal_ballot(&mut self, range: usize, method: CardinalEnum) -> &Vec { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_method` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `method` [INFO] [stdout] --> src/election/voters/honest_voter.rs:168:40 [INFO] [stdout] | [INFO] [stdout] 168 | fn cast_approval_ballot(&mut self, method: CardinalEnum) -> &Vec { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_method` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `method` [INFO] [stdout] --> src/election/voters/real_ordinal_voter.rs:30:39 [INFO] [stdout] | [INFO] [stdout] 30 | fn cast_ordinal_ballot(&mut self, method: OrdinalEnum) -> &Vec { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_method` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `method_name` [INFO] [stdout] --> src/election/voters/real_ordinal_voter.rs:34:45 [INFO] [stdout] | [INFO] [stdout] 34 | fn cast_ordinal_equal_ballot(&mut self, method_name: &str) -> &Vec> { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_method_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `range` [INFO] [stdout] --> src/election/voters/real_ordinal_voter.rs:38:40 [INFO] [stdout] | [INFO] [stdout] 38 | fn cast_cardinal_ballot(&mut self, range: usize, method: CardinalEnum) -> &Vec { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_range` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `method` [INFO] [stdout] --> src/election/voters/real_ordinal_voter.rs:38:54 [INFO] [stdout] | [INFO] [stdout] 38 | fn cast_cardinal_ballot(&mut self, range: usize, method: CardinalEnum) -> &Vec { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_method` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `method` [INFO] [stdout] --> src/election/voters/real_ordinal_voter.rs:42:40 [INFO] [stdout] | [INFO] [stdout] 42 | fn cast_approval_ballot(&mut self, method: CardinalEnum) -> &Vec { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_method` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `first` [INFO] [stdout] --> src/election/voters/real_ordinal_voter.rs:46:33 [INFO] [stdout] | [INFO] [stdout] 46 | fn honest_preference(&self, first: CandidateID, second: CandidateID) -> Ordering { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_first` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `second` [INFO] [stdout] --> src/election/voters/real_ordinal_voter.rs:46:53 [INFO] [stdout] | [INFO] [stdout] 46 | fn honest_preference(&self, first: CandidateID, second: CandidateID) -> Ordering { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_second` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `method` [INFO] [stdout] --> src/election/voters/real_cardinal_voter.rs:85:39 [INFO] [stdout] | [INFO] [stdout] 85 | fn cast_ordinal_ballot(&mut self, method: OrdinalEnum) -> &Vec { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_method` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `method_name` [INFO] [stdout] --> src/election/voters/real_cardinal_voter.rs:89:45 [INFO] [stdout] | [INFO] [stdout] 89 | fn cast_ordinal_equal_ballot(&mut self, method_name: &str) -> &Vec> { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_method_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `method` [INFO] [stdout] --> src/election/voters/real_cardinal_voter.rs:93:54 [INFO] [stdout] | [INFO] [stdout] 93 | fn cast_cardinal_ballot(&mut self, range: usize, method: CardinalEnum) -> &Vec { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_method` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `method` [INFO] [stdout] --> src/election/voters/real_cardinal_voter.rs:101:40 [INFO] [stdout] | [INFO] [stdout] 101 | fn cast_approval_ballot(&mut self, method: CardinalEnum) -> &Vec { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_method` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `first` [INFO] [stdout] --> src/election/voters/real_cardinal_voter.rs:109:33 [INFO] [stdout] | [INFO] [stdout] 109 | fn honest_preference(&self, first: CandidateID, second: CandidateID) -> Ordering { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_first` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `second` [INFO] [stdout] --> src/election/voters/real_cardinal_voter.rs:109:53 [INFO] [stdout] | [INFO] [stdout] 109 | fn honest_preference(&self, first: CandidateID, second: CandidateID) -> Ordering { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_second` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ElectionProfile` is never constructed [INFO] [stdout] --> src/election/election_profile.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct ElectionProfile [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_voters`, `num_voters`, `get_candidates`, `num_candidates`, and `get_tie_breaker` are never used [INFO] [stdout] --> src/election/election_profile.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 23 | impl Ordering + Copy> ElectionProfile { [INFO] [stdout] | ------------------------------------------------------------------------------ methods in this implementation [INFO] [stdout] 24 | /// Get a mut reference to the vec of voters [INFO] [stdout] 25 | pub fn get_voters(&mut self) -> &mut Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn num_voters(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn get_candidates(&self) -> &Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn num_candidates(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn get_tie_breaker(&self) -> F { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `score_driver` is never used [INFO] [stdout] --> src/election/election_methods.rs:344:4 [INFO] [stdout] | [INFO] [stdout] 344 | fn score_driver Ordering + Copy>( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `approval_driver` is never used [INFO] [stdout] --> src/election/election_methods.rs:369:4 [INFO] [stdout] | [INFO] [stdout] 369 | fn approval_driver Ordering + Copy>( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `star_driver` is never used [INFO] [stdout] --> src/election/election_methods.rs:417:4 [INFO] [stdout] | [INFO] [stdout] 417 | fn star_driver Ordering + Copy>( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_locations` is never used [INFO] [stdout] --> src/election/models/spatial_model.rs:15:4 [INFO] [stdout] | [INFO] [stdout] 15 | fn generate_locations + Copy>( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Function` and `Preset` are never constructed [INFO] [stdout] --> src/election/voters/voters.rs:65:5 [INFO] [stdout] | [INFO] [stdout] 63 | pub enum ApprovalThresholdBehavior { [INFO] [stdout] | ------------------------- variants in this enum [INFO] [stdout] 64 | /// Set by closure for custom behavior [INFO] [stdout] 65 | Function(Box) -> f64>), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | Preset(f64), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `scales` and `threshold_behavior` are never read [INFO] [stdout] --> src/election/voters/honest_voter.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct HonestVoter { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 27 | scales: bool, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | threshold_behavior: ApprovalThresholdBehavior, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/election/voters/real_cardinal_voter.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 24 | impl RealCardinalVoter { [INFO] [stdout] | ---------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn new Ordering + Copy>( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `distance_utilities` is never used [INFO] [stdout] --> src/utility_generators.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn distance_utilities, &Vec) -> f64>( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `lp_metric` is never used [INFO] [stdout] --> src/metrics.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn lp_metric(location_1: &Vec, location_2: &Vec) -> f64 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 10.76s [INFO] [stdout] warning: 32 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "7da612ae9b28a3aaa37b1065ddb5133f1fa483678b890833caa9e0be0013aeaf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7da612ae9b28a3aaa37b1065ddb5133f1fa483678b890833caa9e0be0013aeaf", kill_on_drop: false }` [INFO] [stdout] 7da612ae9b28a3aaa37b1065ddb5133f1fa483678b890833caa9e0be0013aeaf [INFO] checking smathog/EMSim against try#09fa13185567a1d9c37905d6a4a2ea56e7f44efc for pr-126090-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsmathog%2FEMSim" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/smathog/EMSim on toolchain 09fa13185567a1d9c37905d6a4a2ea56e7f44efc [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+09fa13185567a1d9c37905d6a4a2ea56e7f44efc" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/smathog/EMSim [INFO] finished tweaking git repo https://github.com/smathog/EMSim [INFO] tweaked toml for git repo https://github.com/smathog/EMSim written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/smathog/EMSim 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" "+09fa13185567a1d9c37905d6a4a2ea56e7f44efc" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+09fa13185567a1d9c37905d6a4a2ea56e7f44efc" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3831bb0359a116ffbbd0aaff55463f1c7db173de092481e60c034c877e090321 [INFO] running `Command { std: "docker" "start" "-a" "3831bb0359a116ffbbd0aaff55463f1c7db173de092481e60c034c877e090321", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3831bb0359a116ffbbd0aaff55463f1c7db173de092481e60c034c877e090321", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3831bb0359a116ffbbd0aaff55463f1c7db173de092481e60c034c877e090321", kill_on_drop: false }` [INFO] [stdout] 3831bb0359a116ffbbd0aaff55463f1c7db173de092481e60c034c877e090321 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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" "-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:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+09fa13185567a1d9c37905d6a4a2ea56e7f44efc" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 92cff12b645335e6ccb48d3b3aa5ff1b3a925ba31b2fcce5c5e1ce557f037391 [INFO] running `Command { std: "docker" "start" "-a" "92cff12b645335e6ccb48d3b3aa5ff1b3a925ba31b2fcce5c5e1ce557f037391", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.126 [INFO] [stderr] Compiling proc-macro2 v1.0.39 [INFO] [stderr] Compiling unicode-ident v1.0.0 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling syn v1.0.96 [INFO] [stderr] Compiling libm v0.2.2 [INFO] [stderr] Checking ppv-lite86 v0.2.16 [INFO] [stderr] Compiling once_cell v1.12.0 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling quote v1.0.18 [INFO] [stderr] Checking getrandom v0.2.7 [INFO] [stderr] Checking rand_core v0.6.3 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking rand_distr v0.4.3 [INFO] [stderr] Compiling enum_dispatch v0.3.8 [INFO] [stderr] Compiling invoke_impl v0.1.1 [INFO] [stderr] Checking EMSim v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `honest_voter::*` [INFO] [stdout] --> src/election/voters/mod.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub use honest_voter::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `real_ordinal_voter::RealOrdinalVoter` [INFO] [stdout] --> src/election/voters/mod.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub use real_ordinal_voter::RealOrdinalVoter; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `election_profile::ElectionProfile` [INFO] [stdout] --> src/election/mod.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub use election_profile::ElectionProfile; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `real_ordinal_voter::RealOrdinalVoter` [INFO] [stdout] --> src/election/voters/mod.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub use real_ordinal_voter::RealOrdinalVoter; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `election_profile::ElectionProfile` [INFO] [stdout] --> src/election/mod.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub use election_profile::ElectionProfile; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `first_index` [INFO] [stdout] --> src/election/election_methods.rs:446:22 [INFO] [stdout] | [INFO] [stdout] 446 | let (CandidateID(first_index), CandidateID(second_index)) = (candidates[0], candidates[1]); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_first_index` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `second_index` [INFO] [stdout] --> src/election/election_methods.rs:446:48 [INFO] [stdout] | [INFO] [stdout] 446 | let (CandidateID(first_index), CandidateID(second_index)) = (candidates[0], candidates[1]); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_second_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `method` [INFO] [stdout] --> src/election/voters/honest_voter.rs:149:39 [INFO] [stdout] | [INFO] [stdout] 149 | fn cast_ordinal_ballot(&mut self, method: OrdinalEnum) -> &Vec { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_method` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `method_name` [INFO] [stdout] --> src/election/voters/honest_voter.rs:154:45 [INFO] [stdout] | [INFO] [stdout] 154 | fn cast_ordinal_equal_ballot(&mut self, method_name: &str) -> &Vec> { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_method_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `method` [INFO] [stdout] --> src/election/voters/honest_voter.rs:160:54 [INFO] [stdout] | [INFO] [stdout] 160 | fn cast_cardinal_ballot(&mut self, range: usize, method: CardinalEnum) -> &Vec { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_method` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `method` [INFO] [stdout] --> src/election/voters/honest_voter.rs:168:40 [INFO] [stdout] | [INFO] [stdout] 168 | fn cast_approval_ballot(&mut self, method: CardinalEnum) -> &Vec { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_method` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `method` [INFO] [stdout] --> src/election/voters/real_ordinal_voter.rs:30:39 [INFO] [stdout] | [INFO] [stdout] 30 | fn cast_ordinal_ballot(&mut self, method: OrdinalEnum) -> &Vec { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_method` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `method_name` [INFO] [stdout] --> src/election/voters/real_ordinal_voter.rs:34:45 [INFO] [stdout] | [INFO] [stdout] 34 | fn cast_ordinal_equal_ballot(&mut self, method_name: &str) -> &Vec> { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_method_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `range` [INFO] [stdout] --> src/election/voters/real_ordinal_voter.rs:38:40 [INFO] [stdout] | [INFO] [stdout] 38 | fn cast_cardinal_ballot(&mut self, range: usize, method: CardinalEnum) -> &Vec { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_range` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `method` [INFO] [stdout] --> src/election/voters/real_ordinal_voter.rs:38:54 [INFO] [stdout] | [INFO] [stdout] 38 | fn cast_cardinal_ballot(&mut self, range: usize, method: CardinalEnum) -> &Vec { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_method` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `method` [INFO] [stdout] --> src/election/voters/real_ordinal_voter.rs:42:40 [INFO] [stdout] | [INFO] [stdout] 42 | fn cast_approval_ballot(&mut self, method: CardinalEnum) -> &Vec { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_method` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `first` [INFO] [stdout] --> src/election/voters/real_ordinal_voter.rs:46:33 [INFO] [stdout] | [INFO] [stdout] 46 | fn honest_preference(&self, first: CandidateID, second: CandidateID) -> Ordering { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_first` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `second` [INFO] [stdout] --> src/election/voters/real_ordinal_voter.rs:46:53 [INFO] [stdout] | [INFO] [stdout] 46 | fn honest_preference(&self, first: CandidateID, second: CandidateID) -> Ordering { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_second` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `method` [INFO] [stdout] --> src/election/voters/real_cardinal_voter.rs:85:39 [INFO] [stdout] | [INFO] [stdout] 85 | fn cast_ordinal_ballot(&mut self, method: OrdinalEnum) -> &Vec { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_method` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `method_name` [INFO] [stdout] --> src/election/voters/real_cardinal_voter.rs:89:45 [INFO] [stdout] | [INFO] [stdout] 89 | fn cast_ordinal_equal_ballot(&mut self, method_name: &str) -> &Vec> { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_method_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `method` [INFO] [stdout] --> src/election/voters/real_cardinal_voter.rs:93:54 [INFO] [stdout] | [INFO] [stdout] 93 | fn cast_cardinal_ballot(&mut self, range: usize, method: CardinalEnum) -> &Vec { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_method` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `method` [INFO] [stdout] --> src/election/voters/real_cardinal_voter.rs:101:40 [INFO] [stdout] | [INFO] [stdout] 101 | fn cast_approval_ballot(&mut self, method: CardinalEnum) -> &Vec { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_method` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `first` [INFO] [stdout] --> src/election/voters/real_cardinal_voter.rs:109:33 [INFO] [stdout] | [INFO] [stdout] 109 | fn honest_preference(&self, first: CandidateID, second: CandidateID) -> Ordering { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_first` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `second` [INFO] [stdout] --> src/election/voters/real_cardinal_voter.rs:109:53 [INFO] [stdout] | [INFO] [stdout] 109 | fn honest_preference(&self, first: CandidateID, second: CandidateID) -> Ordering { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_second` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ElectionProfile` is never constructed [INFO] [stdout] --> src/election/election_profile.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct ElectionProfile [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_voters`, `num_voters`, `get_candidates`, `num_candidates`, and `get_tie_breaker` are never used [INFO] [stdout] --> src/election/election_profile.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 23 | impl Ordering + Copy> ElectionProfile { [INFO] [stdout] | ------------------------------------------------------------------------------ methods in this implementation [INFO] [stdout] 24 | /// Get a mut reference to the vec of voters [INFO] [stdout] 25 | pub fn get_voters(&mut self) -> &mut Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn num_voters(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn get_candidates(&self) -> &Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn num_candidates(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn get_tie_breaker(&self) -> F { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `plurality_driver` is never used [INFO] [stdout] --> src/election/election_methods.rs:323:4 [INFO] [stdout] | [INFO] [stdout] 323 | fn plurality_driver Ordering + Copy>( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `first_index` [INFO] [stdout] --> src/election/election_methods.rs:446:22 [INFO] [stdout] | [INFO] [stdout] 446 | let (CandidateID(first_index), CandidateID(second_index)) = (candidates[0], candidates[1]); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_first_index` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `second_index` [INFO] [stdout] --> src/election/election_methods.rs:446:48 [INFO] [stdout] | [INFO] [stdout] 446 | let (CandidateID(first_index), CandidateID(second_index)) = (candidates[0], candidates[1]); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_second_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `score_driver` is never used [INFO] [stdout] --> src/election/election_methods.rs:344:4 [INFO] [stdout] | [INFO] [stdout] 344 | fn score_driver Ordering + Copy>( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `approval_driver` is never used [INFO] [stdout] --> src/election/election_methods.rs:369:4 [INFO] [stdout] | [INFO] [stdout] 369 | fn approval_driver Ordering + Copy>( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `honest_runoff_driver` is never used [INFO] [stdout] --> src/election/election_methods.rs:390:4 [INFO] [stdout] | [INFO] [stdout] 390 | fn honest_runoff_driver Ordering + Copy>( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `star_driver` is never used [INFO] [stdout] --> src/election/election_methods.rs:417:4 [INFO] [stdout] | [INFO] [stdout] 417 | fn star_driver Ordering + Copy>( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_locations` is never used [INFO] [stdout] --> src/election/models/spatial_model.rs:15:4 [INFO] [stdout] | [INFO] [stdout] 15 | fn generate_locations + Copy>( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Function`, `Mean`, and `Preset` are never constructed [INFO] [stdout] --> src/election/voters/voters.rs:65:5 [INFO] [stdout] | [INFO] [stdout] 63 | pub enum ApprovalThresholdBehavior { [INFO] [stdout] | ------------------------- variants in this enum [INFO] [stdout] 64 | /// Set by closure for custom behavior [INFO] [stdout] 65 | Function(Box) -> f64>), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 66 | /// Set as greater than or equal to the mean of utilities [INFO] [stdout] 67 | Mean, [INFO] [stdout] | ^^^^ [INFO] [stdout] 68 | /// Set threshold directly [INFO] [stdout] 69 | Preset(f64), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `scales` and `threshold_behavior` are never read [INFO] [stdout] --> src/election/voters/honest_voter.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct HonestVoter { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 27 | scales: bool, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | threshold_behavior: ApprovalThresholdBehavior, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/election/voters/honest_voter.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 51 | impl HonestVoter { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 52 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/election/voters/real_ordinal_voter.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl RealOrdinalVoter { [INFO] [stdout] | --------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn new(ballot: Vec) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/election/voters/real_cardinal_voter.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 24 | impl RealCardinalVoter { [INFO] [stdout] | ---------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn new Ordering + Copy>( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `distance_utilities` is never used [INFO] [stdout] --> src/utility_generators.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn distance_utilities, &Vec) -> f64>( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `lp_metric` is never used [INFO] [stdout] --> src/metrics.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn lp_metric(location_1: &Vec, location_2: &Vec) -> f64 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_candidates` is never used [INFO] [stdout] --> src/utility_functions.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn generate_candidates(n: usize) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sort_candidates_by_vec` is never used [INFO] [stdout] --> src/utility_functions.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn sort_candidates_by_vec Ordering + Copy>( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `scale_utilities_linearly` is never used [INFO] [stdout] --> src/utility_functions.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn scale_utilities_linearly(utilities: &Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_approval_ballot` is never used [INFO] [stdout] --> src/utility_functions.rs:55:8 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn generate_approval_ballot(utilities: &Vec, bound: f64) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 41 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `method` [INFO] [stdout] --> src/election/voters/honest_voter.rs:149:39 [INFO] [stdout] | [INFO] [stdout] 149 | fn cast_ordinal_ballot(&mut self, method: OrdinalEnum) -> &Vec { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_method` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `method_name` [INFO] [stdout] --> src/election/voters/honest_voter.rs:154:45 [INFO] [stdout] | [INFO] [stdout] 154 | fn cast_ordinal_equal_ballot(&mut self, method_name: &str) -> &Vec> { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_method_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `method` [INFO] [stdout] --> src/election/voters/honest_voter.rs:160:54 [INFO] [stdout] | [INFO] [stdout] 160 | fn cast_cardinal_ballot(&mut self, range: usize, method: CardinalEnum) -> &Vec { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_method` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `method` [INFO] [stdout] --> src/election/voters/honest_voter.rs:168:40 [INFO] [stdout] | [INFO] [stdout] 168 | fn cast_approval_ballot(&mut self, method: CardinalEnum) -> &Vec { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_method` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `method` [INFO] [stdout] --> src/election/voters/real_ordinal_voter.rs:30:39 [INFO] [stdout] | [INFO] [stdout] 30 | fn cast_ordinal_ballot(&mut self, method: OrdinalEnum) -> &Vec { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_method` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `method_name` [INFO] [stdout] --> src/election/voters/real_ordinal_voter.rs:34:45 [INFO] [stdout] | [INFO] [stdout] 34 | fn cast_ordinal_equal_ballot(&mut self, method_name: &str) -> &Vec> { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_method_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `range` [INFO] [stdout] --> src/election/voters/real_ordinal_voter.rs:38:40 [INFO] [stdout] | [INFO] [stdout] 38 | fn cast_cardinal_ballot(&mut self, range: usize, method: CardinalEnum) -> &Vec { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_range` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `method` [INFO] [stdout] --> src/election/voters/real_ordinal_voter.rs:38:54 [INFO] [stdout] | [INFO] [stdout] 38 | fn cast_cardinal_ballot(&mut self, range: usize, method: CardinalEnum) -> &Vec { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_method` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `method` [INFO] [stdout] --> src/election/voters/real_ordinal_voter.rs:42:40 [INFO] [stdout] | [INFO] [stdout] 42 | fn cast_approval_ballot(&mut self, method: CardinalEnum) -> &Vec { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_method` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `first` [INFO] [stdout] --> src/election/voters/real_ordinal_voter.rs:46:33 [INFO] [stdout] | [INFO] [stdout] 46 | fn honest_preference(&self, first: CandidateID, second: CandidateID) -> Ordering { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_first` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `second` [INFO] [stdout] --> src/election/voters/real_ordinal_voter.rs:46:53 [INFO] [stdout] | [INFO] [stdout] 46 | fn honest_preference(&self, first: CandidateID, second: CandidateID) -> Ordering { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_second` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `method` [INFO] [stdout] --> src/election/voters/real_cardinal_voter.rs:85:39 [INFO] [stdout] | [INFO] [stdout] 85 | fn cast_ordinal_ballot(&mut self, method: OrdinalEnum) -> &Vec { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_method` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `method_name` [INFO] [stdout] --> src/election/voters/real_cardinal_voter.rs:89:45 [INFO] [stdout] | [INFO] [stdout] 89 | fn cast_ordinal_equal_ballot(&mut self, method_name: &str) -> &Vec> { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_method_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `method` [INFO] [stdout] --> src/election/voters/real_cardinal_voter.rs:93:54 [INFO] [stdout] | [INFO] [stdout] 93 | fn cast_cardinal_ballot(&mut self, range: usize, method: CardinalEnum) -> &Vec { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_method` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `method` [INFO] [stdout] --> src/election/voters/real_cardinal_voter.rs:101:40 [INFO] [stdout] | [INFO] [stdout] 101 | fn cast_approval_ballot(&mut self, method: CardinalEnum) -> &Vec { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_method` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `first` [INFO] [stdout] --> src/election/voters/real_cardinal_voter.rs:109:33 [INFO] [stdout] | [INFO] [stdout] 109 | fn honest_preference(&self, first: CandidateID, second: CandidateID) -> Ordering { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_first` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `second` [INFO] [stdout] --> src/election/voters/real_cardinal_voter.rs:109:53 [INFO] [stdout] | [INFO] [stdout] 109 | fn honest_preference(&self, first: CandidateID, second: CandidateID) -> Ordering { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_second` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ElectionProfile` is never constructed [INFO] [stdout] --> src/election/election_profile.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct ElectionProfile [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_voters`, `num_voters`, `get_candidates`, `num_candidates`, and `get_tie_breaker` are never used [INFO] [stdout] --> src/election/election_profile.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 23 | impl Ordering + Copy> ElectionProfile { [INFO] [stdout] | ------------------------------------------------------------------------------ methods in this implementation [INFO] [stdout] 24 | /// Get a mut reference to the vec of voters [INFO] [stdout] 25 | pub fn get_voters(&mut self) -> &mut Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn num_voters(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn get_candidates(&self) -> &Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn num_candidates(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn get_tie_breaker(&self) -> F { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `score_driver` is never used [INFO] [stdout] --> src/election/election_methods.rs:344:4 [INFO] [stdout] | [INFO] [stdout] 344 | fn score_driver Ordering + Copy>( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `approval_driver` is never used [INFO] [stdout] --> src/election/election_methods.rs:369:4 [INFO] [stdout] | [INFO] [stdout] 369 | fn approval_driver Ordering + Copy>( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `star_driver` is never used [INFO] [stdout] --> src/election/election_methods.rs:417:4 [INFO] [stdout] | [INFO] [stdout] 417 | fn star_driver Ordering + Copy>( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_locations` is never used [INFO] [stdout] --> src/election/models/spatial_model.rs:15:4 [INFO] [stdout] | [INFO] [stdout] 15 | fn generate_locations + Copy>( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Function` and `Preset` are never constructed [INFO] [stdout] --> src/election/voters/voters.rs:65:5 [INFO] [stdout] | [INFO] [stdout] 63 | pub enum ApprovalThresholdBehavior { [INFO] [stdout] | ------------------------- variants in this enum [INFO] [stdout] 64 | /// Set by closure for custom behavior [INFO] [stdout] 65 | Function(Box) -> f64>), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | Preset(f64), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `scales` and `threshold_behavior` are never read [INFO] [stdout] --> src/election/voters/honest_voter.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct HonestVoter { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 27 | scales: bool, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | threshold_behavior: ApprovalThresholdBehavior, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/election/voters/real_cardinal_voter.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 24 | impl RealCardinalVoter { [INFO] [stdout] | ---------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn new Ordering + Copy>( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `distance_utilities` is never used [INFO] [stdout] --> src/utility_generators.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn distance_utilities, &Vec) -> f64>( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `lp_metric` is never used [INFO] [stdout] --> src/metrics.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn lp_metric(location_1: &Vec, location_2: &Vec) -> f64 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 32 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 6.98s [INFO] running `Command { std: "docker" "inspect" "92cff12b645335e6ccb48d3b3aa5ff1b3a925ba31b2fcce5c5e1ce557f037391", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "92cff12b645335e6ccb48d3b3aa5ff1b3a925ba31b2fcce5c5e1ce557f037391", kill_on_drop: false }` [INFO] [stdout] 92cff12b645335e6ccb48d3b3aa5ff1b3a925ba31b2fcce5c5e1ce557f037391