[INFO] cloning repository https://github.com/GBujak/bfplan [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/GBujak/bfplan" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FGBujak%2Fbfplan", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FGBujak%2Fbfplan'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] fe83c17431ae5afc1f881832ce6f7a50537b1898 [INFO] checking GBujak/bfplan against master#a5f164faad4a2fed606b8160fd7ecd2d5cbba381 for pr-84920 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FGBujak%2Fbfplan" "/workspace/builds/worker-6/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/GBujak/bfplan on toolchain a5f164faad4a2fed606b8160fd7ecd2d5cbba381 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a5f164faad4a2fed606b8160fd7ecd2d5cbba381" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/GBujak/bfplan [INFO] finished tweaking git repo https://github.com/GBujak/bfplan [INFO] tweaked toml for git repo https://github.com/GBujak/bfplan written to /workspace/builds/worker-6/source/Cargo.toml [INFO] crate git repo https://github.com/GBujak/bfplan already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a5f164faad4a2fed606b8160fd7ecd2d5cbba381" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+a5f164faad4a2fed606b8160fd7ecd2d5cbba381" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] aef9ef92f121a01a99d4ec7b0a2924bdfbdd613ae7c068f63546d69b47022257 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "aef9ef92f121a01a99d4ec7b0a2924bdfbdd613ae7c068f63546d69b47022257", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "aef9ef92f121a01a99d4ec7b0a2924bdfbdd613ae7c068f63546d69b47022257", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "aef9ef92f121a01a99d4ec7b0a2924bdfbdd613ae7c068f63546d69b47022257", kill_on_drop: false }` [INFO] [stdout] aef9ef92f121a01a99d4ec7b0a2924bdfbdd613ae7c068f63546d69b47022257 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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" "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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+a5f164faad4a2fed606b8160fd7ecd2d5cbba381" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 04b21618a034bb9393a7fab3e66add4a1cee205709c15b8d9ad025605f3d1c41 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "04b21618a034bb9393a7fab3e66add4a1cee205709c15b8d9ad025605f3d1c41", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.24 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling syn v1.0.64 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Checking itertools v0.10.0 [INFO] [stderr] Checking getrandom v0.2.2 [INFO] [stderr] Checking rand_core v0.6.2 [INFO] [stderr] Checking rand_chacha v0.3.0 [INFO] [stderr] Checking rand v0.8.3 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Compiling serde_derive v1.0.124 [INFO] [stderr] Checking serde v1.0.124 [INFO] [stderr] Checking serde_json v1.0.64 [INFO] [stderr] Checking bfplan v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Subject` [INFO] [stdout] --> src/annealing/adapter.rs:4:43 [INFO] [stdout] | [INFO] [stdout] 4 | data_types::{Classroom, StudentGroup, Subject, Teacher}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `data_types::Classroom`, `input::PlanInput` [INFO] [stdout] --> src/annealing/annealing_buffer.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::{data_types::Classroom, input::PlanInput}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cmp::Reverse` [INFO] [stdout] --> src/annealing/annealing_buffer.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | cmp::Reverse, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashSet` [INFO] [stdout] --> src/data_types/lesson.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashSet; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashSet` [INFO] [stdout] --> src/data_types/simple_date.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashSet; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Subject` [INFO] [stdout] --> src/annealing/adapter.rs:4:43 [INFO] [stdout] | [INFO] [stdout] 4 | data_types::{Classroom, StudentGroup, Subject, Teacher}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `data_types::Classroom`, `input::PlanInput` [INFO] [stdout] --> src/annealing/annealing_buffer.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::{data_types::Classroom, input::PlanInput}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cmp::Reverse` [INFO] [stdout] --> src/annealing/annealing_buffer.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | cmp::Reverse, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashSet` [INFO] [stdout] --> src/data_types/lesson.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashSet; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashSet` [INFO] [stdout] --> src/data_types/simple_date.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashSet; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mutation` [INFO] [stdout] --> src/annealing/annealing_buffer.rs:148:34 [INFO] [stdout] | [INFO] [stdout] 148 | fn apply_mutation(&mut self, mutation: Mutation) -> ReverseMutation { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_mutation` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reverse_mutation` [INFO] [stdout] --> src/annealing/annealing_buffer.rs:152:42 [INFO] [stdout] | [INFO] [stdout] 152 | fn apply_reverse_mutation(&mut self, reverse_mutation: ReverseMutation) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_reverse_mutation` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mutation` [INFO] [stdout] --> src/annealing/annealing_buffer.rs:148:34 [INFO] [stdout] | [INFO] [stdout] 148 | fn apply_mutation(&mut self, mutation: Mutation) -> ReverseMutation { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_mutation` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `subject_info` [INFO] [stdout] --> src/annealing/adapter.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | subject_info: HashMap<&'a str, SubjectInfo<'a>>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reverse_mutation` [INFO] [stdout] --> src/annealing/annealing_buffer.rs:152:42 [INFO] [stdout] | [INFO] [stdout] 152 | fn apply_reverse_mutation(&mut self, reverse_mutation: ReverseMutation) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_reverse_mutation` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `lesson_info` [INFO] [stdout] --> src/annealing/adapter.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | lesson_info: Vec>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `plan_input` [INFO] [stdout] --> src/annealing/adapter.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | plan_input: Option<&'a PlanInput>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `of_plan_input` [INFO] [stdout] --> src/annealing/adapter.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn of_plan_input(plan_input: &'a PlanInput) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `create_annealing_buffer` [INFO] [stdout] --> src/annealing/adapter.rs:65:12 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn create_annealing_buffer(&self) -> AnnealingBuffer { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/annealing/annealing_buffer.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn new(number_of_lessons: usize, max_time: u8) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `place_lesson` [INFO] [stdout] --> src/annealing/annealing_buffer.rs:64:12 [INFO] [stdout] | [INFO] [stdout] 64 | pub fn place_lesson( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `apply_mutation_impl` [INFO] [stdout] --> src/annealing/annealing_buffer.rs:102:8 [INFO] [stdout] | [INFO] [stdout] 102 | fn apply_mutation_impl(&mut self, mutation: Mutation) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `apply_mutation` [INFO] [stdout] --> src/annealing/annealing_buffer.rs:148:8 [INFO] [stdout] | [INFO] [stdout] 148 | fn apply_mutation(&mut self, mutation: Mutation) -> ReverseMutation { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `apply_reverse_mutation` [INFO] [stdout] --> src/annealing/annealing_buffer.rs:152:8 [INFO] [stdout] | [INFO] [stdout] 152 | fn apply_reverse_mutation(&mut self, reverse_mutation: ReverseMutation) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `anneal_step` [INFO] [stdout] --> src/annealing/annealing_buffer.rs:156:8 [INFO] [stdout] | [INFO] [stdout] 156 | fn anneal_step(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `anneal_iterations` [INFO] [stdout] --> src/annealing/annealing_buffer.rs:160:12 [INFO] [stdout] | [INFO] [stdout] 160 | pub fn anneal_iterations(&mut self, iterations: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `probability` [INFO] [stdout] --> src/annealing/annealing_functions.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn probability(last_energy: f32, new_energy: f32, temperature: f32) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `temperature` [INFO] [stdout] --> src/annealing/annealing_functions.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn temperature(time: f32) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `should_accept_state` [INFO] [stdout] --> src/annealing/annealing_functions.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn should_accept_state(last_energy: f32, new_energy: f32, time: f32) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `EnergyWeights` [INFO] [stdout] --> src/annealing/energy.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct EnergyWeights { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `last_lesson_of_group` [INFO] [stdout] --> src/annealing/energy.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | last_lesson_of_group: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `group_gaps` [INFO] [stdout] --> src/annealing/energy.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | group_gaps: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `last_lesson_of_teacher` [INFO] [stdout] --> src/annealing/energy.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | last_lesson_of_teacher: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `teacher_gaps` [INFO] [stdout] --> src/annealing/energy.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | teacher_gaps: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `group_lessons_in_day` [INFO] [stdout] --> src/annealing/energy.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | group_lessons_in_day: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `teacher_lessons_in_day` [INFO] [stdout] --> src/annealing/energy.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | teacher_lessons_in_day: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/annealing/energy.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `emplace_of_buffer` [INFO] [stdout] --> src/annealing/energy.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn emplace_of_buffer(&mut self, buffer: &AnnealingBuffer) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `energy` [INFO] [stdout] --> src/annealing/energy.rs:62:12 [INFO] [stdout] | [INFO] [stdout] 62 | pub fn energy(&self, energy_weights: &EnergyWeights) -> f32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `clear` [INFO] [stdout] --> src/annealing/energy.rs:68:12 [INFO] [stdout] | [INFO] [stdout] 68 | pub fn clear(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `IllegalBuffer` [INFO] [stdout] --> src/annealing/illegal_buffer.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct IllegalBuffer { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/annealing/illegal_buffer.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn new(can_teach: HashSet, can_hold: HashSet) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `can_teach` [INFO] [stdout] --> src/annealing/illegal_buffer.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn can_teach(&self, can_teach: CanTeach) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `can_hold` [INFO] [stdout] --> src/annealing/illegal_buffer.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn can_hold(&self, can_hold: CanHold) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `insert_can_teach` [INFO] [stdout] --> src/annealing/illegal_buffer.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn insert_can_teach(&mut self, can_teach: CanTeach) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `insert_can_hold` [INFO] [stdout] --> src/annealing/illegal_buffer.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn insert_can_hold(&mut self, can_hold: CanHold) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `MutationType` [INFO] [stdout] --> src/annealing/mutation.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | pub enum MutationType { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Mutation` [INFO] [stdout] --> src/annealing/mutation.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct Mutation { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `ReverseMutation` [INFO] [stdout] --> src/annealing/mutation.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct ReverseMutation(Mutation); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `of` [INFO] [stdout] --> src/annealing/mutation.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn of(mutation: Mutation) -> Self { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get` [INFO] [stdout] --> src/annealing/mutation.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn get(self) -> Mutation { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/annealing/mutation.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn new(target_lesson: u8, mutation_type: MutationType) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `legal_of_buffer` [INFO] [stdout] --> src/annealing/mutation.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn legal_of_buffer(buffer: &AnnealingBuffer, _illegal_states: &IllegalBuffer) -> Mutation { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `reverse_mutation` [INFO] [stdout] --> src/annealing/mutation.rs:74:12 [INFO] [stdout] | [INFO] [stdout] 74 | pub fn reverse_mutation(&self, applied_to_id: u8, applied_to: &Lesson) -> ReverseMutation { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/data_types/subject.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn new(name: String, subject_type: SubjectType, count: i8) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/data_types/teacher.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn new(name: String, can_teach: Vec) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_logic_error` [INFO] [stdout] --> src/illegal_state.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn is_logic_error(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/input.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 51 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `subject_info` [INFO] [stdout] --> src/annealing/adapter.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | subject_info: HashMap<&'a str, SubjectInfo<'a>>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `lesson_info` [INFO] [stdout] --> src/annealing/adapter.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | lesson_info: Vec>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `plan_input` [INFO] [stdout] --> src/annealing/adapter.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | plan_input: Option<&'a PlanInput>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `of_plan_input` [INFO] [stdout] --> src/annealing/adapter.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn of_plan_input(plan_input: &'a PlanInput) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `create_annealing_buffer` [INFO] [stdout] --> src/annealing/adapter.rs:65:12 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn create_annealing_buffer(&self) -> AnnealingBuffer { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/annealing/annealing_buffer.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn new(number_of_lessons: usize, max_time: u8) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `place_lesson` [INFO] [stdout] --> src/annealing/annealing_buffer.rs:64:12 [INFO] [stdout] | [INFO] [stdout] 64 | pub fn place_lesson( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `apply_mutation_impl` [INFO] [stdout] --> src/annealing/annealing_buffer.rs:102:8 [INFO] [stdout] | [INFO] [stdout] 102 | fn apply_mutation_impl(&mut self, mutation: Mutation) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `apply_mutation` [INFO] [stdout] --> src/annealing/annealing_buffer.rs:148:8 [INFO] [stdout] | [INFO] [stdout] 148 | fn apply_mutation(&mut self, mutation: Mutation) -> ReverseMutation { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `apply_reverse_mutation` [INFO] [stdout] --> src/annealing/annealing_buffer.rs:152:8 [INFO] [stdout] | [INFO] [stdout] 152 | fn apply_reverse_mutation(&mut self, reverse_mutation: ReverseMutation) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `anneal_step` [INFO] [stdout] --> src/annealing/annealing_buffer.rs:156:8 [INFO] [stdout] | [INFO] [stdout] 156 | fn anneal_step(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `anneal_iterations` [INFO] [stdout] --> src/annealing/annealing_buffer.rs:160:12 [INFO] [stdout] | [INFO] [stdout] 160 | pub fn anneal_iterations(&mut self, iterations: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `probability` [INFO] [stdout] --> src/annealing/annealing_functions.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn probability(last_energy: f32, new_energy: f32, temperature: f32) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `temperature` [INFO] [stdout] --> src/annealing/annealing_functions.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn temperature(time: f32) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `should_accept_state` [INFO] [stdout] --> src/annealing/annealing_functions.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn should_accept_state(last_energy: f32, new_energy: f32, time: f32) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `EnergyWeights` [INFO] [stdout] --> src/annealing/energy.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct EnergyWeights { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `last_lesson_of_group` [INFO] [stdout] --> src/annealing/energy.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | last_lesson_of_group: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `group_gaps` [INFO] [stdout] --> src/annealing/energy.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | group_gaps: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `last_lesson_of_teacher` [INFO] [stdout] --> src/annealing/energy.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | last_lesson_of_teacher: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `teacher_gaps` [INFO] [stdout] --> src/annealing/energy.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | teacher_gaps: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `group_lessons_in_day` [INFO] [stdout] --> src/annealing/energy.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | group_lessons_in_day: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `teacher_lessons_in_day` [INFO] [stdout] --> src/annealing/energy.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | teacher_lessons_in_day: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/annealing/energy.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `emplace_of_buffer` [INFO] [stdout] --> src/annealing/energy.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn emplace_of_buffer(&mut self, buffer: &AnnealingBuffer) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `energy` [INFO] [stdout] --> src/annealing/energy.rs:62:12 [INFO] [stdout] | [INFO] [stdout] 62 | pub fn energy(&self, energy_weights: &EnergyWeights) -> f32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `clear` [INFO] [stdout] --> src/annealing/energy.rs:68:12 [INFO] [stdout] | [INFO] [stdout] 68 | pub fn clear(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `IllegalBuffer` [INFO] [stdout] --> src/annealing/illegal_buffer.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct IllegalBuffer { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/annealing/illegal_buffer.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn new(can_teach: HashSet, can_hold: HashSet) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `can_teach` [INFO] [stdout] --> src/annealing/illegal_buffer.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn can_teach(&self, can_teach: CanTeach) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `can_hold` [INFO] [stdout] --> src/annealing/illegal_buffer.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn can_hold(&self, can_hold: CanHold) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `insert_can_teach` [INFO] [stdout] --> src/annealing/illegal_buffer.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn insert_can_teach(&mut self, can_teach: CanTeach) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `insert_can_hold` [INFO] [stdout] --> src/annealing/illegal_buffer.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn insert_can_hold(&mut self, can_hold: CanHold) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `MutationType` [INFO] [stdout] --> src/annealing/mutation.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | pub enum MutationType { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Mutation` [INFO] [stdout] --> src/annealing/mutation.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct Mutation { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `ReverseMutation` [INFO] [stdout] --> src/annealing/mutation.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct ReverseMutation(Mutation); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `of` [INFO] [stdout] --> src/annealing/mutation.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn of(mutation: Mutation) -> Self { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get` [INFO] [stdout] --> src/annealing/mutation.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn get(self) -> Mutation { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/annealing/mutation.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn new(target_lesson: u8, mutation_type: MutationType) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `legal_of_buffer` [INFO] [stdout] --> src/annealing/mutation.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn legal_of_buffer(buffer: &AnnealingBuffer, _illegal_states: &IllegalBuffer) -> Mutation { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `reverse_mutation` [INFO] [stdout] --> src/annealing/mutation.rs:74:12 [INFO] [stdout] | [INFO] [stdout] 74 | pub fn reverse_mutation(&self, applied_to_id: u8, applied_to: &Lesson) -> ReverseMutation { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/data_types/subject.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn new(name: String, subject_type: SubjectType, count: i8) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/data_types/teacher.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn new(name: String, can_teach: Vec) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `is_logic_error` [INFO] [stdout] --> src/illegal_state.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn is_logic_error(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/input.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 51 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 31.71s [INFO] running `Command { std: "docker" "inspect" "04b21618a034bb9393a7fab3e66add4a1cee205709c15b8d9ad025605f3d1c41", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "04b21618a034bb9393a7fab3e66add4a1cee205709c15b8d9ad025605f3d1c41", kill_on_drop: false }` [INFO] [stdout] 04b21618a034bb9393a7fab3e66add4a1cee205709c15b8d9ad025605f3d1c41