[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/afe8199626de3f5da35e161c871aa3ec6b536777 against try#4d98531622e1718ae0bc3c7a1ab9cd8938428452+rustflags=-Dtail_expr_drop_order for pr-129604 [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] [stderr] Updating files: 100% (272/272) Updating files: 100% (272/272), done. [INFO] validating manifest of git repo https://github.com/JoshuaRadin37/Infection on toolchain 4d98531622e1718ae0bc3c7a1ab9cd8938428452 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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] 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" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] dc138e3e3196c2938b4828847401d741916e0200f45067c2093798d7ba476473 [INFO] running `Command { std: "docker" "start" "-a" "dc138e3e3196c2938b4828847401d741916e0200f45067c2093798d7ba476473", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "dc138e3e3196c2938b4828847401d741916e0200f45067c2093798d7ba476473", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dc138e3e3196c2938b4828847401d741916e0200f45067c2093798d7ba476473", kill_on_drop: false }` [INFO] [stdout] dc138e3e3196c2938b4828847401d741916e0200f45067c2093798d7ba476473 [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 -Dtail_expr_drop_order" "-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" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4845567de18b0f9a572eca395544604bcf0837f2e246fe5e16a763e82ba25e68 [INFO] running `Command { std: "docker" "start" "-a" "4845567de18b0f9a572eca395544604bcf0837f2e246fe5e16a763e82ba25e68", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.0.0 [INFO] [stderr] Compiling libc v0.2.68 [INFO] [stderr] Compiling memchr v2.3.3 [INFO] [stderr] Compiling maybe-uninit v2.0.0 [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Compiling serde v1.0.105 [INFO] [stderr] Compiling getrandom v0.1.14 [INFO] [stderr] Checking either v1.5.3 [INFO] [stderr] Checking regex-syntax v0.6.17 [INFO] [stderr] Compiling rayon-core v1.7.0 [INFO] [stderr] Compiling ryu v1.0.3 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Compiling proc-macro2 v1.0.10 [INFO] [stderr] Checking thread_local v1.0.1 [INFO] [stderr] Compiling unicode-xid v0.2.0 [INFO] [stderr] Checking itoa v0.4.5 [INFO] [stderr] Checking ppv-lite86 v0.2.6 [INFO] [stderr] Compiling syn v1.0.17 [INFO] [stderr] Checking unicode-width v0.1.7 [INFO] [stderr] Checking itertools v0.8.2 [INFO] [stderr] Checking walkdir v2.3.1 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Checking oorandom v11.1.0 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Checking interaction v0.1.0 (/opt/rustwide/workdir/interaction) [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 num-integer v0.1.42 [INFO] [stderr] Checking clap v2.33.0 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Checking aho-corasick v0.7.10 [INFO] [stderr] Checking csv-core v0.1.10 [INFO] [stderr] Checking regex-automata v0.1.9 [INFO] [stderr] Compiling cast v0.2.3 [INFO] [stderr] Compiling quote v1.0.3 [INFO] [stderr] Checking crossbeam-queue v0.2.1 [INFO] [stderr] Checking num_cpus v1.12.0 [INFO] [stderr] Checking time v0.1.42 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking criterion-plot v0.4.1 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking crossbeam-deque v0.7.3 [INFO] [stderr] Checking plotters v0.2.12 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking chrono v0.4.11 [INFO] [stderr] Checking rayon v1.3.0 [INFO] [stderr] Checking regex v1.3.6 [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)]` 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)]` 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] [stderr] Checking bstr v0.2.12 [INFO] [stderr] Checking serde_json v1.0.50 [INFO] [stdout] warning: method `add_nodes` is never used [INFO] [stdout] --> structure/src/graph.rs:192:8 [INFO] [stdout] | [INFO] [stdout] 187 | / impl Graph [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(&mut self, id: I, value: T) -> GraphResult [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` 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 Graph [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 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [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)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [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)]` 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] [stderr] Checking csv v1.1.3 [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)]` 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: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)]` 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: 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)]` on by default [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, [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(&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>>, [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>, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 332 | growth_rate: f64, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/game/pathogen/mod.rs:212:30 [INFO] [stdout] | [INFO] [stdout] 208 | fn add_recovery_symptom(&mut self, function: F) [INFO] [stdout] | ----------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 212 | self.on_recover.push(Arc::new(function)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [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)]` 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] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/game/pathogen/types.rs:84:10 [INFO] [stdout] | [INFO] [stdout] 74 | let mut builder = SymptomMapBuilder::new(); [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 75 | let mut set = HashSet::new(); [INFO] [stdout] | --- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 84 | (builder.get_map(), set) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/game/population/mod.rs:398:22 [INFO] [stdout] | [INFO] [stdout] 357 | population_distribution: T, [INFO] [stdout] | -------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 358 | ) -> Self { [INFO] [stdout] 359 | let mut pop = Vec::new(); [INFO] [stdout] | --- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 398 | factory: builder.clone(), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/game/population/mod.rs:402:23 [INFO] [stdout] | [INFO] [stdout] 357 | population_distribution: T, [INFO] [stdout] | -------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 358 | ) -> Self { [INFO] [stdout] 359 | let mut pop = Vec::new(); [INFO] [stdout] | --- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 402 | infected: Vec::new(), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/game/population/mod.rs:444:27 [INFO] [stdout] | [INFO] [stdout] 444 | .position(|p| p.read().unwrap().id == person.read().unwrap().id); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/game/population/mod.rs:444:51 [INFO] [stdout] | [INFO] [stdout] 444 | .position(|p| p.read().unwrap().id == person.read().unwrap().id); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors; 49 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `infection` (lib) due to 7 previous errors; 49 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] running `Command { std: "docker" "inspect" "4845567de18b0f9a572eca395544604bcf0837f2e246fe5e16a763e82ba25e68", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4845567de18b0f9a572eca395544604bcf0837f2e246fe5e16a763e82ba25e68", kill_on_drop: false }` [INFO] [stdout] 4845567de18b0f9a572eca395544604bcf0837f2e246fe5e16a763e82ba25e68