[INFO] cloning repository https://github.com/JoshuaRadin37/Infection
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/JoshuaRadin37/Infection" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJoshuaRadin37%2FInfection", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJoshuaRadin37%2FInfection'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] afe8199626de3f5da35e161c871aa3ec6b536777
[INFO] checking JoshuaRadin37/Infection against try#93086cfebfccb79083c59d0d3b2052944bba643c for pr-146440-1
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJoshuaRadin37%2FInfection" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/JoshuaRadin37/Infection
[INFO] finished tweaking git repo https://github.com/JoshuaRadin37/Infection
[INFO] tweaked toml for git repo https://github.com/JoshuaRadin37/Infection written to /workspace/builds/worker-1-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/JoshuaRadin37/Infection on toolchain 93086cfebfccb79083c59d0d3b2052944bba643c
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+93086cfebfccb79083c59d0d3b2052944bba643c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/JoshuaRadin37/Infection already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+93086cfebfccb79083c59d0d3b2052944bba643c" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+93086cfebfccb79083c59d0d3b2052944bba643c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 3a32a0dfa5e4e68aade345711f04191a651fcf8b715881bb9c1098d9f13acc27
[INFO] running `Command { std: "docker" "start" "-a" "3a32a0dfa5e4e68aade345711f04191a651fcf8b715881bb9c1098d9f13acc27", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "3a32a0dfa5e4e68aade345711f04191a651fcf8b715881bb9c1098d9f13acc27", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "3a32a0dfa5e4e68aade345711f04191a651fcf8b715881bb9c1098d9f13acc27", kill_on_drop: false }`
[INFO] [stdout] 3a32a0dfa5e4e68aade345711f04191a651fcf8b715881bb9c1098d9f13acc27
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+93086cfebfccb79083c59d0d3b2052944bba643c" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 3b7c9990b35999bdf44cdd070248f48ec38db1092958475992c6acd252d895bb
[INFO] running `Command { std: "docker" "start" "-a" "3b7c9990b35999bdf44cdd070248f48ec38db1092958475992c6acd252d895bb", kill_on_drop: false }`
[INFO] [stderr]    Compiling autocfg v1.0.0
[INFO] [stderr]     Checking lazy_static v1.4.0
[INFO] [stderr]    Compiling libc v0.2.68
[INFO] [stderr]     Checking cfg-if v0.1.10
[INFO] [stderr]    Compiling memchr v2.3.3
[INFO] [stderr]    Compiling maybe-uninit v2.0.0
[INFO] [stderr]    Compiling getrandom v0.1.14
[INFO] [stderr]     Checking scopeguard v1.1.0
[INFO] [stderr]    Compiling semver-parser v0.7.0
[INFO] [stderr]    Compiling serde v1.0.105
[INFO] [stderr]     Checking thread_local v1.0.1
[INFO] [stderr]    Compiling num-traits v0.2.11
[INFO] [stderr]    Compiling crossbeam-utils v0.7.2
[INFO] [stderr]    Compiling memoffset v0.5.4
[INFO] [stderr]    Compiling crossbeam-epoch v0.8.2
[INFO] [stderr]    Compiling semver v0.9.0
[INFO] [stderr]     Checking regex-syntax v0.6.17
[INFO] [stderr]    Compiling ryu v1.0.3
[INFO] [stderr]     Checking either v1.5.3
[INFO] [stderr]     Checking aho-corasick v0.7.10
[INFO] [stderr]    Compiling proc-macro2 v1.0.10
[INFO] [stderr]    Compiling rayon-core v1.7.0
[INFO] [stderr]    Compiling byteorder v1.3.4
[INFO] [stderr]     Checking num_cpus v1.12.0
[INFO] [stderr]     Checking crossbeam-queue v0.2.1
[INFO] [stderr]    Compiling rustc_version v0.2.3
[INFO] [stderr]    Compiling num-integer v0.1.42
[INFO] [stderr]    Compiling unicode-xid v0.2.0
[INFO] [stderr]     Checking crossbeam-deque v0.7.3
[INFO] [stderr]     Checking rand_core v0.5.1
[INFO] [stderr]    Compiling cast v0.2.3
[INFO] [stderr]     Checking ppv-lite86 v0.2.6
[INFO] [stderr]     Checking itoa v0.4.5
[INFO] [stderr]    Compiling bitflags v1.2.1
[INFO] [stderr]    Compiling syn v1.0.17
[INFO] [stderr]     Checking rayon v1.3.0
[INFO] [stderr]     Checking regex-automata v0.1.9
[INFO] [stderr]     Checking rand_chacha v0.2.2
[INFO] [stderr]     Checking time v0.1.42
[INFO] [stderr]    Compiling quote v1.0.3
[INFO] [stderr]     Checking unicode-width v0.1.7
[INFO] [stderr]     Checking rand v0.7.3
[INFO] [stderr]     Checking textwrap v0.11.0
[INFO] [stderr]     Checking chrono v0.4.11
[INFO] [stderr]     Checking itertools v0.8.2
[INFO] [stderr]     Checking csv-core v0.1.10
[INFO] [stderr]     Checking walkdir v2.3.1
[INFO] [stderr]     Checking clap v2.33.0
[INFO] [stderr]     Checking regex v1.3.6
[INFO] [stderr]     Checking plotters v0.2.12
[INFO] [stderr]     Checking atty v0.2.14
[INFO] [stderr]     Checking oorandom v11.1.0
[INFO] [stderr]     Checking interaction v0.1.0 (/opt/rustwide/workdir/interaction)
[INFO] [stderr]     Checking criterion-plot v0.4.1
[INFO] [stderr]     Checking structure v0.1.0 (/opt/rustwide/workdir/structure)
[INFO] [stdout] warning: unnecessary parentheses around function argument
[INFO] [stdout]    --> structure/src/time.rs:243:27
[INFO] [stdout]     |
[INFO] [stdout] 243 |         Years(usize::from((self.into_minutes() / 60 / 24 / 365)) as YearsType)
[INFO] [stdout]     |                           ^                                   ^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 243 -         Years(usize::from((self.into_minutes() / 60 / 24 / 365)) as YearsType)
[INFO] [stdout] 243 +         Years(usize::from(self.into_minutes() / 60 / 24 / 365 ) as YearsType)
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around function argument
[INFO] [stdout]    --> structure/src/time.rs:243:27
[INFO] [stdout]     |
[INFO] [stdout] 243 |         Years(usize::from((self.into_minutes() / 60 / 24 / 365)) as YearsType)
[INFO] [stdout]     |                           ^                                   ^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 243 -         Years(usize::from((self.into_minutes() / 60 / 24 / 365)) as YearsType)
[INFO] [stdout] 243 +         Years(usize::from(self.into_minutes() / 60 / 24 / 365 ) as YearsType)
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> structure/src/graph.rs:351:13
[INFO] [stdout]     |
[INFO] [stdout] 351 |         let mut g_prime = g.clone();
[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: method `add_nodes` is never used
[INFO] [stdout]    --> structure/src/graph.rs:192:8
[INFO] [stdout]     |
[INFO] [stdout] 187 | / impl<ID, W, T> Graph<ID, W, T>
[INFO] [stdout] 188 | | where
[INFO] [stdout] 189 | |     ID: Eq + Hash + Copy,
[INFO] [stdout] 190 | |     T: Copy,
[INFO] [stdout]     | |____________- method in this implementation
[INFO] [stdout] 191 |   {
[INFO] [stdout] 192 |       fn add_nodes<I>(&mut self, id: I, value: T) -> GraphResult<ID>
[INFO] [stdout]     |          ^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `add_edge_default` is never used
[INFO] [stdout]    --> structure/src/graph.rs:229:8
[INFO] [stdout]     |
[INFO] [stdout] 222 | / impl<ID, W, T> Graph<ID, W, T>
[INFO] [stdout] 223 | | where
[INFO] [stdout] 224 | |     ID: Eq + Hash + Copy,
[INFO] [stdout] 225 | |     W: Default,
[INFO] [stdout]     | |_______________- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 229 |       fn add_edge_default(&mut self, u: ID, v: ID) -> GraphResult<ID> {
[INFO] [stdout]     |          ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Checking infection v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `std::borrow::Borrow`
[INFO] [stdout]  --> src/game/mod.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::borrow::Borrow;
[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: `Deref`
[INFO] [stdout]  --> src/game/mod.rs:3:27
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::ops::{AddAssign, Deref};
[INFO] [stdout]   |                           ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Borrow`
[INFO] [stdout]  --> src/game/pathogen/mod.rs:1:19
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::borrow::{Borrow, BorrowMut};
[INFO] [stdout]   |                   ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Error`
[INFO] [stdout]  --> src/game/pathogen/mod.rs:3:23
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::fmt::{Debug, Error, Formatter, Result};
[INFO] [stdout]   |                       ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::io::Read`
[INFO] [stdout]  --> src/game/pathogen/mod.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use std::io::Read;
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::rc::Rc`
[INFO] [stdout]  --> src/game/pathogen/mod.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use std::rc::Rc;
[INFO] [stdout]   |     ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `rand::Rng`
[INFO] [stdout]  --> src/game/pathogen/mod.rs:8:5
[INFO] [stdout]   |
[INFO] [stdout] 8 | use rand::Rng;
[INFO] [stdout]   |     ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `TimeUnit`
[INFO] [stdout]   --> src/game/pathogen/mod.rs:11:29
[INFO] [stdout]    |
[INFO] [stdout] 11 | use structure::time::{Time, TimeUnit};
[INFO] [stdout]    |                             ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::rc::Rc`
[INFO] [stdout]  --> src/game/pathogen/infection.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::rc::Rc;
[INFO] [stdout]   |     ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `rand::distributions::Distribution`
[INFO] [stdout]  --> src/game/pathogen/infection.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use rand::distributions::Distribution;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Error`
[INFO] [stdout]  --> src/game/pathogen/symptoms.rs:1:23
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::fmt::{Debug, Error, Formatter, Result};
[INFO] [stdout]   |                       ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::ops::Deref`
[INFO] [stdout]  --> src/game/pathogen/symptoms.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::ops::Deref;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::rc::Rc`
[INFO] [stdout]  --> src/game/pathogen/symptoms.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::rc::Rc;
[INFO] [stdout]   |     ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::cell::RefCell`
[INFO] [stdout]    --> src/game/pathogen/symptoms.rs:315:9
[INFO] [stdout]     |
[INFO] [stdout] 315 |     use std::cell::RefCell;
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Mutex`
[INFO] [stdout]    --> src/game/pathogen/symptoms.rs:316:26
[INFO] [stdout]     |
[INFO] [stdout] 316 |     use std::sync::{Arc, Mutex};
[INFO] [stdout]     |                          ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::collections::hash_map::RandomState`
[INFO] [stdout]  --> src/game/pathogen/types.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::collections::hash_map::RandomState;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::rc::Rc`
[INFO] [stdout]  --> src/game/pathogen/types.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::rc::Rc;
[INFO] [stdout]   |     ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `BorrowMut` and `Borrow`
[INFO] [stdout]  --> src/game/population/mod.rs:1:19
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::borrow::{Borrow, BorrowMut};
[INFO] [stdout]   |                   ^^^^^^  ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `RefCell` and `Ref`
[INFO] [stdout]  --> src/game/population/mod.rs:2:17
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::cell::{Ref, RefCell};
[INFO] [stdout]   |                 ^^^  ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Ordering` and `min`
[INFO] [stdout]  --> src/game/population/mod.rs:3:16
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::cmp::{min, Ordering};
[INFO] [stdout]   |                ^^^  ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Error`
[INFO] [stdout]  --> src/game/population/mod.rs:4:32
[INFO] [stdout]   |
[INFO] [stdout] 4 | use std::fmt::{Debug, Display, Error, Formatter, Result};
[INFO] [stdout]   |                                ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::mem`
[INFO] [stdout]  --> src/game/population/mod.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use std::mem;
[INFO] [stdout]   |     ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::ops::DerefMut`
[INFO] [stdout]  --> src/game/population/mod.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 6 | use std::ops::DerefMut;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::rc::Rc`
[INFO] [stdout]  --> src/game/population/mod.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 7 | use std::rc::Rc;
[INFO] [stdout]   |     ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `MutexGuard`, `PoisonError`, and `RwLockReadGuard`
[INFO] [stdout]  --> src/game/population/mod.rs:8:29
[INFO] [stdout]   |
[INFO] [stdout] 8 | use std::sync::{Arc, Mutex, MutexGuard, PoisonError, RwLock, RwLockReadGuard};
[INFO] [stdout]   |                             ^^^^^^^^^^  ^^^^^^^^^^^          ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::sync::atomic::AtomicBool`
[INFO] [stdout]  --> src/game/population/mod.rs:9:5
[INFO] [stdout]   |
[INFO] [stdout] 9 | use std::sync::atomic::AtomicBool;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::sync::atomic::Ordering::Relaxed`
[INFO] [stdout]   --> src/game/population/mod.rs:10:5
[INFO] [stdout]    |
[INFO] [stdout] 10 | use std::sync::atomic::Ordering::Relaxed;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::game::pathogen::symptoms::Symp`
[INFO] [stdout]   --> src/game/population/mod.rs:19:5
[INFO] [stdout]    |
[INFO] [stdout] 19 | use crate::game::pathogen::symptoms::Symp;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::time::Duration`
[INFO] [stdout]  --> src/game/population/person_behavior/mod.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::time::Duration;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Write` and `stdout`
[INFO] [stdout]  --> src/game/population/person_behavior/interaction.rs:1:15
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::io::{stdout, Write};
[INFO] [stdout]   |               ^^^^^^  ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `RwLockReadGuard`, `RwLockWriteGuard`, and `TryLockError`
[INFO] [stdout]  --> src/game/population/person_behavior/interaction.rs:2:29
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::sync::{Arc, Mutex, RwLockReadGuard, RwLockWriteGuard, TryLockError};
[INFO] [stdout]   |                             ^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `rand::seq::IteratorRandom`
[INFO] [stdout]  --> src/game/population/person_behavior/interaction.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use rand::seq::IteratorRandom;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::game::pathogen::infection::Infection`
[INFO] [stdout]  --> src/game/population/person_behavior/interaction.rs:8:5
[INFO] [stdout]   |
[INFO] [stdout] 8 | use crate::game::pathogen::infection::Infection;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Person`
[INFO] [stdout]  --> src/game/population/person_behavior/interaction.rs:9:31
[INFO] [stdout]   |
[INFO] [stdout] 9 | use crate::game::population::{Person, Population};
[INFO] [stdout]   |                               ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/game/population/person_behavior/interaction.rs:76:41
[INFO] [stdout]    |
[INFO] [stdout] 76 | ...                   let mut arc = arc.unwrap(); // we know we have some value
[INFO] [stdout]    |                           ----^^^
[INFO] [stdout]    |                           |
[INFO] [stdout]    |                           help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/game/population/person_behavior/interaction.rs:35:13
[INFO] [stdout]    |
[INFO] [stdout] 35 |         let mut new_add = Arc::new(Mutex::new(vec![]));
[INFO] [stdout]    |             ----^^^^^^^
[INFO] [stdout]    |             |
[INFO] [stdout]    |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `i`
[INFO] [stdout]   --> src/game/population/person_behavior/interaction.rs:67:45
[INFO] [stdout]    |
[INFO] [stdout] 67 | ...                   'inner: for i in 0..pop_size {
[INFO] [stdout]    |                                   ^ help: if this is intentional, prefix it with an underscore: `_i`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/game/population/mod.rs:240:21
[INFO] [stdout]     |
[INFO] [stdout] 240 |                 let mut lock = self.infection.lock();
[INFO] [stdout]     |                     ----^^^^
[INFO] [stdout]     |                     |
[INFO] [stdout]     |                     help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `i`
[INFO] [stdout]    --> src/game/population/mod.rs:377:25
[INFO] [stdout]     |
[INFO] [stdout] 377 |                         i => 100.0,
[INFO] [stdout]     |                         ^ help: if this is intentional, prefix it with an underscore: `_i`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `delta_time`
[INFO] [stdout]    --> src/game/population/mod.rs:476:40
[INFO] [stdout]     |
[INFO] [stdout] 476 |     fn parallel_update_self(&mut self, delta_time: usize) {
[INFO] [stdout]     |                                        ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_delta_time`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: taking a mutable reference to a `const` item
[INFO] [stdout]    --> src/game/mod.rs:102:24
[INFO] [stdout]     |
[INFO] [stdout] 102 |     while delta_time < &mut TICKS_TO_GAME_MIN {
[INFO] [stdout]     |                        ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: each usage of a `const` item creates a new temporary
[INFO] [stdout]     = note: the mutable reference will refer to this temporary, not the original `const` item
[INFO] [stdout] note: `const` item defined here
[INFO] [stdout]    --> src/game/mod.rs:26:1
[INFO] [stdout]     |
[INFO] [stdout]  26 | const TICKS_TO_GAME_MIN: usize = 20;
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     = note: `#[warn(const_item_mutation)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `USE_PARALLEL` is never used
[INFO] [stdout]   --> src/game/mod.rs:81:7
[INFO] [stdout]    |
[INFO] [stdout] 81 | const USE_PARALLEL: bool = true;
[INFO] [stdout]    |       ^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: struct `Chunk` is never constructed
[INFO] [stdout]  --> src/game/board.rs:7:12
[INFO] [stdout]   |
[INFO] [stdout] 7 | pub struct Chunk {
[INFO] [stdout]   |            ^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: this `pub` struct has private fields, no public constructor, and is not otherwise reachable through the external API, so consider providing a public constructor or removing it
[INFO] [stdout]   = note: `#[deny(unused_unconstructable_pub_structs)]` (part of `#[deny(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: struct `GameBoard` is never constructed
[INFO] [stdout]   --> src/game/board.rs:40:12
[INFO] [stdout]    |
[INFO] [stdout] 40 | pub struct GameBoard {
[INFO] [stdout]    |            ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this `pub` struct has private fields, no public constructor, and is not otherwise reachable through the external API, so consider providing a public constructor or removing it
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `population` and `size` are never read
[INFO] [stdout]  --> src/game/board.rs:8:5
[INFO] [stdout]   |
[INFO] [stdout] 7 | pub struct Chunk {
[INFO] [stdout]   |            ----- fields in this struct
[INFO] [stdout] 8 |     population: usize,
[INFO] [stdout]   |     ^^^^^^^^^^
[INFO] [stdout] 9 |     size: f64,
[INFO] [stdout]   |     ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `chunk_graph` is never read
[INFO] [stdout]   --> src/game/board.rs:41:5
[INFO] [stdout]    |
[INFO] [stdout] 40 | pub struct GameBoard {
[INFO] [stdout]    |            --------- field in this struct
[INFO] [stdout] 41 |     chunk_graph: Graph<usize, Adjacency, Chunk>,
[INFO] [stdout]    |     ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `mutation` is never read
[INFO] [stdout]   --> src/game/pathogen/mod.rs:30:5
[INFO] [stdout]    |
[INFO] [stdout] 23 | pub struct Pathogen {
[INFO] [stdout]    |            -------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 30 |     mutation: f64,                 // chance on new infection the pathogen mutates
[INFO] [stdout]    |     ^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Pathogen` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `add_recovery_symptom` is never used
[INFO] [stdout]    --> src/game/pathogen/mod.rs:208:8
[INFO] [stdout]     |
[INFO] [stdout]  45 | impl Pathogen {
[INFO] [stdout]     | ------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 208 |     fn add_recovery_symptom<F>(&mut self, function: F)
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `modifiers` is never read
[INFO] [stdout]   --> src/game/population/mod.rs:61:5
[INFO] [stdout]    |
[INFO] [stdout] 54 | pub struct Person {
[INFO] [stdout]    |            ------ field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 61 |     modifiers: Mutex<Vec<Box<dyn HealthModifier + Sync + Send>>>,
[INFO] [stdout]    |     ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `factory` and `growth_rate` are never read
[INFO] [stdout]    --> src/game/population/mod.rs:327:5
[INFO] [stdout]     |
[INFO] [stdout] 326 | pub struct Population {
[INFO] [stdout]     |            ---------- fields in this struct
[INFO] [stdout] 327 |     factory: Arc<Mutex<PersonBuilder>>,
[INFO] [stdout]     |     ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 332 |     growth_rate: f64,
[INFO] [stdout]     |     ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing
[INFO] [stdout]    --> src/game/pathogen/symptoms.rs:241:16
[INFO] [stdout]     |
[INFO] [stdout] 241 |     pub fn add(&mut self, symptom: Symptom) -> SymptomMapBuilderEntry {
[INFO] [stdout]     |                ^^^^^^^^^                       ^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here
[INFO] [stdout]     |                |
[INFO] [stdout]     |                the lifetime is elided here
[INFO] [stdout]     |
[INFO] [stdout]     = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
[INFO] [stdout]     = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default
[INFO] [stdout] help: use `'_` for type paths
[INFO] [stdout]     |
[INFO] [stdout] 241 |     pub fn add(&mut self, symptom: Symptom) -> SymptomMapBuilderEntry<'_> {
[INFO] [stdout]     |                                                                      ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing
[INFO] [stdout]    --> src/game/pathogen/symptoms.rs:288:9
[INFO] [stdout]     |
[INFO] [stdout] 288 |         &mut self,
[INFO] [stdout]     |         ^^^^^^^^^ the lifetime is elided here
[INFO] [stdout] ...
[INFO] [stdout] 291 |     ) -> SymptomMapBuilderEntry {
[INFO] [stdout]     |          ^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here
[INFO] [stdout]     |
[INFO] [stdout]     = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
[INFO] [stdout] help: use `'_` for type paths
[INFO] [stdout]     |
[INFO] [stdout] 291 |     ) -> SymptomMapBuilderEntry<'_> {
[INFO] [stdout]     |                                ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/game/pathogen/symptoms.rs:306:13
[INFO] [stdout]     |
[INFO] [stdout] 306 | /             self.map_builder
[INFO] [stdout] 307 | |                 .add_next_symptom(self.node, next, mutation_chance);
[INFO] [stdout]     | |___________________________________________________________________^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout]     = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 306 |             let _ = self.map_builder
[INFO] [stdout]     |             +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `infection` (lib) due to 2 previous errors; 51 warnings emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] running `Command { std: "docker" "inspect" "3b7c9990b35999bdf44cdd070248f48ec38db1092958475992c6acd252d895bb", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "3b7c9990b35999bdf44cdd070248f48ec38db1092958475992c6acd252d895bb", kill_on_drop: false }`
[INFO] [stdout] 3b7c9990b35999bdf44cdd070248f48ec38db1092958475992c6acd252d895bb
