[INFO] cloning repository https://github.com/sardap/voting_systems [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/sardap/voting_systems" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsardap%2Fvoting_systems", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsardap%2Fvoting_systems'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 05e76348d12a7e6b2639206e5456eb9ed121d181 [INFO] testing sardap/voting_systems against master#caccb4d0368bd918ef6668af8e13834d07040417 for pr-146098-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsardap%2Fvoting_systems" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] removed /workspace/builds/worker-3-tc1/source/rust-toolchain [INFO] started tweaking git repo https://github.com/sardap/voting_systems [INFO] finished tweaking git repo https://github.com/sardap/voting_systems [INFO] tweaked toml for git repo https://github.com/sardap/voting_systems written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/sardap/voting_systems on toolchain caccb4d0368bd918ef6668af8e13834d07040417 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/sardap/voting_systems 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" "+caccb4d0368bd918ef6668af8e13834d07040417" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded kv v0.24.0 [INFO] [stderr] Downloaded validator_derive v0.16.0 [INFO] [stderr] Downloaded syn v2.0.74 [INFO] [stderr] Downloaded dsl_auto_type v0.1.2 [INFO] [stderr] Downloaded actix-server v2.5.0 [INFO] [stderr] Downloaded actix-http v3.9.0 [INFO] [stderr] Downloaded zstd-safe v7.2.1 [INFO] [stderr] Downloaded bigdecimal v0.4.5 [INFO] [stderr] Downloaded cc v1.1.12 [INFO] [stderr] Downloaded flate2 v1.0.31 [INFO] [stderr] Downloaded object v0.36.3 [INFO] [stderr] Downloaded actix-web v4.9.0 [INFO] [stderr] Downloaded diesel_derives v2.2.2 [INFO] [stderr] Downloaded enum-primitive-derive v0.2.2 [INFO] [stderr] Downloaded env_logger v0.11.5 [INFO] [stderr] Downloaded indexmap v2.4.0 [INFO] [stderr] Downloaded serde_valid_literal v1.0.5 [INFO] [stderr] Downloaded serde_json v1.0.125 [INFO] [stderr] Downloaded serde v1.0.207 [INFO] [stderr] Downloaded actix-web-validator v5.0.1 [INFO] [stderr] Downloaded sled v0.34.7 [INFO] [stderr] Downloaded r2d2 v0.8.10 [INFO] [stderr] Downloaded serde_valid_derive v1.0.5 [INFO] [stderr] Downloaded scheduled-thread-pool v0.2.7 [INFO] [stderr] Downloaded diesel_table_macro_syntax v0.2.0 [INFO] [stderr] Downloaded ipnetwork v0.20.0 [INFO] [stderr] Downloaded pq-sys v0.6.1 [INFO] [stderr] Downloaded rand_seeder v0.2.3 [INFO] [stderr] Downloaded validator v0.16.1 [INFO] [stderr] Downloaded serde_derive v1.0.207 [INFO] [stderr] Downloaded diesel v2.2.2 [INFO] [stderr] Downloaded env_filter v0.1.2 [INFO] [stderr] Downloaded serde_valid v1.0.5 [INFO] [stderr] Downloaded if_chain v1.0.2 [INFO] [stderr] Downloaded validator_types v0.16.0 [INFO] [stderr] Downloaded serde_qs v0.10.1 [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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1c8ba5ac0f8afa54823be57dfeceeb499dcca99f5571fa5759a780fd1f5352a2 [INFO] running `Command { std: "docker" "start" "-a" "1c8ba5ac0f8afa54823be57dfeceeb499dcca99f5571fa5759a780fd1f5352a2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1c8ba5ac0f8afa54823be57dfeceeb499dcca99f5571fa5759a780fd1f5352a2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1c8ba5ac0f8afa54823be57dfeceeb499dcca99f5571fa5759a780fd1f5352a2", kill_on_drop: false }` [INFO] [stdout] 1c8ba5ac0f8afa54823be57dfeceeb499dcca99f5571fa5759a780fd1f5352a2 [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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e29d831680713f51602dfa95e147882b21ac22883484dc1ef6b184f33f7873eb [INFO] running `Command { std: "docker" "start" "-a" "e29d831680713f51602dfa95e147882b21ac22883484dc1ef6b184f33f7873eb", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling serde v1.0.207 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Compiling log v0.4.22 [INFO] [stderr] Compiling bytes v1.7.1 [INFO] [stderr] Compiling futures-sink v0.3.30 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling jobserver v0.1.32 [INFO] [stderr] Compiling pkg-config v0.3.30 [INFO] [stderr] Compiling mio v1.0.2 [INFO] [stderr] Compiling futures-channel v0.3.30 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling cc v1.1.12 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling serde_json v1.0.125 [INFO] [stderr] Compiling syn v2.0.74 [INFO] [stderr] Compiling futures-io v0.3.30 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling tokio v1.39.2 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling local-waker v0.1.4 [INFO] [stderr] Compiling alloc-no-stdlib v2.0.4 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling zstd-safe v7.2.1 [INFO] [stderr] Compiling alloc-stdlib v0.2.2 [INFO] [stderr] Compiling time-macros v0.2.18 [INFO] [stderr] Compiling http v0.2.12 [INFO] [stderr] Compiling zstd-sys v2.0.13+zstd.1.5.6 [INFO] [stderr] Compiling bitflags v2.6.0 [INFO] [stderr] Compiling tracing-core v0.1.32 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling regex-lite v0.1.6 [INFO] [stderr] Compiling miniz_oxide v0.7.4 [INFO] [stderr] Compiling time v0.3.36 [INFO] [stderr] Compiling bytestring v1.3.1 [INFO] [stderr] Compiling tokio-util v0.7.11 [INFO] [stderr] Compiling actix-rt v2.10.0 [INFO] [stderr] Compiling brotli-decompressor v4.0.1 [INFO] [stderr] Compiling actix-utils v3.0.1 [INFO] [stderr] Compiling actix-service v2.0.2 [INFO] [stderr] Compiling cookie v0.16.2 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling unicase v2.7.0 [INFO] [stderr] Compiling convert_case v0.4.0 [INFO] [stderr] Compiling cpufeatures v0.2.13 [INFO] [stderr] Compiling darling_core v0.20.10 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling brotli v6.0.0 [INFO] [stderr] Compiling serde_derive v1.0.207 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling futures-macro v0.3.30 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Compiling actix-router v0.5.3 [INFO] [stderr] Compiling futures-util v0.3.30 [INFO] [stderr] Compiling thiserror-impl v1.0.63 [INFO] [stderr] Compiling ppv-lite86 v0.2.20 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Compiling derive_more v0.99.18 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling actix-codec v0.5.2 [INFO] [stderr] Compiling flate2 v1.0.31 [INFO] [stderr] Compiling local-channel v0.1.5 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling encoding_rs v0.8.34 [INFO] [stderr] Compiling parking_lot_core v0.8.6 [INFO] [stderr] Compiling language-tags v0.3.2 [INFO] [stderr] Compiling thiserror v1.0.63 [INFO] [stderr] Compiling darling_macro v0.20.10 [INFO] [stderr] Compiling actix-web-codegen v4.3.0 [INFO] [stderr] Compiling actix-macros v0.2.4 [INFO] [stderr] Compiling instant v0.1.13 [INFO] [stderr] Compiling libm v0.2.8 [INFO] [stderr] Compiling impl-more v0.1.6 [INFO] [stderr] Compiling rustversion v1.0.17 [INFO] [stderr] Compiling darling v0.20.10 [INFO] [stderr] Compiling actix-server v2.5.0 [INFO] [stderr] Compiling indexmap v2.4.0 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling futures-executor v0.3.30 [INFO] [stderr] Compiling mime_guess v2.0.5 [INFO] [stderr] Compiling h2 v0.3.26 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling validator_types v0.16.0 [INFO] [stderr] Compiling proc-macro-error-attr2 v2.0.0 [INFO] [stderr] Compiling bigdecimal v0.4.5 [INFO] [stderr] Compiling pq-sys v0.6.1 [INFO] [stderr] Compiling v_htmlescape v0.15.8 [INFO] [stderr] Compiling if_chain v1.0.2 [INFO] [stderr] Compiling anstyle-parse v0.2.5 [INFO] [stderr] Compiling dsl_auto_type v0.1.2 [INFO] [stderr] Compiling proc-macro-error2 v2.0.1 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling futures v0.3.30 [INFO] [stderr] Compiling uuid v1.10.0 [INFO] [stderr] Compiling parking_lot v0.11.2 [INFO] [stderr] Compiling itertools v0.13.0 [INFO] [stderr] Compiling diesel_table_macro_syntax v0.2.0 [INFO] [stderr] Compiling idna v0.4.0 [INFO] [stderr] Compiling scheduled-thread-pool v0.2.7 [INFO] [stderr] Compiling fs2 v0.4.3 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Compiling colorchoice v1.0.2 [INFO] [stderr] Compiling anstyle-query v1.1.1 [INFO] [stderr] Compiling iana-time-zone v0.1.60 [INFO] [stderr] Compiling anstyle v1.0.8 [INFO] [stderr] Compiling chrono v0.4.38 [INFO] [stderr] Compiling anstream v0.6.15 [INFO] [stderr] Compiling strum_macros v0.24.3 [INFO] [stderr] Compiling sled v0.34.7 [INFO] [stderr] Compiling serde_valid_derive v1.0.5 [INFO] [stderr] Compiling r2d2 v0.8.10 [INFO] [stderr] Compiling diesel_derives v2.2.2 [INFO] [stderr] Compiling validator_derive v0.16.0 [INFO] [stderr] Compiling zstd v0.13.2 [INFO] [stderr] Compiling actix-http v3.9.0 [INFO] [stderr] Compiling toml v0.5.11 [INFO] [stderr] Compiling ipnetwork v0.20.0 [INFO] [stderr] Compiling serde_valid_literal v1.0.5 [INFO] [stderr] Compiling env_filter v0.1.2 [INFO] [stderr] Compiling http-range v0.1.5 [INFO] [stderr] Compiling validator v0.16.1 [INFO] [stderr] Compiling humantime v2.1.0 [INFO] [stderr] Compiling serde_valid v1.0.5 [INFO] [stderr] Compiling env_logger v0.11.5 [INFO] [stderr] Compiling enum-primitive-derive v0.2.2 [INFO] [stderr] Compiling kv v0.24.0 [INFO] [stderr] Compiling strum v0.24.1 [INFO] [stderr] Compiling voting-systems v0.1.0 (/opt/rustwide/workdir/systems) [INFO] [stderr] Compiling rand_pcg v0.3.1 [INFO] [stdout] warning: unused import: `fmt::format` [INFO] [stdout] --> systems/src/quota_preferential_vic_labor_2024.rs:1:33 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::HashMap, fmt::format}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling rand_seeder v0.2.3 [INFO] [stderr] Compiling actix-web v4.9.0 [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> systems/src/quota_preferential_vic_labor_2024.rs:695:9 [INFO] [stdout] | [INFO] [stdout] 695 | let mut aa_round_sheets = vec![]; [INFO] [stdout] | ----^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> systems/src/quota_preferential_vic_labor_2024.rs:853:9 [INFO] [stdout] | [INFO] [stdout] 853 | let mut count_sheet_entry_runoffs: Vec = vec![]; [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling diesel v2.2.2 [INFO] [stderr] Compiling serde_qs v0.10.1 [INFO] [stderr] Compiling actix-files v0.6.6 [INFO] [stderr] Compiling actix-web-validator v5.0.1 [INFO] [stderr] Compiling voting-systems-site-backend v0.1.0 (/opt/rustwide/workdir/backend) [INFO] [stdout] warning: unused imports: `ExpressionMethods`, `OptionalExtension`, `QueryDsl`, and `RunQueryDsl` [INFO] [stdout] --> backend/src/quota_preferential_vic_labor_2024.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use diesel::{ExpressionMethods, OptionalExtension, QueryDsl, RunQueryDsl}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stdout] --> backend/src/quota_preferential_vic_labor_2024.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> backend/src/majority_judgment.rs:260:5 [INFO] [stdout] | [INFO] [stdout] 244 | / return MajorityJudgmentResult { [INFO] [stdout] 245 | | options: election.options.clone(), [INFO] [stdout] 246 | | winner: 0, [INFO] [stdout] 247 | | vote_count: 0, [INFO] [stdout] ... | [INFO] [stdout] 257 | | score_result: None, [INFO] [stdout] 258 | | }; [INFO] [stdout] | |_____- any code following this expression is unreachable [INFO] [stdout] 259 | [INFO] [stdout] 260 | let mut tally = Vec::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `votes` [INFO] [stdout] --> backend/src/majority_judgment.rs:242:5 [INFO] [stdout] | [INFO] [stdout] 242 | votes: &[MajorityJudgmentVote], [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_votes` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PublicElection` is never constructed [INFO] [stdout] --> backend/src/routes/api/preferential_voting.rs:73:12 [INFO] [stdout] | [INFO] [stdout] 73 | pub struct PublicElection { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CreatePreferentialVoteRequest` is never constructed [INFO] [stdout] --> backend/src/routes/api/single_transferable_vote.rs:128:8 [INFO] [stdout] | [INFO] [stdout] 128 | struct CreatePreferentialVoteRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2m 11s [INFO] running `Command { std: "docker" "inspect" "e29d831680713f51602dfa95e147882b21ac22883484dc1ef6b184f33f7873eb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e29d831680713f51602dfa95e147882b21ac22883484dc1ef6b184f33f7873eb", kill_on_drop: false }` [INFO] [stdout] e29d831680713f51602dfa95e147882b21ac22883484dc1ef6b184f33f7873eb [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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f03116bffed336d3ba1b1c83224398f844e611477ee1a00706403a604768a349 [INFO] running `Command { std: "docker" "start" "-a" "f03116bffed336d3ba1b1c83224398f844e611477ee1a00706403a604768a349", kill_on_drop: false }` [INFO] [stdout] warning: unused import: `fmt::format` [INFO] [stdout] --> systems/src/quota_preferential_vic_labor_2024.rs:1:33 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::HashMap, fmt::format}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling voting-systems-site-backend v0.1.0 (/opt/rustwide/workdir/backend) [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> systems/src/quota_preferential_vic_labor_2024.rs:695:9 [INFO] [stdout] | [INFO] [stdout] 695 | let mut aa_round_sheets = vec![]; [INFO] [stdout] | ----^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> systems/src/quota_preferential_vic_labor_2024.rs:853:9 [INFO] [stdout] | [INFO] [stdout] 853 | let mut count_sheet_entry_runoffs: Vec = vec![]; [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ExpressionMethods`, `OptionalExtension`, `QueryDsl`, and `RunQueryDsl` [INFO] [stdout] --> backend/src/quota_preferential_vic_labor_2024.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use diesel::{ExpressionMethods, OptionalExtension, QueryDsl, RunQueryDsl}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stdout] --> backend/src/quota_preferential_vic_labor_2024.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> backend/src/majority_judgment.rs:260:5 [INFO] [stdout] | [INFO] [stdout] 244 | / return MajorityJudgmentResult { [INFO] [stdout] 245 | | options: election.options.clone(), [INFO] [stdout] 246 | | winner: 0, [INFO] [stdout] 247 | | vote_count: 0, [INFO] [stdout] ... | [INFO] [stdout] 257 | | score_result: None, [INFO] [stdout] 258 | | }; [INFO] [stdout] | |_____- any code following this expression is unreachable [INFO] [stdout] 259 | [INFO] [stdout] 260 | let mut tally = Vec::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `votes` [INFO] [stdout] --> backend/src/majority_judgment.rs:242:5 [INFO] [stdout] | [INFO] [stdout] 242 | votes: &[MajorityJudgmentVote], [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_votes` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PublicElection` is never constructed [INFO] [stdout] --> backend/src/routes/api/preferential_voting.rs:73:12 [INFO] [stdout] | [INFO] [stdout] 73 | pub struct PublicElection { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CreatePreferentialVoteRequest` is never constructed [INFO] [stdout] --> backend/src/routes/api/single_transferable_vote.rs:128:8 [INFO] [stdout] | [INFO] [stdout] 128 | struct CreatePreferentialVoteRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 10.33s [INFO] running `Command { std: "docker" "inspect" "f03116bffed336d3ba1b1c83224398f844e611477ee1a00706403a604768a349", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f03116bffed336d3ba1b1c83224398f844e611477ee1a00706403a604768a349", kill_on_drop: false }` [INFO] [stdout] f03116bffed336d3ba1b1c83224398f844e611477ee1a00706403a604768a349 [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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] b19e34585da5108acc6a14f1413df199f3f2ed372919c1604bf77cbc46844fa1 [INFO] running `Command { std: "docker" "start" "-a" "b19e34585da5108acc6a14f1413df199f3f2ed372919c1604bf77cbc46844fa1", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `fmt::format` [INFO] [stderr] --> systems/src/quota_preferential_vic_labor_2024.rs:1:33 [INFO] [stderr] | [INFO] [stderr] 1 | use std::{collections::HashMap, fmt::format}; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> systems/src/quota_preferential_vic_labor_2024.rs:695:9 [INFO] [stderr] | [INFO] [stderr] 695 | let mut aa_round_sheets = vec![]; [INFO] [stderr] | ----^^^^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> systems/src/quota_preferential_vic_labor_2024.rs:853:9 [INFO] [stderr] | [INFO] [stderr] 853 | let mut count_sheet_entry_runoffs: Vec = vec![]; [INFO] [stderr] | ----^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: `voting-systems` (lib) generated 3 warnings (run `cargo fix --lib -p voting-systems` to apply 3 suggestions) [INFO] [stderr] warning: unused imports: `ExpressionMethods`, `OptionalExtension`, `QueryDsl`, and `RunQueryDsl` [INFO] [stderr] --> backend/src/quota_preferential_vic_labor_2024.rs:1:14 [INFO] [stderr] | [INFO] [stderr] 1 | use diesel::{ExpressionMethods, OptionalExtension, QueryDsl, RunQueryDsl}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^^^^^ ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stderr] --> backend/src/quota_preferential_vic_labor_2024.rs:2:13 [INFO] [stderr] | [INFO] [stderr] 2 | use serde::{Deserialize, Serialize}; [INFO] [stderr] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unreachable statement [INFO] [stderr] --> backend/src/majority_judgment.rs:260:5 [INFO] [stderr] | [INFO] [stderr] 244 | / return MajorityJudgmentResult { [INFO] [stderr] 245 | | options: election.options.clone(), [INFO] [stderr] 246 | | winner: 0, [INFO] [stderr] 247 | | vote_count: 0, [INFO] [stderr] ... | [INFO] [stderr] 257 | | score_result: None, [INFO] [stderr] 258 | | }; [INFO] [stderr] | |_____- any code following this expression is unreachable [INFO] [stderr] 259 | [INFO] [stderr] 260 | let mut tally = Vec::new(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `votes` [INFO] [stderr] --> backend/src/majority_judgment.rs:242:5 [INFO] [stderr] | [INFO] [stderr] 242 | votes: &[MajorityJudgmentVote], [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_votes` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: struct `PublicElection` is never constructed [INFO] [stderr] --> backend/src/routes/api/preferential_voting.rs:73:12 [INFO] [stderr] | [INFO] [stderr] 73 | pub struct PublicElection { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: struct `CreatePreferentialVoteRequest` is never constructed [INFO] [stderr] --> backend/src/routes/api/single_transferable_vote.rs:128:8 [INFO] [stderr] | [INFO] [stderr] 128 | struct CreatePreferentialVoteRequest { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `voting-systems-site-backend` (bin "voting-systems-site-backend" test) generated 6 warnings (run `cargo fix --bin "voting-systems-site-backend" --tests` to apply 2 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.27s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/voting_systems_site_backend-a672a5277d67af94) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "b19e34585da5108acc6a14f1413df199f3f2ed372919c1604bf77cbc46844fa1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b19e34585da5108acc6a14f1413df199f3f2ed372919c1604bf77cbc46844fa1", kill_on_drop: false }` [INFO] [stdout] b19e34585da5108acc6a14f1413df199f3f2ed372919c1604bf77cbc46844fa1