[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] 15789f8cfa36d3c312fec5c0c3635bee1a8d738e [INFO] checking GBujak/bfplan/15789f8cfa36d3c312fec5c0c3635bee1a8d738e against master#ab869e094a907cc5d19b4080f22eccaf347f1f95 for pr-129604 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FGBujak%2Fbfplan" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/GBujak/bfplan on toolchain ab869e094a907cc5d19b4080f22eccaf347f1f95 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "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-5-tc1/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: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded syn v1.0.64 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 87f772d23e7e773514491eca00fe8bfef0a8c40a0269c60700a046fa2458002e [INFO] running `Command { std: "docker" "start" "-a" "87f772d23e7e773514491eca00fe8bfef0a8c40a0269c60700a046fa2458002e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "87f772d23e7e773514491eca00fe8bfef0a8c40a0269c60700a046fa2458002e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "87f772d23e7e773514491eca00fe8bfef0a8c40a0269c60700a046fa2458002e", kill_on_drop: false }` [INFO] [stdout] 87f772d23e7e773514491eca00fe8bfef0a8c40a0269c60700a046fa2458002e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6b460cc58909538dab3c909837f2368b08808e1fffe36fc66139f8492d7331bc [INFO] running `Command { std: "docker" "start" "-a" "6b460cc58909538dab3c909837f2368b08808e1fffe36fc66139f8492d7331bc", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.24 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling libc v0.2.94 [INFO] [stderr] Compiling getrandom v0.2.2 [INFO] [stderr] Compiling syn v1.0.64 [INFO] [stderr] Compiling serde_derive v1.0.124 [INFO] [stderr] Compiling serde v1.0.124 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Checking ppv-lite86 v0.2.10 [INFO] [stderr] Compiling serde_json v1.0.64 [INFO] [stderr] Checking itoa v0.4.7 [INFO] [stderr] Checking either v1.6.1 [INFO] [stderr] Checking itertools v0.10.0 [INFO] [stderr] Compiling quote v1.0.9 [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] Checking bfplan v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Subject` [INFO] [stdout] --> src/annealing/adapter.rs:4:55 [INFO] [stdout] | [INFO] [stdout] 4 | data_types::{Classroom, SimpleDate, StudentGroup, Subject, Teacher}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `CanTeach` [INFO] [stdout] --> src/annealing/adapter.rs:11:22 [INFO] [stdout] | [INFO] [stdout] 11 | illegal_buffer::{CanTeach, IllegalBuffer}, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `InnerCollision` [INFO] [stdout] --> src/annealing/annealing_buffer.rs:5:19 [INFO] [stdout] | [INFO] [stdout] 5 | inner_state::{InnerCollision, InnerState}, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashMap` [INFO] [stdout] --> src/annealing/annealing_buffer.rs:9:24 [INFO] [stdout] | [INFO] [stdout] 9 | use std::collections::{HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ClassroomTimeKey` and `TeacherTimeKey` [INFO] [stdout] --> src/annealing/annealing_buffer.rs:11:30 [INFO] [stdout] | [INFO] [stdout] 11 | pub use super::inner_state::{ClassroomTimeKey, Lesson, TeacherTimeKey}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::annealing_functions::temperature` [INFO] [stdout] --> src/annealing/annealing_state.rs:23:13 [INFO] [stdout] | [INFO] [stdout] 23 | use super::annealing_functions::temperature; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `illegal_buffer::IllegalBuffer` [INFO] [stdout] --> src/annealing/mutation.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | illegal_buffer::IllegalBuffer, [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:55 [INFO] [stdout] | [INFO] [stdout] 4 | data_types::{Classroom, SimpleDate, StudentGroup, Subject, Teacher}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `CanTeach` [INFO] [stdout] --> src/annealing/adapter.rs:11:22 [INFO] [stdout] | [INFO] [stdout] 11 | illegal_buffer::{CanTeach, IllegalBuffer}, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `InnerCollision` [INFO] [stdout] --> src/annealing/annealing_buffer.rs:5:19 [INFO] [stdout] | [INFO] [stdout] 5 | inner_state::{InnerCollision, InnerState}, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashMap` [INFO] [stdout] --> src/annealing/annealing_buffer.rs:9:24 [INFO] [stdout] | [INFO] [stdout] 9 | use std::collections::{HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ClassroomTimeKey` and `TeacherTimeKey` [INFO] [stdout] --> src/annealing/annealing_buffer.rs:11:30 [INFO] [stdout] | [INFO] [stdout] 11 | pub use super::inner_state::{ClassroomTimeKey, Lesson, TeacherTimeKey}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::annealing_functions::temperature` [INFO] [stdout] --> src/annealing/annealing_state.rs:23:13 [INFO] [stdout] | [INFO] [stdout] 23 | use super::annealing_functions::temperature; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `illegal_buffer::IllegalBuffer` [INFO] [stdout] --> src/annealing/mutation.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | illegal_buffer::IllegalBuffer, [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: `lesson_id` [INFO] [stdout] --> src/annealing/adapter.rs:119:14 [INFO] [stdout] | [INFO] [stdout] 119 | for (lesson_id, lesson_info) in self.lesson_info.iter().enumerate() { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_lesson_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `can_teach` [INFO] [stdout] --> src/annealing/adapter.rs:120:17 [INFO] [stdout] | [INFO] [stdout] 120 | let can_teach = &self.subject_info[lesson_info.subject_name].can_teach; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_can_teach` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/annealing/adapter.rs:115:13 [INFO] [stdout] | [INFO] [stdout] 115 | let mut can_teach = HashSet::new(); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/annealing/adapter.rs:116:13 [INFO] [stdout] | [INFO] [stdout] 116 | let mut can_hold = HashSet::new(); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/annealing/adapter.rs:117:13 [INFO] [stdout] | [INFO] [stdout] 117 | let mut illegal_states = Vec::new(); [INFO] [stdout] | ----^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lesson` [INFO] [stdout] --> src/annealing/illegal_buffer.rs:55:30 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn is_illegal(&self, lesson: Lesson) -> bool { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_lesson` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `illegal_buffer` [INFO] [stdout] --> src/annealing/inner_state.rs:231:9 [INFO] [stdout] | [INFO] [stdout] 231 | illegal_buffer: Option<&IllegalBuffer>, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_illegal_buffer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `illegal_buffer` [INFO] [stdout] --> src/annealing/inner_state.rs:274:9 [INFO] [stdout] | [INFO] [stdout] 274 | illegal_buffer: Option<&IllegalBuffer>, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_illegal_buffer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lesson_id` [INFO] [stdout] --> src/annealing/adapter.rs:119:14 [INFO] [stdout] | [INFO] [stdout] 119 | for (lesson_id, lesson_info) in self.lesson_info.iter().enumerate() { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_lesson_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `can_teach` [INFO] [stdout] --> src/annealing/adapter.rs:120:17 [INFO] [stdout] | [INFO] [stdout] 120 | let can_teach = &self.subject_info[lesson_info.subject_name].can_teach; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_can_teach` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/annealing/adapter.rs:115:13 [INFO] [stdout] | [INFO] [stdout] 115 | let mut can_teach = HashSet::new(); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/annealing/adapter.rs:116:13 [INFO] [stdout] | [INFO] [stdout] 116 | let mut can_hold = HashSet::new(); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/annealing/adapter.rs:117:13 [INFO] [stdout] | [INFO] [stdout] 117 | let mut illegal_states = Vec::new(); [INFO] [stdout] | ----^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lesson` [INFO] [stdout] --> src/annealing/illegal_buffer.rs:55:30 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn is_illegal(&self, lesson: Lesson) -> bool { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_lesson` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `illegal_buffer` [INFO] [stdout] --> src/annealing/inner_state.rs:231:9 [INFO] [stdout] | [INFO] [stdout] 231 | illegal_buffer: Option<&IllegalBuffer>, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_illegal_buffer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `illegal_buffer` [INFO] [stdout] --> src/annealing/inner_state.rs:274:9 [INFO] [stdout] | [INFO] [stdout] 274 | illegal_buffer: Option<&IllegalBuffer>, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_illegal_buffer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `can_teach` and `can_hold` are never read [INFO] [stdout] --> src/annealing/adapter.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 22 | struct SubjectInfo<'a> { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 23 | pub can_teach: Vec<&'a Teacher>, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 24 | pub can_hold: Vec<&'a Classroom>, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SubjectInfo` has a derived impl for the trait `Default`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `create_illegal_buffer` is never used [INFO] [stdout] --> src/annealing/adapter.rs:114:12 [INFO] [stdout] | [INFO] [stdout] 32 | impl<'a> AnnealingAdapter<'a> { [INFO] [stdout] | ----------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 114 | pub fn create_illegal_buffer(&self) -> IllegalBuffer { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `teacher_count`, `can_teach`, and `can_hold` are never read [INFO] [stdout] --> src/annealing/annealing_buffer.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct AnnealingBuffer { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 27 | pub teacher_count: u8, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | pub can_teach: HashSet, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 32 | pub can_hold: HashSet, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `temperature` is never used [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: field `max_iterations` is never read [INFO] [stdout] --> src/annealing/annealing_state.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct AnnealingState { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 3 | iteration: usize, [INFO] [stdout] 4 | max_iterations: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AnnealingState` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `group_lessons_in_day_weight` is never read [INFO] [stdout] --> src/annealing/energy.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct EnergyWeights { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 23 | pub group_lessons_in_day_weight: f32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `can_teach`, `can_hold`, and `illegal_states` are never read [INFO] [stdout] --> src/annealing/illegal_buffer.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct IllegalBuffer { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 20 | can_teach: HashSet, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 21 | can_hold: HashSet, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 22 | [INFO] [stdout] 23 | illegal_states: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `can_teach`, `can_hold`, `insert_can_teach`, `insert_can_hold`, and `is_illegal` are never used [INFO] [stdout] --> src/annealing/illegal_buffer.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 26 | impl IllegalBuffer { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn can_teach(&self, can_teach: CanTeach) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | pub fn can_hold(&self, can_hold: CanHold) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn insert_can_teach(&mut self, can_teach: CanTeach) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | pub fn insert_can_hold(&mut self, can_hold: CanHold) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | pub fn is_illegal(&self, lesson: Lesson) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `teacher_time`, `classroom_time`, and `group_time` are never read [INFO] [stdout] --> src/annealing/inner_state.rs:82:9 [INFO] [stdout] | [INFO] [stdout] 79 | pub struct InnerStateRef<'a> { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 82 | pub teacher_time: &'a HashMap, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 83 | pub classroom_time: &'a HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 84 | pub group_time: &'a HashMap, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `InnerStateRef` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_no_collisions` is never used [INFO] [stdout] --> src/annealing/inner_state.rs:340:12 [INFO] [stdout] | [INFO] [stdout] 339 | impl InnerCollision { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] 340 | pub fn is_no_collisions(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/annealing/mutation.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 35 | impl Mutation { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 36 | pub fn new(target_lesson: usize, mutation_type: MutationType) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LessonPossible` is never constructed [INFO] [stdout] --> src/data_types/lesson.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct LessonPossible<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LessonPossible` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `cartesian_product_iter` are never used [INFO] [stdout] --> src/data_types/lesson.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl<'a> LessonPossible<'a> { [INFO] [stdout] | --------------------------- associated items in this implementation [INFO] [stdout] 17 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | pub fn cartesian_product_iter(&self) -> impl Iterator + Clone { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/data_types/simple_date.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 36 | impl DateList { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 37 | pub fn new(/*illegal_dates: HashSet, */ days: u8) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/data_types/subject.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl Subject { [INFO] [stdout] | ------------ associated function in this implementation [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 `new` is never used [INFO] [stdout] --> src/data_types/teacher.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl Teacher { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 10 | pub fn new(name: String, can_teach: Vec) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `is_logic_error` and `is_violated_by` are never used [INFO] [stdout] --> src/illegal_state.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 26 | impl IllegalState { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] 27 | pub fn is_logic_error(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | pub fn is_violated_by(&self, lesson: Lesson) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `illegal_states` is never read [INFO] [stdout] --> src/input.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct PlanInput { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 10 | pub illegal_states: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `find_subject`, and `possible_lessons` are never used [INFO] [stdout] --> src/input.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl PlanInput { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 16 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | pub fn find_subject(&self, name: &str) -> Option<&Subject> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn possible_lessons(&self) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `len` is never used [INFO] [stdout] --> src/output.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl PlanOutput { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn len(&self) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 37 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `can_teach` and `can_hold` are never read [INFO] [stdout] --> src/annealing/adapter.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 22 | struct SubjectInfo<'a> { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 23 | pub can_teach: Vec<&'a Teacher>, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 24 | pub can_hold: Vec<&'a Classroom>, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SubjectInfo` has a derived impl for the trait `Default`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `create_illegal_buffer` is never used [INFO] [stdout] --> src/annealing/adapter.rs:114:12 [INFO] [stdout] | [INFO] [stdout] 32 | impl<'a> AnnealingAdapter<'a> { [INFO] [stdout] | ----------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 114 | pub fn create_illegal_buffer(&self) -> IllegalBuffer { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `teacher_count`, `can_teach`, and `can_hold` are never read [INFO] [stdout] --> src/annealing/annealing_buffer.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct AnnealingBuffer { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 27 | pub teacher_count: u8, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | pub can_teach: HashSet, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 32 | pub can_hold: HashSet, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `temperature` is never used [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: field `max_iterations` is never read [INFO] [stdout] --> src/annealing/annealing_state.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct AnnealingState { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 3 | iteration: usize, [INFO] [stdout] 4 | max_iterations: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AnnealingState` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `group_lessons_in_day_weight` is never read [INFO] [stdout] --> src/annealing/energy.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct EnergyWeights { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 23 | pub group_lessons_in_day_weight: f32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `can_teach`, `can_hold`, and `illegal_states` are never read [INFO] [stdout] --> src/annealing/illegal_buffer.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct IllegalBuffer { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 20 | can_teach: HashSet, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 21 | can_hold: HashSet, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 22 | [INFO] [stdout] 23 | illegal_states: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `can_teach`, `can_hold`, `insert_can_teach`, `insert_can_hold`, and `is_illegal` are never used [INFO] [stdout] --> src/annealing/illegal_buffer.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 26 | impl IllegalBuffer { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn can_teach(&self, can_teach: CanTeach) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | pub fn can_hold(&self, can_hold: CanHold) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn insert_can_teach(&mut self, can_teach: CanTeach) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | pub fn insert_can_hold(&mut self, can_hold: CanHold) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | pub fn is_illegal(&self, lesson: Lesson) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `teacher_time`, `classroom_time`, and `group_time` are never read [INFO] [stdout] --> src/annealing/inner_state.rs:82:9 [INFO] [stdout] | [INFO] [stdout] 79 | pub struct InnerStateRef<'a> { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 82 | pub teacher_time: &'a HashMap, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 83 | pub classroom_time: &'a HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 84 | pub group_time: &'a HashMap, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `InnerStateRef` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_no_collisions` is never used [INFO] [stdout] --> src/annealing/inner_state.rs:340:12 [INFO] [stdout] | [INFO] [stdout] 339 | impl InnerCollision { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] 340 | pub fn is_no_collisions(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LessonPossible` is never constructed [INFO] [stdout] --> src/data_types/lesson.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct LessonPossible<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LessonPossible` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `cartesian_product_iter` are never used [INFO] [stdout] --> src/data_types/lesson.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl<'a> LessonPossible<'a> { [INFO] [stdout] | --------------------------- associated items in this implementation [INFO] [stdout] 17 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | pub fn cartesian_product_iter(&self) -> impl Iterator + Clone { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/data_types/simple_date.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 36 | impl DateList { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 37 | pub fn new(/*illegal_dates: HashSet, */ days: u8) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/data_types/subject.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl Subject { [INFO] [stdout] | ------------ associated function in this implementation [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 `new` is never used [INFO] [stdout] --> src/data_types/teacher.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl Teacher { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 10 | pub fn new(name: String, can_teach: Vec) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `is_logic_error` and `is_violated_by` are never used [INFO] [stdout] --> src/illegal_state.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 26 | impl IllegalState { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] 27 | pub fn is_logic_error(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | pub fn is_violated_by(&self, lesson: Lesson) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `illegal_states` is never read [INFO] [stdout] --> src/input.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct PlanInput { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 10 | pub illegal_states: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `find_subject`, and `possible_lessons` are never used [INFO] [stdout] --> src/input.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl PlanInput { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 16 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | pub fn find_subject(&self, name: &str) -> Option<&Subject> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn possible_lessons(&self) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `len` is never used [INFO] [stdout] --> src/output.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl PlanOutput { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn len(&self) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 36 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 13.17s [INFO] running `Command { std: "docker" "inspect" "6b460cc58909538dab3c909837f2368b08808e1fffe36fc66139f8492d7331bc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6b460cc58909538dab3c909837f2368b08808e1fffe36fc66139f8492d7331bc", kill_on_drop: false }` [INFO] [stdout] 6b460cc58909538dab3c909837f2368b08808e1fffe36fc66139f8492d7331bc