[INFO] cloning repository https://github.com/olikr3/scf-pdp [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/olikr3/scf-pdp" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Folikr3%2Fscf-pdp", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Folikr3%2Fscf-pdp'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 446c18a30beda66bd440a736edd95a6daf9998d9 [INFO] checking olikr3/scf-pdp against try#93086cfebfccb79083c59d0d3b2052944bba643c for pr-146440-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Folikr3%2Fscf-pdp" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/olikr3/scf-pdp [INFO] finished tweaking git repo https://github.com/olikr3/scf-pdp [INFO] tweaked toml for git repo https://github.com/olikr3/scf-pdp written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/olikr3/scf-pdp on toolchain 93086cfebfccb79083c59d0d3b2052944bba643c [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+93086cfebfccb79083c59d0d3b2052944bba643c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/olikr3/scf-pdp 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" "+93086cfebfccb79083c59d0d3b2052944bba643c" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+93086cfebfccb79083c59d0d3b2052944bba643c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2ed1036db441448dfb36cc26e9a8aeb58ed1d57e44471982a667304d76da2320 [INFO] running `Command { std: "docker" "start" "-a" "2ed1036db441448dfb36cc26e9a8aeb58ed1d57e44471982a667304d76da2320", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2ed1036db441448dfb36cc26e9a8aeb58ed1d57e44471982a667304d76da2320", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2ed1036db441448dfb36cc26e9a8aeb58ed1d57e44471982a667304d76da2320", kill_on_drop: false }` [INFO] [stdout] 2ed1036db441448dfb36cc26e9a8aeb58ed1d57e44471982a667304d76da2320 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+93086cfebfccb79083c59d0d3b2052944bba643c" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 99014346f7cc5847b3638fc18f7e13ebd31f5d7f58a13d02c83a1158bb9cf9ff [INFO] running `Command { std: "docker" "start" "-a" "99014346f7cc5847b3638fc18f7e13ebd31f5d7f58a13d02c83a1158bb9cf9ff", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.177 [INFO] [stderr] Compiling zerocopy v0.8.27 [INFO] [stderr] Checking getrandom v0.2.16 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking ppv-lite86 v0.2.21 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking scf-pdp v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/deterministic.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::HashMap; [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 import: `Solver` [INFO] [stdout] --> src/beam_search.rs:2:33 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::{Instance, Solution, Solver}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Instant` [INFO] [stdout] --> src/genetic.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::time::Instant; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Solution` [INFO] [stdout] --> src/ga_tuning.rs:1:23 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::{Instance, Solution, genetic::{GeneticAlgorithm, FairnessType}}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Solution` [INFO] [stdout] --> src/aco_tuning.rs:1:23 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::{Instance, Solution, AntColony, Solver}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/deterministic.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::HashMap; [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 import: `Solver` [INFO] [stdout] --> src/beam_search.rs:2:33 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::{Instance, Solution, Solver}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Instant` [INFO] [stdout] --> src/genetic.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::time::Instant; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Solution` [INFO] [stdout] --> src/ga_tuning.rs:1:23 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::{Instance, Solution, genetic::{GeneticAlgorithm, FairnessType}}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Solution` [INFO] [stdout] --> src/aco_tuning.rs:1:23 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::{Instance, Solution, AntColony, Solver}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rng` [INFO] [stdout] --> src/random.rs:81:9 [INFO] [stdout] | [INFO] [stdout] 81 | rng: &mut ThreadRng, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rng` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n_reqs` [INFO] [stdout] --> src/random.rs:84:13 [INFO] [stdout] | [INFO] [stdout] 84 | let n_reqs = self.instance.n_reqs(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_n_reqs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dist_matrix` [INFO] [stdout] --> src/beam_search.rs:105:60 [INFO] [stdout] | [INFO] [stdout] 105 | fn generate_successors(&self, state: &PartialSolution, dist_matrix: &[Vec]) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_dist_matrix` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dist_matrix` [INFO] [stdout] --> src/beam_search.rs:318:64 [INFO] [stdout] | [INFO] [stdout] 318 | fn best_complete_solution(&self, beam: &[PartialSolution], dist_matrix: &[Vec]) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_dist_matrix` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `vnd` [INFO] [stdout] --> src/grasp.rs:124:13 [INFO] [stdout] | [INFO] [stdout] 124 | let vnd = VND::new(self.instance, neighborhoods.clone()) [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_vnd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rng` [INFO] [stdout] --> src/random.rs:81:9 [INFO] [stdout] | [INFO] [stdout] 81 | rng: &mut ThreadRng, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rng` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n_reqs` [INFO] [stdout] --> src/random.rs:84:13 [INFO] [stdout] | [INFO] [stdout] 84 | let n_reqs = self.instance.n_reqs(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_n_reqs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dist_matrix` [INFO] [stdout] --> src/beam_search.rs:105:60 [INFO] [stdout] | [INFO] [stdout] 105 | fn generate_successors(&self, state: &PartialSolution, dist_matrix: &[Vec]) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_dist_matrix` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `weights` is never read [INFO] [stdout] --> src/aco.rs:192:31 [INFO] [stdout] | [INFO] [stdout] 192 | let mut weights = Vec::new(); [INFO] [stdout] | ^^^^^^^^^^ this value is reassigned later and never used [INFO] [stdout] ... [INFO] [stdout] 259 | weights = candidates.iter().map(|(_, w, _)| *w).collect(); [INFO] [stdout] | ------- `weights` is overwritten here before the previous value is read [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dist_matrix` [INFO] [stdout] --> src/beam_search.rs:318:64 [INFO] [stdout] | [INFO] [stdout] 318 | fn best_complete_solution(&self, beam: &[PartialSolution], dist_matrix: &[Vec]) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_dist_matrix` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: struct `PickupIndex` is never constructed [INFO] [stdout] --> src/instance.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct PickupIndex(usize); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `pub` struct has private fields, no public constructor, and is not otherwise reachable through the external API, so consider providing a public constructor or removing it [INFO] [stdout] = note: `#[deny(unused_unconstructable_pub_structs)]` (part of `#[deny(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: struct `DropoffIndex` is never constructed [INFO] [stdout] --> src/instance.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct DropoffIndex(usize); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `pub` struct has private fields, no public constructor, and is not otherwise reachable through the external API, so consider providing a public constructor or removing it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `objective` is never used [INFO] [stdout] --> src/genetic.rs:180:4 [INFO] [stdout] | [INFO] [stdout] 180 | fn objective(solution: &Solution, fairness: FairnessType) -> f64 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `alpha` is never read [INFO] [stdout] --> src/ga_tuning.rs:74:5 [INFO] [stdout] | [INFO] [stdout] 69 | pub struct SimpleRacing { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 74 | alpha: f64, // Significance level for statistical test [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `alpha` is never read [INFO] [stdout] --> src/aco_tuning.rs:102:5 [INFO] [stdout] | [INFO] [stdout] 97 | pub struct ACORacing { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 102 | alpha: f64, // Significance level for statistical test [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `vnd` [INFO] [stdout] --> src/grasp.rs:124:13 [INFO] [stdout] | [INFO] [stdout] 124 | let vnd = VND::new(self.instance, neighborhoods.clone()) [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_vnd` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `scf-pdp` (lib) due to 2 previous errors; 14 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: value assigned to `weights` is never read [INFO] [stdout] --> src/aco.rs:192:31 [INFO] [stdout] | [INFO] [stdout] 192 | let mut weights = Vec::new(); [INFO] [stdout] | ^^^^^^^^^^ this value is reassigned later and never used [INFO] [stdout] ... [INFO] [stdout] 259 | weights = candidates.iter().map(|(_, w, _)| *w).collect(); [INFO] [stdout] | ------- `weights` is overwritten here before the previous value is read [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: struct `PickupIndex` is never constructed [INFO] [stdout] --> src/instance.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct PickupIndex(usize); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `pub` struct has private fields, no public constructor, and is not otherwise reachable through the external API, so consider providing a public constructor or removing it [INFO] [stdout] = note: `#[deny(unused_unconstructable_pub_structs)]` (part of `#[deny(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: struct `DropoffIndex` is never constructed [INFO] [stdout] --> src/instance.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct DropoffIndex(usize); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `pub` struct has private fields, no public constructor, and is not otherwise reachable through the external API, so consider providing a public constructor or removing it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `objective` is never used [INFO] [stdout] --> src/genetic.rs:180:4 [INFO] [stdout] | [INFO] [stdout] 180 | fn objective(solution: &Solution, fairness: FairnessType) -> f64 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `alpha` is never read [INFO] [stdout] --> src/ga_tuning.rs:74:5 [INFO] [stdout] | [INFO] [stdout] 69 | pub struct SimpleRacing { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 74 | alpha: f64, // Significance level for statistical test [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `alpha` is never read [INFO] [stdout] --> src/aco_tuning.rs:102:5 [INFO] [stdout] | [INFO] [stdout] 97 | pub struct ACORacing { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 102 | alpha: f64, // Significance level for statistical test [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `scf-pdp` (lib test) due to 2 previous errors; 14 warnings emitted [INFO] running `Command { std: "docker" "inspect" "99014346f7cc5847b3638fc18f7e13ebd31f5d7f58a13d02c83a1158bb9cf9ff", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "99014346f7cc5847b3638fc18f7e13ebd31f5d7f58a13d02c83a1158bb9cf9ff", kill_on_drop: false }` [INFO] [stdout] 99014346f7cc5847b3638fc18f7e13ebd31f5d7f58a13d02c83a1158bb9cf9ff