[INFO] cloning repository https://github.com/NoeFaucher/nsga-III-with-Riesz-S-energy [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/NoeFaucher/nsga-III-with-Riesz-S-energy" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNoeFaucher%2Fnsga-III-with-Riesz-S-energy", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNoeFaucher%2Fnsga-III-with-Riesz-S-energy'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 6da403182896bd54dbe2c190e05361c9c7432c1d [INFO] checking NoeFaucher/nsga-III-with-Riesz-S-energy against master#dc375db7d8df0aa450e622c529147c95eee756f5 for pr-156749 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNoeFaucher%2Fnsga-III-with-Riesz-S-energy" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/NoeFaucher/nsga-III-with-Riesz-S-energy [INFO] finished tweaking git repo https://github.com/NoeFaucher/nsga-III-with-Riesz-S-energy [INFO] tweaked toml for git repo https://github.com/NoeFaucher/nsga-III-with-Riesz-S-energy written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/NoeFaucher/nsga-III-with-Riesz-S-energy on toolchain dc375db7d8df0aa450e622c529147c95eee756f5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+dc375db7d8df0aa450e622c529147c95eee756f5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/NoeFaucher/nsga-III-with-Riesz-S-energy 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" "+dc375db7d8df0aa450e622c529147c95eee756f5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded unicode-ident v1.0.15 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3e793bdf10248eb2ddbd6b0faebed8155c11b4589982e2893733958d93e8d540" "sleep" "infinity", kill_on_drop: false }` [INFO] [stdout] 2c4fb9b5f587c410a3a1593ddcbc14fd9668ae092e6b8df37fba39efabbf891a [INFO] running `Command { std: "docker" "start" "2c4fb9b5f587c410a3a1593ddcbc14fd9668ae092e6b8df37fba39efabbf891a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "2c4fb9b5f587c410a3a1593ddcbc14fd9668ae092e6b8df37fba39efabbf891a" "/opt/rustwide/cargo-home/bin/cargo" "+dc375db7d8df0aa450e622c529147c95eee756f5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2c4fb9b5f587c410a3a1593ddcbc14fd9668ae092e6b8df37fba39efabbf891a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-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" "-w" "/opt/rustwide/workdir" "--user" "0:0" "2c4fb9b5f587c410a3a1593ddcbc14fd9668ae092e6b8df37fba39efabbf891a" "/opt/rustwide/cargo-home/bin/cargo" "+dc375db7d8df0aa450e622c529147c95eee756f5" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] Compiling unicode-ident v1.0.15 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling libc v0.2.169 [INFO] [stderr] Checking bytemuck v1.21.0 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Compiling proc-macro2 v1.0.93 [INFO] [stderr] Checking safe_arch v0.7.4 [INFO] [stderr] Checking wide v0.7.32 [INFO] [stderr] Compiling quote v1.0.38 [INFO] [stderr] Compiling syn v2.0.96 [INFO] [stderr] Checking num-complex v0.4.6 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking approx v0.5.1 [INFO] [stderr] Checking num-rational v0.4.2 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking simba v0.9.0 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling nalgebra-macros v0.2.2 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Checking ppv-lite86 v0.2.20 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking nalgebra v0.33.2 [INFO] [stderr] Checking nsga3 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `ptr` [INFO] [stdout] --> src/nsga3.rs:1:36 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::LinkedList, ptr, rc::Rc}; [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: `self` [INFO] [stdout] --> src/nsga3.rs:5:22 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::problem::{self, Point, Problem}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `nalgebra::min` [INFO] [stdout] --> src/ref_point_generator.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use nalgebra::min; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::random` [INFO] [stdout] --> src/ref_point_generator.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use rand::random; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Point` and `Problem` [INFO] [stdout] --> src/ref_point_generator.rs:4:22 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::problem::{Point, Problem}; [INFO] [stdout] | ^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::LinkedList` [INFO] [stdout] --> src/ref_point_generator.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::collections::LinkedList; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BufWriter` [INFO] [stdout] --> src/main.rs:8:28 [INFO] [stdout] | [INFO] [stdout] 8 | use std::io::{self, Write, BufWriter}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `dtzl2::DTZL2`, `dtzl3::DTZL3`, `dtzl6::DTZL6`, and `dtzl7::DTZL7` [INFO] [stdout] --> src/main.rs:12:29 [INFO] [stdout] | [INFO] [stdout] 12 | use problem::{dtzl1::DTZL1, dtzl2::DTZL2, dtzl3::DTZL3, dtzl6::DTZL6, dtzl7::DTZL7, Point}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Nsga3` and `non_dominated_sort` [INFO] [stdout] --> src/main.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 13 | use nsga3::{Nsga3, non_dominated_sort}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ptr` [INFO] [stdout] --> src/nsga3.rs:1:36 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::LinkedList, ptr, rc::Rc}; [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: `self` [INFO] [stdout] --> src/nsga3.rs:5:22 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::problem::{self, Point, Problem}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `nalgebra::min` [INFO] [stdout] --> src/ref_point_generator.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use nalgebra::min; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::random` [INFO] [stdout] --> src/ref_point_generator.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use rand::random; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Point` and `Problem` [INFO] [stdout] --> src/ref_point_generator.rs:4:22 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::problem::{Point, Problem}; [INFO] [stdout] | ^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::LinkedList` [INFO] [stdout] --> src/ref_point_generator.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::collections::LinkedList; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BufWriter` [INFO] [stdout] --> src/main.rs:8:28 [INFO] [stdout] | [INFO] [stdout] 8 | use std::io::{self, Write, BufWriter}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `dtzl2::DTZL2`, `dtzl3::DTZL3`, `dtzl6::DTZL6`, and `dtzl7::DTZL7` [INFO] [stdout] --> src/main.rs:12:29 [INFO] [stdout] | [INFO] [stdout] 12 | use problem::{dtzl1::DTZL1, dtzl2::DTZL2, dtzl3::DTZL3, dtzl6::DTZL6, dtzl7::DTZL7, Point}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Nsga3` and `non_dominated_sort` [INFO] [stdout] --> src/main.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 13 | use nsga3::{Nsga3, non_dominated_sort}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `fronts` is never read [INFO] [stdout] --> src/nsga3.rs:37:53 [INFO] [stdout] | [INFO] [stdout] 37 | let mut fronts: Vec>> = Vec::new(); [INFO] [stdout] | ^^^^^^^^^^ this value is reassigned later and never used [INFO] [stdout] ... [INFO] [stdout] 42 | fronts = non_dominated_sort(everyone); [INFO] [stdout] | ------ `fronts` 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: `fronts` [INFO] [stdout] --> src/nsga3.rs:160:34 [INFO] [stdout] | [INFO] [stdout] 160 | fn non_dominated_sort(&self, fronts: &mut Vec>>, pop: LinkedList>) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_fronts` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pop` [INFO] [stdout] --> src/nsga3.rs:160:74 [INFO] [stdout] | [INFO] [stdout] 160 | fn non_dominated_sort(&self, fronts: &mut Vec>>, pop: LinkedList>) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_pop` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/nsga3.rs:165:13 [INFO] [stdout] | [INFO] [stdout] 165 | let mut rng = rand::thread_rng(); [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: unused variable: `rng` [INFO] [stdout] --> src/nsga3.rs:165:13 [INFO] [stdout] | [INFO] [stdout] 165 | let mut rng = rand::thread_rng(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rng` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `distances` [INFO] [stdout] --> src/nsga3.rs:292:52 [INFO] [stdout] | [INFO] [stdout] 292 | ...sociated: &Vec, distances: &Vec, associated_last_front: &Vec, distances_last_front: &Vec, missing: usize... [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_distances` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `fronts` is never read [INFO] [stdout] --> src/nsga3.rs:37:53 [INFO] [stdout] | [INFO] [stdout] 37 | let mut fronts: Vec>> = Vec::new(); [INFO] [stdout] | ^^^^^^^^^^ this value is reassigned later and never used [INFO] [stdout] ... [INFO] [stdout] 42 | fronts = non_dominated_sort(everyone); [INFO] [stdout] | ------ `fronts` 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: `distances_last_front` [INFO] [stdout] --> src/nsga3.rs:292:110 [INFO] [stdout] | [INFO] [stdout] 292 | ...Vec, distances_last_front: &Vec, missing: usize, last_front: &LinkedList>, saturated: &LinkedList>) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_distances_last_front` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `saturated` [INFO] [stdout] --> src/nsga3.rs:292:194 [INFO] [stdout] | [INFO] [stdout] 292 | ...&LinkedList>, saturated: &LinkedList>) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_saturated` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fronts` [INFO] [stdout] --> src/nsga3.rs:160:34 [INFO] [stdout] | [INFO] [stdout] 160 | fn non_dominated_sort(&self, fronts: &mut Vec>>, pop: LinkedList>) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_fronts` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pop` [INFO] [stdout] --> src/nsga3.rs:160:74 [INFO] [stdout] | [INFO] [stdout] 160 | fn non_dominated_sort(&self, fronts: &mut Vec>>, pop: LinkedList>) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_pop` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/nsga3.rs:165:13 [INFO] [stdout] | [INFO] [stdout] 165 | let mut rng = rand::thread_rng(); [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: unused variable: `rng` [INFO] [stdout] --> src/nsga3.rs:165:13 [INFO] [stdout] | [INFO] [stdout] 165 | let mut rng = rand::thread_rng(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rng` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `distances` [INFO] [stdout] --> src/nsga3.rs:292:52 [INFO] [stdout] | [INFO] [stdout] 292 | ...sociated: &Vec, distances: &Vec, associated_last_front: &Vec, distances_last_front: &Vec, missing: usize... [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_distances` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `distances_last_front` [INFO] [stdout] --> src/nsga3.rs:292:110 [INFO] [stdout] | [INFO] [stdout] 292 | ...Vec, distances_last_front: &Vec, missing: usize, last_front: &LinkedList>, saturated: &LinkedList>) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_distances_last_front` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `saturated` [INFO] [stdout] --> src/nsga3.rs:292:194 [INFO] [stdout] | [INFO] [stdout] 292 | ...&LinkedList>, saturated: &LinkedList>) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_saturated` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `res` is never read [INFO] [stdout] --> src/ref_point_generator.rs:41:38 [INFO] [stdout] | [INFO] [stdout] 41 | let mut res: Vec> = Vec::new(); [INFO] [stdout] | ^^^^^^^^^^ this value is reassigned later and never used [INFO] [stdout] ... [INFO] [stdout] 47 | res = RefPointGenerator::das_dennis(nb_part, dimension); [INFO] [stdout] | --- `res` is overwritten here before the previous value is read [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `points` [INFO] [stdout] --> src/main.rs:77:9 [INFO] [stdout] | [INFO] [stdout] 77 | let points: LinkedList> = (0..50).map(|_| Point::new_from(vec![0.5;9],Rc::clone(&problem))).collect(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_points` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `NB_OBJ` is never used [INFO] [stdout] --> src/nsga3.rs:7:7 [INFO] [stdout] | [INFO] [stdout] 7 | const NB_OBJ: usize = 5; [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 `Nsga3` is never constructed [INFO] [stdout] --> src/nsga3.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Nsga3 [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/nsga3.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 18 | / impl Nsga3 [INFO] [stdout] 19 | | where T: Problem + Clone [INFO] [stdout] | |________________________- associated items in this implementation [INFO] [stdout] 20 | { [INFO] [stdout] 21 | pub fn new() -> Nsga3 { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | fn iterate(&mut self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | pub fn get_offspring(&self ) -> LinkedList> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 160 | fn non_dominated_sort(&self, fronts: &mut Vec>>, pop: LinkedList>) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 164 | pub fn normalise(&mut self, saturated: &mut LinkedList>) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 242 | fn associate(&self, associated: &mut Vec, distances: &mut Vec, saturated: &LinkedList>) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 267 | fn associate_last_front(&self, associated_last_front: &mut Vec, distances_last_front: &mut Vec, last_front: &Link... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 292 | fn niching(&mut self, associated: &Vec, distances: &Vec, associated_last_front: &Vec, distances_last_front... [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `non_dominated_sort` is never used [INFO] [stdout] --> src/nsga3.rs:330:8 [INFO] [stdout] | [INFO] [stdout] 330 | pub fn non_dominated_sort(pop: LinkedList>) -> Vec>> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mutate` is never used [INFO] [stdout] --> src/nsga3.rs:408:4 [INFO] [stdout] | [INFO] [stdout] 408 | fn mutate(points: LinkedList>) -> LinkedList> [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Domination` is never used [INFO] [stdout] --> src/problem/mod.rs:9:10 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum Domination { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `generate_random_coord` and `get_bounds` are never used [INFO] [stdout] --> src/problem/mod.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub trait Problem { [INFO] [stdout] | ------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 18 | fn generate_random_coord(&self) -> Vec; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | fn get_bounds(&self) -> (f64, f64); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `coord`, `fitness`, `norm_fitness`, and `problem` are never read [INFO] [stdout] --> src/problem/mod.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct Point [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 29 | pub coord: Vec, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 30 | pub fitness: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 31 | pub norm_fitness: Vec, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 32 | [INFO] [stdout] 33 | problem: Rc> [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Point` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `get_problem`, and `domination` are never used [INFO] [stdout] --> src/problem/mod.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 37 | / impl Point [INFO] [stdout] 38 | | where T: Problem + Clone [INFO] [stdout] | |________________________- associated items in this implementation [INFO] [stdout] 39 | { [INFO] [stdout] 40 | pub fn new(problem: Rc>) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | pub fn get_problem(&self) -> Rc> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 73 | pub fn domination(&self, other: &Self) -> Domination { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DTZL2` is never constructed [INFO] [stdout] --> src/problem/dtzl2.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct DTZL2 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `g_func` are never used [INFO] [stdout] --> src/problem/dtzl2.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl DTZL2 { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 16 | pub fn new(dim_point:usize,dim_objective: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | fn g_func(&self, coord: &Vec) -> f64 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DTZL3` is never constructed [INFO] [stdout] --> src/problem/dtzl3.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct DTZL3 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `g_func` are never used [INFO] [stdout] --> src/problem/dtzl3.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl DTZL3 { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 15 | pub fn new(dim_point:usize,dim_objective: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | fn g_func(&self, coord: &Vec) -> f64 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DTZL6` is never constructed [INFO] [stdout] --> src/problem/dtzl6.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct DTZL6 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `g_func` are never used [INFO] [stdout] --> src/problem/dtzl6.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl DTZL6 { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 15 | pub fn new(dim_point:usize,dim_objective: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | fn g_func(&self, coord: &Vec) -> f64 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DTZL7` is never constructed [INFO] [stdout] --> src/problem/dtzl7.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct DTZL7 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `g_func`, and `h_func` are never used [INFO] [stdout] --> src/problem/dtzl7.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl DTZL7 { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 15 | pub fn new(dim_point:usize,dim_objective: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | fn g_func(&self, coord: &Vec) -> f64 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | fn h_func(&self, coord: &Vec, g: f64) -> f64 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `reduction`, `random_point`, `nb_point_das_dennis`, `factorial`, and `riesz` are never used [INFO] [stdout] --> src/ref_point_generator.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl RefPointGenerator [INFO] [stdout] | ---------------------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn reduction(dimension: i32, nb_points: i32, nb_rand: i32, kmean_max_iter: usize) -> Vec> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 138 | pub fn random_point(dimension: i32) -> Vec { // random-ish, but I don't know how to uniformly distribute on an n-dimension... [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 153 | fn nb_point_das_dennis(dimension: i32, partitions: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 157 | fn factorial(n: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 165 | pub fn riesz(dimension: i32, nb_points: i32, nb_rand: i32) -> Vec> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `res` is never read [INFO] [stdout] --> src/ref_point_generator.rs:41:38 [INFO] [stdout] | [INFO] [stdout] 41 | let mut res: Vec> = Vec::new(); [INFO] [stdout] | ^^^^^^^^^^ this value is reassigned later and never used [INFO] [stdout] ... [INFO] [stdout] 47 | res = RefPointGenerator::das_dennis(nb_part, dimension); [INFO] [stdout] | --- `res` is overwritten here before the previous value is read [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `points` [INFO] [stdout] --> src/main.rs:77:9 [INFO] [stdout] | [INFO] [stdout] 77 | let points: LinkedList> = (0..50).map(|_| Point::new_from(vec![0.5;9],Rc::clone(&problem))).collect(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_points` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `NB_OBJ` is never used [INFO] [stdout] --> src/nsga3.rs:7:7 [INFO] [stdout] | [INFO] [stdout] 7 | const NB_OBJ: usize = 5; [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 `Nsga3` is never constructed [INFO] [stdout] --> src/nsga3.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Nsga3 [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/nsga3.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 18 | / impl Nsga3 [INFO] [stdout] 19 | | where T: Problem + Clone [INFO] [stdout] | |________________________- associated items in this implementation [INFO] [stdout] 20 | { [INFO] [stdout] 21 | pub fn new() -> Nsga3 { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | fn iterate(&mut self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | pub fn get_offspring(&self ) -> LinkedList> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 160 | fn non_dominated_sort(&self, fronts: &mut Vec>>, pop: LinkedList>) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 164 | pub fn normalise(&mut self, saturated: &mut LinkedList>) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 242 | fn associate(&self, associated: &mut Vec, distances: &mut Vec, saturated: &LinkedList>) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 267 | fn associate_last_front(&self, associated_last_front: &mut Vec, distances_last_front: &mut Vec, last_front: &Link... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 292 | fn niching(&mut self, associated: &Vec, distances: &Vec, associated_last_front: &Vec, distances_last_front... [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `non_dominated_sort` is never used [INFO] [stdout] --> src/nsga3.rs:330:8 [INFO] [stdout] | [INFO] [stdout] 330 | pub fn non_dominated_sort(pop: LinkedList>) -> Vec>> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mutate` is never used [INFO] [stdout] --> src/nsga3.rs:408:4 [INFO] [stdout] | [INFO] [stdout] 408 | fn mutate(points: LinkedList>) -> LinkedList> [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Domination` is never used [INFO] [stdout] --> src/problem/mod.rs:9:10 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum Domination { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `generate_random_coord` and `get_bounds` are never used [INFO] [stdout] --> src/problem/mod.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub trait Problem { [INFO] [stdout] | ------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 18 | fn generate_random_coord(&self) -> Vec; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | fn get_bounds(&self) -> (f64, f64); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `coord`, `fitness`, `norm_fitness`, and `problem` are never read [INFO] [stdout] --> src/problem/mod.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct Point [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 29 | pub coord: Vec, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 30 | pub fitness: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 31 | pub norm_fitness: Vec, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 32 | [INFO] [stdout] 33 | problem: Rc> [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Point` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `get_problem`, and `domination` are never used [INFO] [stdout] --> src/problem/mod.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 37 | / impl Point [INFO] [stdout] 38 | | where T: Problem + Clone [INFO] [stdout] | |________________________- associated items in this implementation [INFO] [stdout] 39 | { [INFO] [stdout] 40 | pub fn new(problem: Rc>) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | pub fn get_problem(&self) -> Rc> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 73 | pub fn domination(&self, other: &Self) -> Domination { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DTZL2` is never constructed [INFO] [stdout] --> src/problem/dtzl2.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct DTZL2 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `g_func` are never used [INFO] [stdout] --> src/problem/dtzl2.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl DTZL2 { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 16 | pub fn new(dim_point:usize,dim_objective: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | fn g_func(&self, coord: &Vec) -> f64 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DTZL3` is never constructed [INFO] [stdout] --> src/problem/dtzl3.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct DTZL3 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `g_func` are never used [INFO] [stdout] --> src/problem/dtzl3.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl DTZL3 { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 15 | pub fn new(dim_point:usize,dim_objective: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | fn g_func(&self, coord: &Vec) -> f64 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DTZL6` is never constructed [INFO] [stdout] --> src/problem/dtzl6.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct DTZL6 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `g_func` are never used [INFO] [stdout] --> src/problem/dtzl6.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl DTZL6 { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 15 | pub fn new(dim_point:usize,dim_objective: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | fn g_func(&self, coord: &Vec) -> f64 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DTZL7` is never constructed [INFO] [stdout] --> src/problem/dtzl7.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct DTZL7 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `g_func`, and `h_func` are never used [INFO] [stdout] --> src/problem/dtzl7.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl DTZL7 { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 15 | pub fn new(dim_point:usize,dim_objective: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | fn g_func(&self, coord: &Vec) -> f64 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | fn h_func(&self, coord: &Vec, g: f64) -> f64 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `reduction`, `random_point`, `nb_point_das_dennis`, `factorial`, and `riesz` are never used [INFO] [stdout] --> src/ref_point_generator.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl RefPointGenerator [INFO] [stdout] | ---------------------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn reduction(dimension: i32, nb_points: i32, nb_rand: i32, kmean_max_iter: usize) -> Vec> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 138 | pub fn random_point(dimension: i32) -> Vec { // random-ish, but I don't know how to uniformly distribute on an n-dimension... [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 153 | fn nb_point_das_dennis(dimension: i32, partitions: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 157 | fn factorial(n: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 165 | pub fn riesz(dimension: i32, nb_points: i32, nb_rand: i32) -> Vec> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 21.66s [INFO] running `Command { std: "docker" "inspect" "2c4fb9b5f587c410a3a1593ddcbc14fd9668ae092e6b8df37fba39efabbf891a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2c4fb9b5f587c410a3a1593ddcbc14fd9668ae092e6b8df37fba39efabbf891a", kill_on_drop: false }` [INFO] [stdout] 2c4fb9b5f587c410a3a1593ddcbc14fd9668ae092e6b8df37fba39efabbf891a