[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] testing smathog/EMSim against beta-2025-04-13 for beta-1.87-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsmathog%2FEMSim" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/smathog/EMSim on toolchain beta-2025-04-13 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+beta-2025-04-13" "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-0-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" "+beta-2025-04-13" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2025-04-13" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f2241b26781bd4025479824ad60fa7c9cc158b484a32b677ae5006c1e701df5f [INFO] running `Command { std: "docker" "start" "-a" "f2241b26781bd4025479824ad60fa7c9cc158b484a32b677ae5006c1e701df5f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f2241b26781bd4025479824ad60fa7c9cc158b484a32b677ae5006c1e701df5f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f2241b26781bd4025479824ad60fa7c9cc158b484a32b677ae5006c1e701df5f", kill_on_drop: false }` [INFO] [stdout] f2241b26781bd4025479824ad60fa7c9cc158b484a32b677ae5006c1e701df5f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2025-04-13" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d8fe4f64cbf10e4674855b179848c29bceebe3acbdfe269a5ffbf328fe91065b [INFO] running `Command { std: "docker" "start" "-a" "d8fe4f64cbf10e4674855b179848c29bceebe3acbdfe269a5ffbf328fe91065b", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.126 [INFO] [stderr] Compiling proc-macro2 v1.0.39 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling unicode-ident v1.0.0 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling libm v0.2.2 [INFO] [stderr] Compiling syn v1.0.96 [INFO] [stderr] Compiling 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] Compiling getrandom v0.2.7 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling rand_distr v0.4.3 [INFO] [stderr] Compiling enum_dispatch v0.3.8 [INFO] [stderr] Compiling invoke_impl v0.1.1 [INFO] [stderr] Compiling 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 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] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 8.92s [INFO] running `Command { std: "docker" "inspect" "d8fe4f64cbf10e4674855b179848c29bceebe3acbdfe269a5ffbf328fe91065b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d8fe4f64cbf10e4674855b179848c29bceebe3acbdfe269a5ffbf328fe91065b", kill_on_drop: false }` [INFO] [stdout] d8fe4f64cbf10e4674855b179848c29bceebe3acbdfe269a5ffbf328fe91065b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2025-04-13" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3d2b1a86903efe34e926ea80c8042ad9ecf44b6fc4449d1c4f2fa65ee686fce7 [INFO] running `Command { std: "docker" "start" "-a" "3d2b1a86903efe34e926ea80c8042ad9ecf44b6fc4449d1c4f2fa65ee686fce7", kill_on_drop: false }` [INFO] [stderr] Compiling EMSim v0.1.0 (/opt/rustwide/workdir) [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 `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] rustc-LLVM ERROR: IO failure on output stream: No space left on device [INFO] [stderr] error: could not compile `EMSim` (bin "EMSim" test); 32 warnings emitted [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `/opt/rustwide/rustup-home/toolchains/beta-2025-04-13-x86_64-unknown-linux-gnu/bin/rustc --crate-name EMSim --edition=2021 src/main.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 --test --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values())' -C metadata=1a85fa7df7d07ac4 -C extra-filename=-1feb167f4ea36f3c --out-dir /opt/rustwide/target/debug/deps -L dependency=/opt/rustwide/target/debug/deps --extern enum_dispatch=/opt/rustwide/target/debug/deps/libenum_dispatch-d4ee371c95a00593.so --extern invoke_impl=/opt/rustwide/target/debug/deps/libinvoke_impl-9e82a14c11e1211a.so --extern rand=/opt/rustwide/target/debug/deps/librand-8daa0f71f237517b.rlib --extern rand_distr=/opt/rustwide/target/debug/deps/librand_distr-2e3cee04be96c527.rlib --cap-lints=warn` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "3d2b1a86903efe34e926ea80c8042ad9ecf44b6fc4449d1c4f2fa65ee686fce7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3d2b1a86903efe34e926ea80c8042ad9ecf44b6fc4449d1c4f2fa65ee686fce7", kill_on_drop: false }` [INFO] [stdout] 3d2b1a86903efe34e926ea80c8042ad9ecf44b6fc4449d1c4f2fa65ee686fce7