[INFO] cloning repository https://github.com/LukeMurrayKearney/nd_rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/LukeMurrayKearney/nd_rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLukeMurrayKearney%2Fnd_rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLukeMurrayKearney%2Fnd_rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] cfb1dd278810a5ee3e296b568a4524de86bf354e [INFO] checking LukeMurrayKearney/nd_rust against try#4f260f0f20b3133d20cfb50353c0221943af5796+rustflags=-Dunmustuse_in_always_ok for pr-148577 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLukeMurrayKearney%2Fnd_rust" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/LukeMurrayKearney/nd_rust [INFO] finished tweaking git repo https://github.com/LukeMurrayKearney/nd_rust [INFO] tweaked toml for git repo https://github.com/LukeMurrayKearney/nd_rust written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/LukeMurrayKearney/nd_rust on toolchain 4f260f0f20b3133d20cfb50353c0221943af5796 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/LukeMurrayKearney/nd_rust 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" "+4f260f0f20b3133d20cfb50353c0221943af5796" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] dade89bdfe752687f7e52d7fbb881d5e0d307b52c3b56b7894727d10d2a35b90 [INFO] running `Command { std: "docker" "start" "-a" "dade89bdfe752687f7e52d7fbb881d5e0d307b52c3b56b7894727d10d2a35b90", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "dade89bdfe752687f7e52d7fbb881d5e0d307b52c3b56b7894727d10d2a35b90", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dade89bdfe752687f7e52d7fbb881d5e0d307b52c3b56b7894727d10d2a35b90", kill_on_drop: false }` [INFO] [stdout] dade89bdfe752687f7e52d7fbb881d5e0d307b52c3b56b7894727d10d2a35b90 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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 -Dunmustuse_in_always_ok" "-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] dd72432eca390761aa8cde99121be3a62d777053ef83c8168dfb4220044f7e02 [INFO] running `Command { std: "docker" "start" "-a" "dd72432eca390761aa8cde99121be3a62d777053ef83c8168dfb4220044f7e02", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.83 [INFO] [stderr] Compiling libm v0.2.8 [INFO] [stderr] Compiling serde v1.0.202 [INFO] [stderr] Compiling target-lexicon v0.12.14 [INFO] [stderr] Compiling slog v2.7.0 [INFO] [stderr] Checking bytemuck v1.16.0 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling matrixmultiply v0.3.8 [INFO] [stderr] Compiling time-macros v0.2.18 [INFO] [stderr] Compiling thiserror v1.0.61 [INFO] [stderr] Compiling anyhow v1.0.86 [INFO] [stderr] Checking dirs-sys-next v0.1.2 [INFO] [stderr] Compiling serde_json v1.0.117 [INFO] [stderr] Checking thread_local v1.1.8 [INFO] [stderr] Checking crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling memoffset v0.9.1 [INFO] [stderr] Compiling slog-async v2.8.0 [INFO] [stderr] Checking dirs-next v2.0.0 [INFO] [stderr] Checking is-terminal v0.4.12 [INFO] [stderr] Checking term v0.7.0 [INFO] [stderr] Checking safe_arch v0.7.1 [INFO] [stderr] Checking crossbeam-channel v0.5.13 [INFO] [stderr] Checking parking_lot v0.12.2 [INFO] [stderr] Checking unindent v0.2.3 [INFO] [stderr] Checking crossbeam-deque v0.8.5 [INFO] [stderr] Compiling indoc v2.0.5 [INFO] [stderr] Checking either v1.12.0 [INFO] [stderr] Checking rayon-core v1.12.1 [INFO] [stderr] Checking wide v0.7.19 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling syn v2.0.65 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling pyo3-build-config v0.21.2 [INFO] [stderr] Checking rayon v1.10.0 [INFO] [stderr] Checking time v0.3.36 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking num-complex v0.4.6 [INFO] [stderr] Checking approx v0.5.1 [INFO] [stderr] Checking num-rational v0.4.2 [INFO] [stderr] Compiling pyo3-ffi v0.21.2 [INFO] [stderr] Compiling pyo3 v0.21.2 [INFO] [stderr] Checking ndarray v0.16.1 [INFO] [stderr] Checking simba v0.6.0 [INFO] [stderr] Checking slog-term v2.9.1 [INFO] [stderr] Compiling nalgebra-macros v0.1.0 [INFO] [stderr] Compiling pyo3-macros-backend v0.21.2 [INFO] [stderr] Compiling serde_derive v1.0.202 [INFO] [stderr] Compiling thiserror-impl v1.0.61 [INFO] [stderr] Compiling pyo3-macros v0.21.2 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking bincode v1.3.3 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand_xoshiro v0.6.0 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking slog-json v2.6.1 [INFO] [stderr] Checking rand_distr v0.4.3 [INFO] [stderr] Checking argmin-math v0.3.0 [INFO] [stderr] Checking nalgebra v0.29.0 [INFO] [stderr] Checking argmin v0.9.0 [INFO] [stderr] Checking statrs v0.16.0 [INFO] [stderr] Checking nd_rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::env::current_dir` [INFO] [stdout] --> src/lib.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::env::current_dir; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> src/network_properties.rs:86:55 [INFO] [stdout] | [INFO] [stdout] 86 | network.degrees.iter().map(|°rees| ((degrees + 1) as f64)).collect() [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] 86 - network.degrees.iter().map(|°rees| ((degrees + 1) as f64)).collect() [INFO] [stdout] 86 + network.degrees.iter().map(|°rees| (degrees + 1) as f64 ).collect() [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> src/network_properties.rs:124:56 [INFO] [stdout] | [INFO] [stdout] 124 | _ => network.degrees.iter().map(|°rees| ((degrees + 1) as f64)).collect() [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 124 - _ => network.degrees.iter().map(|°rees| ((degrees + 1) as f64)).collect() [INFO] [stdout] 124 + _ => network.degrees.iter().map(|°rees| (degrees + 1) as f64 ).collect() [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> src/network_properties.rs:168:55 [INFO] [stdout] | [INFO] [stdout] 168 | network.degrees.iter().map(|°rees| ((degrees + 1) as f64)).collect() [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 168 - network.degrees.iter().map(|°rees| ((degrees + 1) as f64)).collect() [INFO] [stdout] 168 + network.degrees.iter().map(|°rees| (degrees + 1) as f64 ).collect() [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> src/network_properties.rs:206:56 [INFO] [stdout] | [INFO] [stdout] 206 | _ => network.degrees.iter().map(|°rees| ((degrees + 1) as f64)).collect() [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 206 - _ => network.degrees.iter().map(|°rees| ((degrees + 1) as f64)).collect() [INFO] [stdout] 206 + _ => network.degrees.iter().map(|°rees| (degrees + 1) as f64 ).collect() [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/run_model.rs:3:33 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::network_properties::{self, NetworkProperties, State}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ArrayBase` [INFO] [stdout] --> src/run_model.rs:11:23 [INFO] [stdout] | [INFO] [stdout] 11 | use ndarray::{Array1, ArrayBase}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env::current_dir` [INFO] [stdout] --> src/lib.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::env::current_dir; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> src/network_properties.rs:86:55 [INFO] [stdout] | [INFO] [stdout] 86 | network.degrees.iter().map(|°rees| ((degrees + 1) as f64)).collect() [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] 86 - network.degrees.iter().map(|°rees| ((degrees + 1) as f64)).collect() [INFO] [stdout] 86 + network.degrees.iter().map(|°rees| (degrees + 1) as f64 ).collect() [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> src/network_properties.rs:124:56 [INFO] [stdout] | [INFO] [stdout] 124 | _ => network.degrees.iter().map(|°rees| ((degrees + 1) as f64)).collect() [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 124 - _ => network.degrees.iter().map(|°rees| ((degrees + 1) as f64)).collect() [INFO] [stdout] 124 + _ => network.degrees.iter().map(|°rees| (degrees + 1) as f64 ).collect() [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> src/network_properties.rs:168:55 [INFO] [stdout] | [INFO] [stdout] 168 | network.degrees.iter().map(|°rees| ((degrees + 1) as f64)).collect() [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 168 - network.degrees.iter().map(|°rees| ((degrees + 1) as f64)).collect() [INFO] [stdout] 168 + network.degrees.iter().map(|°rees| (degrees + 1) as f64 ).collect() [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around closure body [INFO] [stdout] --> src/network_properties.rs:206:56 [INFO] [stdout] | [INFO] [stdout] 206 | _ => network.degrees.iter().map(|°rees| ((degrees + 1) as f64)).collect() [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 206 - _ => network.degrees.iter().map(|°rees| ((degrees + 1) as f64)).collect() [INFO] [stdout] 206 + _ => network.degrees.iter().map(|°rees| (degrees + 1) as f64 ).collect() [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/run_model.rs:3:33 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::network_properties::{self, NetworkProperties, State}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ArrayBase` [INFO] [stdout] --> src/run_model.rs:11:23 [INFO] [stdout] | [INFO] [stdout] 11 | use ndarray::{Array1, ArrayBase}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `alpha` is never read [INFO] [stdout] --> src/dpln.rs:278:25 [INFO] [stdout] | [INFO] [stdout] 278 | let mut alpha = 0.; [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `beta` is never read [INFO] [stdout] --> src/dpln.rs:279:24 [INFO] [stdout] | [INFO] [stdout] 279 | let mut beta = 0.; [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/run_model.rs:139:13 [INFO] [stdout] | [INFO] [stdout] 139 | let mut Laprop = &La_t + λ [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time_infec` [INFO] [stdout] --> src/run_model.rs:230:33 [INFO] [stdout] | [INFO] [stdout] 230 | ... let time_infec = tt - t[I_events.iter().position(|&x| x == (j as i64)).unwrap()]; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_time_infec` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `alpha` is never read [INFO] [stdout] --> src/dpln.rs:278:25 [INFO] [stdout] | [INFO] [stdout] 278 | let mut alpha = 0.; [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `beta` is never read [INFO] [stdout] --> src/dpln.rs:279:24 [INFO] [stdout] | [INFO] [stdout] 279 | let mut beta = 0.; [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/lib.rs:128:30 [INFO] [stdout] | [INFO] [stdout] 128 | let (t,_,_,sir,sec_cases,geners, _) = run_model::run_sellke(&network, &mut properties.clone(), prop_infec, scaling); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sir` [INFO] [stdout] --> src/lib.rs:128:36 [INFO] [stdout] | [INFO] [stdout] 128 | let (t,_,_,sir,sec_cases,geners, _) = run_model::run_sellke(&network, &mut properties.clone(), prop_infec, scaling); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_sir` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:327:9 [INFO] [stdout] | [INFO] [stdout] 327 | let mut properties = network_properties::NetworkProperties::new(&network, &outbreak_params); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/lib.rs:314:17 [INFO] [stdout] | [INFO] [stdout] 314 | fn small_sellke(n: usize, adjacency_matrix: Vec>, ages: Vec, outbreak_params: Vec, prop_infec: f64,scaling... [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:358:9 [INFO] [stdout] | [INFO] [stdout] 358 | let mut properties = network_properties::NetworkProperties::new(&network, &outbreak_params); [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/run_model.rs:139:13 [INFO] [stdout] | [INFO] [stdout] 139 | let mut Laprop = &La_t + λ [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time_infec` [INFO] [stdout] --> src/run_model.rs:230:33 [INFO] [stdout] | [INFO] [stdout] 230 | ... let time_infec = tt - t[I_events.iter().position(|&x| x == (j as i64)).unwrap()]; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_time_infec` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `initialize_infection_sellke_rand` and `count_states_age` are never used [INFO] [stdout] --> src/network_properties.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 24 | impl NetworkProperties { [INFO] [stdout] | ---------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn initialize_infection_sellke_rand(&mut self, proportion_of_population: f64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 257 | pub fn count_states_age(&self, network: &NetworkStructure) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `update_sir_ages` is never used [INFO] [stdout] --> src/run_model.rs:342:4 [INFO] [stdout] | [INFO] [stdout] 342 | fn update_sir_ages(sir_ages: &mut Vec>>, infection: bool, age: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `I_events` should have a snake case name [INFO] [stdout] --> src/lib.rs:328:13 [INFO] [stdout] | [INFO] [stdout] 328 | let (t, I_events, R_events, sir, secondary_cases, generations, infected_by) = run_model::run_sellke(&network, &mut properties.clone()... [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `i_events` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `R_events` should have a snake case name [INFO] [stdout] --> src/lib.rs:328:23 [INFO] [stdout] | [INFO] [stdout] 328 | let (t, I_events, R_events, sir, secondary_cases, generations, infected_by) = run_model::run_sellke(&network, &mut properties.clone()... [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `r_events` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `I_events` should have a snake case name [INFO] [stdout] --> src/lib.rs:359:21 [INFO] [stdout] | [INFO] [stdout] 359 | let (mut t, mut I_events, mut R_events, mut sir): (Vec>, Vec>, Vec>, Vec>>) = (Vec::new(),V... [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `i_events` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `R_events` should have a snake case name [INFO] [stdout] --> src/lib.rs:359:35 [INFO] [stdout] | [INFO] [stdout] 359 | let (mut t, mut I_events, mut R_events, mut sir): (Vec>, Vec>, Vec>, Vec>>) = (Vec::new(),V... [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `r_events` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ArgminError` should have a snake case name [INFO] [stdout] --> src/lib.rs:597:17 [INFO] [stdout] | [INFO] [stdout] 597 | Err(ArgminError) => Err(PyErr::new::( [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `argmin_error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/lib.rs:604:1 [INFO] [stdout] | [INFO] [stdout] 604 | #[pyfunction] [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-D unmustuse-in-always-ok` [INFO] [stdout] = note: this error originates in the attribute macro `pyfunction` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/lib.rs:610:1 [INFO] [stdout] | [INFO] [stdout] 610 | #[pyfunction] [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the attribute macro `pyfunction` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `I_cur` should have a snake case name [INFO] [stdout] --> src/run_model.rs:79:13 [INFO] [stdout] | [INFO] [stdout] 79 | let mut I_cur: Vec = network_properties.nodal_states [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case (notice the capitalization): `i_cur` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `I_events` should have a snake case name [INFO] [stdout] --> src/run_model.rs:85:13 [INFO] [stdout] | [INFO] [stdout] 85 | let mut I_events: Vec = I_cur.iter().map(|&x| x as i64).collect(); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `i_events` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `R_events` should have a snake case name [INFO] [stdout] --> src/run_model.rs:86:13 [INFO] [stdout] | [INFO] [stdout] 86 | let mut R_events: Vec = vec![-1; I_events.len()]; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `r_events` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `I_periods` should have a snake case name [INFO] [stdout] --> src/run_model.rs:100:9 [INFO] [stdout] | [INFO] [stdout] 100 | let I_periods: Vec = (0..n).map(|_| exp_infectious.sample(&mut rng)).collect(); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `i_periods` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `La_t` should have a snake case name [INFO] [stdout] --> src/run_model.rs:122:13 [INFO] [stdout] | [INFO] [stdout] 122 | let mut La_t = Array1::::zeros(n); [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `la_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Laprop` should have a snake case name [INFO] [stdout] --> src/run_model.rs:139:17 [INFO] [stdout] | [INFO] [stdout] 139 | let mut Laprop = &La_t + λ [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `laprop` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `single_FOI` should have a snake case name [INFO] [stdout] --> src/run_model.rs:267:4 [INFO] [stdout] | [INFO] [stdout] 267 | fn single_FOI(degrees: (usize,usize), scaling: &str, scale_params: &ScaleParams) -> f64 { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `single_foi` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `nd_rust` (lib) due to 2 previous errors; 30 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/lib.rs:128:30 [INFO] [stdout] | [INFO] [stdout] 128 | let (t,_,_,sir,sec_cases,geners, _) = run_model::run_sellke(&network, &mut properties.clone(), prop_infec, scaling); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sir` [INFO] [stdout] --> src/lib.rs:128:36 [INFO] [stdout] | [INFO] [stdout] 128 | let (t,_,_,sir,sec_cases,geners, _) = run_model::run_sellke(&network, &mut properties.clone(), prop_infec, scaling); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_sir` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:327:9 [INFO] [stdout] | [INFO] [stdout] 327 | let mut properties = network_properties::NetworkProperties::new(&network, &outbreak_params); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/lib.rs:314:17 [INFO] [stdout] | [INFO] [stdout] 314 | fn small_sellke(n: usize, adjacency_matrix: Vec>, ages: Vec, outbreak_params: Vec, prop_infec: f64,scaling... [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:358:9 [INFO] [stdout] | [INFO] [stdout] 358 | let mut properties = network_properties::NetworkProperties::new(&network, &outbreak_params); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `initialize_infection_sellke_rand` and `count_states_age` are never used [INFO] [stdout] --> src/network_properties.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 24 | impl NetworkProperties { [INFO] [stdout] | ---------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn initialize_infection_sellke_rand(&mut self, proportion_of_population: f64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 257 | pub fn count_states_age(&self, network: &NetworkStructure) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `update_sir_ages` is never used [INFO] [stdout] --> src/run_model.rs:342:4 [INFO] [stdout] | [INFO] [stdout] 342 | fn update_sir_ages(sir_ages: &mut Vec>>, infection: bool, age: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `I_events` should have a snake case name [INFO] [stdout] --> src/lib.rs:328:13 [INFO] [stdout] | [INFO] [stdout] 328 | let (t, I_events, R_events, sir, secondary_cases, generations, infected_by) = run_model::run_sellke(&network, &mut properties.clone()... [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `i_events` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `R_events` should have a snake case name [INFO] [stdout] --> src/lib.rs:328:23 [INFO] [stdout] | [INFO] [stdout] 328 | let (t, I_events, R_events, sir, secondary_cases, generations, infected_by) = run_model::run_sellke(&network, &mut properties.clone()... [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `r_events` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `I_events` should have a snake case name [INFO] [stdout] --> src/lib.rs:359:21 [INFO] [stdout] | [INFO] [stdout] 359 | let (mut t, mut I_events, mut R_events, mut sir): (Vec>, Vec>, Vec>, Vec>>) = (Vec::new(),V... [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `i_events` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `R_events` should have a snake case name [INFO] [stdout] --> src/lib.rs:359:35 [INFO] [stdout] | [INFO] [stdout] 359 | let (mut t, mut I_events, mut R_events, mut sir): (Vec>, Vec>, Vec>, Vec>>) = (Vec::new(),V... [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `r_events` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `ArgminError` should have a snake case name [INFO] [stdout] --> src/lib.rs:597:17 [INFO] [stdout] | [INFO] [stdout] 597 | Err(ArgminError) => Err(PyErr::new::( [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `argmin_error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/lib.rs:604:1 [INFO] [stdout] | [INFO] [stdout] 604 | #[pyfunction] [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-D unmustuse-in-always-ok` [INFO] [stdout] = note: this error originates in the attribute macro `pyfunction` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/lib.rs:610:1 [INFO] [stdout] | [INFO] [stdout] 610 | #[pyfunction] [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the attribute macro `pyfunction` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `I_cur` should have a snake case name [INFO] [stdout] --> src/run_model.rs:79:13 [INFO] [stdout] | [INFO] [stdout] 79 | let mut I_cur: Vec = network_properties.nodal_states [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case (notice the capitalization): `i_cur` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `I_events` should have a snake case name [INFO] [stdout] --> src/run_model.rs:85:13 [INFO] [stdout] | [INFO] [stdout] 85 | let mut I_events: Vec = I_cur.iter().map(|&x| x as i64).collect(); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `i_events` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `R_events` should have a snake case name [INFO] [stdout] --> src/run_model.rs:86:13 [INFO] [stdout] | [INFO] [stdout] 86 | let mut R_events: Vec = vec![-1; I_events.len()]; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `r_events` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `I_periods` should have a snake case name [INFO] [stdout] --> src/run_model.rs:100:9 [INFO] [stdout] | [INFO] [stdout] 100 | let I_periods: Vec = (0..n).map(|_| exp_infectious.sample(&mut rng)).collect(); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `i_periods` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `La_t` should have a snake case name [INFO] [stdout] --> src/run_model.rs:122:13 [INFO] [stdout] | [INFO] [stdout] 122 | let mut La_t = Array1::::zeros(n); [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `la_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Laprop` should have a snake case name [INFO] [stdout] --> src/run_model.rs:139:17 [INFO] [stdout] | [INFO] [stdout] 139 | let mut Laprop = &La_t + λ [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `laprop` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `single_FOI` should have a snake case name [INFO] [stdout] --> src/run_model.rs:267:4 [INFO] [stdout] | [INFO] [stdout] 267 | fn single_FOI(degrees: (usize,usize), scaling: &str, scale_params: &ScaleParams) -> f64 { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `single_foi` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `nd_rust` (lib test) due to 2 previous errors; 30 warnings emitted [INFO] running `Command { std: "docker" "inspect" "dd72432eca390761aa8cde99121be3a62d777053ef83c8168dfb4220044f7e02", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dd72432eca390761aa8cde99121be3a62d777053ef83c8168dfb4220044f7e02", kill_on_drop: false }` [INFO] [stdout] dd72432eca390761aa8cde99121be3a62d777053ef83c8168dfb4220044f7e02