[INFO] fetching crate evo-rl 0.1.0-alpha.4... [INFO] checking evo-rl-0.1.0-alpha.4 against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] extracting crate evo-rl 0.1.0-alpha.4 into /workspace/builds/worker-2-tc2/source [INFO] validating manifest of crates.io crate evo-rl 0.1.0-alpha.4 on toolchain ccf408f4326a858c00dd845a64a86b16f360a801 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate evo-rl 0.1.0-alpha.4 [INFO] finished tweaking crates.io crate evo-rl 0.1.0-alpha.4 [INFO] tweaked toml for crates.io crate evo-rl 0.1.0-alpha.4 written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 95 packages to latest compatible versions [INFO] [stderr] Adding env_logger v0.10.2 (available: v0.11.5) [INFO] [stderr] Adding fixedbitset v0.4.2 (available: v0.5.7) [INFO] [stderr] Adding heck v0.4.1 (available: v0.5.0) [INFO] [stderr] Adding nalgebra v0.32.6 (available: v0.33.0) [INFO] [stderr] Adding ndarray v0.15.6 (available: v0.16.1) [INFO] [stderr] Adding pyo3 v0.20.3 (available: v0.22.3) [INFO] [stderr] Adding pyo3-build-config v0.20.3 (available: v0.22.3) [INFO] [stderr] Adding pyo3-build-config v0.21.2 (available: v0.22.3) [INFO] [stderr] Adding pyo3-ffi v0.20.3 (available: v0.22.3) [INFO] [stderr] Adding pyo3-log v0.9.0 (available: v0.11.0) [INFO] [stderr] Adding pyo3-macros v0.20.3 (available: v0.22.3) [INFO] [stderr] Adding pyo3-macros-backend v0.20.3 (available: v0.22.3) [INFO] [stderr] Adding rand_seeder v0.2.3 (available: v0.3.0) [INFO] [stderr] Adding simba v0.8.1 (available: v0.9.0) [INFO] [stderr] Adding wasi v0.11.0+wasi-snapshot-preview1 (available: v0.13.2+wasi-0.2.1) [INFO] [stderr] Adding windows-sys v0.52.0 (available: v0.59.0) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4f5c0c756f050dc85135af1380622e560d14c4af3a640da895bae3ac92070fcf [INFO] running `Command { std: "docker" "start" "-a" "4f5c0c756f050dc85135af1380622e560d14c4af3a640da895bae3ac92070fcf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4f5c0c756f050dc85135af1380622e560d14c4af3a640da895bae3ac92070fcf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4f5c0c756f050dc85135af1380622e560d14c4af3a640da895bae3ac92070fcf", kill_on_drop: false }` [INFO] [stdout] 4f5c0c756f050dc85135af1380622e560d14c4af3a640da895bae3ac92070fcf [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 25377d4ad7b7259b5aa4bcc8997280fea4fa2a8bc83b60f918a4724dc79066a2 [INFO] running `Command { std: "docker" "start" "-a" "25377d4ad7b7259b5aa4bcc8997280fea4fa2a8bc83b60f918a4724dc79066a2", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Migrating Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Compiling target-lexicon v0.12.16 [INFO] [stderr] Compiling libm v0.2.8 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling memoffset v0.9.1 [INFO] [stderr] Compiling matrixmultiply v0.3.9 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Compiling portable-atomic v1.8.0 [INFO] [stderr] Compiling serde v1.0.210 [INFO] [stderr] Checking regex-syntax v0.8.4 [INFO] [stderr] Checking bytemuck v1.18.0 [INFO] [stderr] Checking log v0.4.22 [INFO] [stderr] Checking rawpointer v0.2.1 [INFO] [stderr] Compiling syn v2.0.77 [INFO] [stderr] Checking is-terminal v0.4.13 [INFO] [stderr] Checking termcolor v1.4.1 [INFO] [stderr] Checking unindent v0.2.3 [INFO] [stderr] Checking humantime v2.1.0 [INFO] [stderr] Compiling indoc v2.0.5 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Checking safe_arch v0.7.2 [INFO] [stderr] Checking arc-swap v1.7.1 [INFO] [stderr] Checking rand_seeder v0.2.3 [INFO] [stderr] Checking lazy_static v1.5.0 [INFO] [stderr] Checking assert_matches v1.5.0 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Checking wide v0.7.28 [INFO] [stderr] Compiling pyo3-build-config v0.20.3 [INFO] [stderr] Compiling pyo3-build-config v0.21.2 [INFO] [stderr] Checking indexmap v2.5.0 [INFO] [stderr] Checking regex-automata v0.4.7 [INFO] [stderr] Checking petgraph v0.6.5 [INFO] [stderr] Checking num-complex v0.4.6 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking approx v0.5.1 [INFO] [stderr] Checking num-rational v0.4.2 [INFO] [stderr] Compiling evo-rl v0.1.0-alpha.4 (/tmp/fixit) [INFO] [stderr] Migrating build.rs from 2021 edition to 2024 [INFO] [stderr] Compiling pyo3-ffi v0.20.3 [INFO] [stderr] Compiling pyo3 v0.20.3 [INFO] [stderr] Checking simba v0.8.1 [INFO] [stderr] Checking regex v1.10.6 [INFO] [stderr] Compiling pyo3-macros-backend v0.20.3 [INFO] [stderr] Checking env_logger v0.10.2 [INFO] [stderr] Checking pretty_env_logger v0.5.0 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling serde_derive v1.0.210 [INFO] [stderr] Compiling thiserror-impl v1.0.64 [INFO] [stderr] Compiling nalgebra-macros v0.2.2 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Checking thiserror v1.0.64 [INFO] [stderr] Checking ppv-lite86 v0.2.20 [INFO] [stderr] Compiling pyo3-macros v0.20.3 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking rand_distr v0.4.3 [INFO] [stderr] Checking nalgebra v0.32.6 [INFO] [stderr] Checking pyo3-log v0.9.0 [INFO] [stderr] Checking serde_json v1.0.128 [INFO] [stderr] Checking ndarray v0.15.6 [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stderr] Fixed src/python_api.rs (8 fixes) [INFO] [stderr] Fixed src/population.rs (3 fixes) [INFO] [stderr] Fixed src/neuron.rs (2 fixes) [INFO] [stderr] Fixed src/enecode.rs (1 fix) [INFO] [stderr] Fixed src/graph.rs (9 fixes) [INFO] [stdout] warning: variant `Innovation_Number` should have an upper camel case name [INFO] [stdout] --> src/enecode/topology.rs:85:22 [INFO] [stdout] | [INFO] [stdout] 85 | enum Field { Innovation_Number, Pin, Inputs, Genetic_Bias, Active } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `InnovationNumber` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Genetic_Bias` should have an upper camel case name [INFO] [stdout] --> src/enecode/topology.rs:85:54 [INFO] [stdout] | [INFO] [stdout] 85 | enum Field { Innovation_Number, Pin, Inputs, Genetic_Bias, Active } [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper camel case: `GeneticBias` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Innovation_Number` should have an upper camel case name [INFO] [stdout] --> src/enecode/properties.rs:70:22 [INFO] [stdout] | [INFO] [stdout] 70 | enum Field { Innovation_Number, Tau, Homeostatic_Force, Tanh_Alpha} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `InnovationNumber` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Homeostatic_Force` should have an upper camel case name [INFO] [stdout] --> src/enecode/properties.rs:70:46 [INFO] [stdout] | [INFO] [stdout] 70 | enum Field { Innovation_Number, Tau, Homeostatic_Force, Tanh_Alpha} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `HomeostaticForce` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Tanh_Alpha` should have an upper camel case name [INFO] [stdout] --> src/enecode/properties.rs:70:65 [INFO] [stdout] | [INFO] [stdout] 70 | enum Field { Innovation_Number, Tau, Homeostatic_Force, Tanh_Alpha} [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `TanhAlpha` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Innovation_Number` should have an upper camel case name [INFO] [stdout] --> src/enecode/meta.rs:63:22 [INFO] [stdout] | [INFO] [stdout] 63 | enum Field { Innovation_Number, Learning_Rate, Learning_Threshold } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `InnovationNumber` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Learning_Rate` should have an upper camel case name [INFO] [stdout] --> src/enecode/meta.rs:63:41 [INFO] [stdout] | [INFO] [stdout] 63 | enum Field { Innovation_Number, Learning_Rate, Learning_Threshold } [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `LearningRate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Learning_Threshold` should have an upper camel case name [INFO] [stdout] --> src/enecode/meta.rs:63:56 [INFO] [stdout] | [INFO] [stdout] 63 | enum Field { Innovation_Number, Learning_Rate, Learning_Threshold } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `LearningThreshold` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `num_units` [INFO] [stdout] --> src/graph.rs:207:13 [INFO] [stdout] | [INFO] [stdout] 207 | let num_units = hidden_units.len(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_num_units` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `g` [INFO] [stdout] --> src/graph.rs:422:27 [INFO] [stdout] | [INFO] [stdout] 422 | let node_label = |g: &DiGraph, node_ref: (NodeIndex, &Nn)| { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_g` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `g` [INFO] [stdout] --> src/graph.rs:426:26 [INFO] [stdout] | [INFO] [stdout] 426 | let edge_attr = |g: &DiGraph, edge_ref: EdgeReference<'_, f32>| -> String { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_g` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/python_api.rs:115:26 [INFO] [stdout] | [INFO] [stdout] 115 | pub fn new(pyconfig: Py, checkpoint: Option) -> PyResult { [INFO] [stdout] | ^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: `--force-warn unsafe-op-in-unsafe-fn` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/python_api.rs:211:38 [INFO] [stdout] | [INFO] [stdout] 211 | pub fn agent_fwd(&mut self, idx: usize, input: Py) { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/python_api.rs:211:52 [INFO] [stdout] | [INFO] [stdout] 211 | pub fn agent_fwd(&mut self, idx: usize, input: Py) { [INFO] [stdout] | ^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/python_api.rs:228:38 [INFO] [stdout] | [INFO] [stdout] 228 | pub fn agent_checkpt(&self, idx: usize, file_path: PathBuf) -> PyResult<()> { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/python_api.rs:228:56 [INFO] [stdout] | [INFO] [stdout] 228 | pub fn agent_checkpt(&self, idx: usize, file_path: PathBuf) -> PyResult<()> { [INFO] [stdout] | ^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/python_api.rs:239:34 [INFO] [stdout] | [INFO] [stdout] 239 | pub fn agent_out(&self, idx: usize) -> PyResult> { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/python_api.rs:244:41 [INFO] [stdout] | [INFO] [stdout] 244 | pub fn agent_complexity(&self, idx: usize) -> PyResult { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/python_api.rs:249:46 [INFO] [stdout] | [INFO] [stdout] 249 | pub fn set_agent_fitness(&mut self, idx: usize, value: f32) { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/python_api.rs:249:60 [INFO] [stdout] | [INFO] [stdout] 249 | pub fn set_agent_fitness(&mut self, idx: usize, value: f32) { [INFO] [stdout] | ^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/python_api.rs:263:53 [INFO] [stdout] | [INFO] [stdout] 263 | fn deserialize_enecode(&self, agent_checkpoint: PathBuf) -> PyResult { [INFO] [stdout] | ^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/agent_wrapper.rs:31:29 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn new(genome_base: EneCode) -> Self { [INFO] [stdout] | ^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/agent_wrapper.rs:40:34 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn fwd(&mut self, input: Vec) { [INFO] [stdout] | ^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/agent_wrapper.rs:48:45 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn mutate(&mut self, mutation_rate: f32, mutation_sd: f32, topology_mutation_rate: f32) { [INFO] [stdout] | ^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/agent_wrapper.rs:48:63 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn mutate(&mut self, mutation_rate: f32, mutation_sd: f32, topology_mutation_rate: f32) { [INFO] [stdout] | ^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/agent_wrapper.rs:48:92 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn mutate(&mut self, mutation_rate: f32, mutation_sd: f32, topology_mutation_rate: f32) { [INFO] [stdout] | ^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/agent_wrapper.rs:52:51 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn update_fitness(&mut self, new_fitness: f32) { [INFO] [stdout] | ^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/agent_wrapper.rs:56:43 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn write_genome(&self, file_path: PathBuf) -> FileResult<()> { [INFO] [stdout] | ^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `learn` is never used [INFO] [stdout] --> src/neuron.rs:132:8 [INFO] [stdout] | [INFO] [stdout] 69 | impl Nn{ [INFO] [stdout] | ------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 132 | fn learn(&self, syn_weight_current: f32) -> f32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `pop_config` is never read [INFO] [stdout] --> src/python_api.rs:106:5 [INFO] [stdout] | [INFO] [stdout] 103 | pub struct PopulationApi { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 106 | pop_config: Py [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/enecode.rs:95:9 [INFO] [stdout] | [INFO] [stdout] 95 | dict.set_item("neuron_id", &self.neuron_id); [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] 95 | let _ = dict.set_item("neuron_id", &self.neuron_id); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/enecode.rs:96:9 [INFO] [stdout] | [INFO] [stdout] 96 | dict.set_item("topology", &self.topology); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 96 | let _ = dict.set_item("topology", &self.topology); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/enecode.rs:97:9 [INFO] [stdout] | [INFO] [stdout] 97 | dict.set_item("neuronal_props", &self.neuronal_props); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 97 | let _ = dict.set_item("neuronal_props", &self.neuronal_props); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/enecode.rs:98:9 [INFO] [stdout] | [INFO] [stdout] 98 | dict.set_item("meta_learning", &self.meta_learning); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 98 | let _ = dict.set_item("meta_learning", &self.meta_learning); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/enecode.rs:349:19 [INFO] [stdout] | [INFO] [stdout] 349 | while let Some(sg) = own_copy.pop() { [INFO] [stdout] | ^^^^^^^^^^^^^^^-------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/enecode.rs:355:13 [INFO] [stdout] | [INFO] [stdout] 355 | } [INFO] [stdout] | ^ [INFO] [stdout] = note: `--force-warn if-let-rescope` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/enecode.rs:358:19 [INFO] [stdout] | [INFO] [stdout] 358 | while let Some(og) = others_copy.pop() { [INFO] [stdout] | ^^^^^^^^^^^^^^^----------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/enecode.rs:364:13 [INFO] [stdout] | [INFO] [stdout] 364 | } [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/enecode/topology.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 47 | dict.set_item("innovation_number", &self.innovation_number.to_string()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 47 | let _ = dict.set_item("innovation_number", &self.innovation_number.to_string()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/enecode/topology.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 49 | / match self.pin { [INFO] [stdout] 50 | | NeuronType::In => dict.set_item("pin", "Input"), [INFO] [stdout] 51 | | NeuronType::Out => dict.set_item("pin", "Output"), [INFO] [stdout] 52 | | NeuronType::Hidden => dict.set_item("pin", "Hidden"), [INFO] [stdout] 53 | | }; [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 49 | let _ = match self.pin { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/enecode/topology.rs:55:9 [INFO] [stdout] | [INFO] [stdout] 55 | dict.set_item("inputs", &self.inputs); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 55 | let _ = dict.set_item("inputs", &self.inputs); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/enecode/topology.rs:56:9 [INFO] [stdout] | [INFO] [stdout] 56 | dict.set_item("genetic_bias", self.genetic_bias); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 56 | let _ = dict.set_item("genetic_bias", self.genetic_bias); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/enecode/topology.rs:57:9 [INFO] [stdout] | [INFO] [stdout] 57 | dict.set_item("active", self.active); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 57 | let _ = dict.set_item("active", self.active); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/enecode/topology.rs:106:23 [INFO] [stdout] | [INFO] [stdout] 106 | while let Some(key) = map.next_key()? { [INFO] [stdout] | ^^^^^^^^^^^^^^^^--------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/enecode/topology.rs:140:17 [INFO] [stdout] | [INFO] [stdout] 140 | } [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/enecode/properties.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | dict.set_item("innovation_number", &self.innovation_number.to_string()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 40 | let _ = dict.set_item("innovation_number", &self.innovation_number.to_string()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/enecode/properties.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | dict.set_item("tau", self.tau); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 41 | let _ = dict.set_item("tau", self.tau); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/enecode/properties.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | dict.set_item("homeostatic_force", self.homeostatic_force); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 42 | let _ = dict.set_item("homeostatic_force", self.homeostatic_force); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/enecode/properties.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | dict.set_item("tanh_alpha", self.tanh_alpha); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 43 | let _ = dict.set_item("tanh_alpha", self.tanh_alpha); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/enecode/properties.rs:90:23 [INFO] [stdout] | [INFO] [stdout] 90 | while let Some(key) = map.next_key()? { [INFO] [stdout] | ^^^^^^^^^^^^^^^^--------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/enecode/properties.rs:118:17 [INFO] [stdout] | [INFO] [stdout] 118 | } [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/enecode/meta.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | dict.set_item("innnovation_number", &self.innovation_number.to_string()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 35 | let _ = dict.set_item("innnovation_number", &self.innovation_number.to_string()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/enecode/meta.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | dict.set_item("learning_rate", self.learning_rate); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 36 | let _ = dict.set_item("learning_rate", self.learning_rate); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/enecode/meta.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | dict.set_item("learning_threshold", self.learning_threshold); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 37 | let _ = dict.set_item("learning_threshold", self.learning_threshold); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/enecode/meta.rs:82:23 [INFO] [stdout] | [INFO] [stdout] 82 | while let Some(key) = map.next_key()? { [INFO] [stdout] | ^^^^^^^^^^^^^^^^--------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/enecode/meta.rs:104:17 [INFO] [stdout] | [INFO] [stdout] 104 | } [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/graph.rs:397:15 [INFO] [stdout] | [INFO] [stdout] 397 | while let Some(nx) = dfs.next(&self.graph) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^----------^ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/graph.rs:400:9 [INFO] [stdout] | [INFO] [stdout] 400 | } [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/graph.rs:464:15 [INFO] [stdout] | [INFO] [stdout] 464 | while let Some(nx) = dfs.next(&network_example.graph) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^---------------------^ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/graph.rs:466:9 [INFO] [stdout] | [INFO] [stdout] 466 | } [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/population.rs:373:17 [INFO] [stdout] | [INFO] [stdout] 373 | ef.evaluate_agent(agent); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 373 | let _ = ef.evaluate_agent(agent); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/population.rs:400:17 [INFO] [stdout] | [INFO] [stdout] 400 | ef.evaluate_agent(agent); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 400 | let _ = ef.evaluate_agent(agent); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 55 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] Fixed src/neuron.rs (1 fix) [INFO] [stderr] Fixed src/population.rs (2 fixes) [INFO] [stdout] warning: variant `Innovation_Number` should have an upper camel case name [INFO] [stdout] --> src/enecode/topology.rs:85:22 [INFO] [stdout] | [INFO] [stdout] 85 | enum Field { Innovation_Number, Pin, Inputs, Genetic_Bias, Active } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `InnovationNumber` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Genetic_Bias` should have an upper camel case name [INFO] [stdout] --> src/enecode/topology.rs:85:54 [INFO] [stdout] | [INFO] [stdout] 85 | enum Field { Innovation_Number, Pin, Inputs, Genetic_Bias, Active } [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper camel case: `GeneticBias` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Innovation_Number` should have an upper camel case name [INFO] [stdout] --> src/enecode/properties.rs:70:22 [INFO] [stdout] | [INFO] [stdout] 70 | enum Field { Innovation_Number, Tau, Homeostatic_Force, Tanh_Alpha} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `InnovationNumber` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Homeostatic_Force` should have an upper camel case name [INFO] [stdout] --> src/enecode/properties.rs:70:46 [INFO] [stdout] | [INFO] [stdout] 70 | enum Field { Innovation_Number, Tau, Homeostatic_Force, Tanh_Alpha} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `HomeostaticForce` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Tanh_Alpha` should have an upper camel case name [INFO] [stdout] --> src/enecode/properties.rs:70:65 [INFO] [stdout] | [INFO] [stdout] 70 | enum Field { Innovation_Number, Tau, Homeostatic_Force, Tanh_Alpha} [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `TanhAlpha` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Innovation_Number` should have an upper camel case name [INFO] [stdout] --> src/enecode/meta.rs:63:22 [INFO] [stdout] | [INFO] [stdout] 63 | enum Field { Innovation_Number, Learning_Rate, Learning_Threshold } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `InnovationNumber` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Learning_Rate` should have an upper camel case name [INFO] [stdout] --> src/enecode/meta.rs:63:41 [INFO] [stdout] | [INFO] [stdout] 63 | enum Field { Innovation_Number, Learning_Rate, Learning_Threshold } [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `LearningRate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Learning_Threshold` should have an upper camel case name [INFO] [stdout] --> src/enecode/meta.rs:63:56 [INFO] [stdout] | [INFO] [stdout] 63 | enum Field { Innovation_Number, Learning_Rate, Learning_Threshold } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `LearningThreshold` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `num_units` [INFO] [stdout] --> src/graph.rs:207:13 [INFO] [stdout] | [INFO] [stdout] 207 | let num_units = hidden_units.len(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_num_units` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `g` [INFO] [stdout] --> src/graph.rs:422:27 [INFO] [stdout] | [INFO] [stdout] 422 | let node_label = |g: &DiGraph, node_ref: (NodeIndex, &Nn)| { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_g` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `g` [INFO] [stdout] --> src/graph.rs:426:26 [INFO] [stdout] | [INFO] [stdout] 426 | let edge_attr = |g: &DiGraph, edge_ref: EdgeReference<'_, f32>| -> String { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_g` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/python_api.rs:115:26 [INFO] [stdout] | [INFO] [stdout] 115 | pub fn new(pyconfig: Py, checkpoint: Option) -> PyResult { [INFO] [stdout] | ^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: `--force-warn unsafe-op-in-unsafe-fn` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/python_api.rs:211:38 [INFO] [stdout] | [INFO] [stdout] 211 | pub fn agent_fwd(&mut self, idx: usize, input: Py) { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/python_api.rs:211:52 [INFO] [stdout] | [INFO] [stdout] 211 | pub fn agent_fwd(&mut self, idx: usize, input: Py) { [INFO] [stdout] | ^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/python_api.rs:228:38 [INFO] [stdout] | [INFO] [stdout] 228 | pub fn agent_checkpt(&self, idx: usize, file_path: PathBuf) -> PyResult<()> { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/python_api.rs:228:56 [INFO] [stdout] | [INFO] [stdout] 228 | pub fn agent_checkpt(&self, idx: usize, file_path: PathBuf) -> PyResult<()> { [INFO] [stdout] | ^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/python_api.rs:239:34 [INFO] [stdout] | [INFO] [stdout] 239 | pub fn agent_out(&self, idx: usize) -> PyResult> { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/python_api.rs:244:41 [INFO] [stdout] | [INFO] [stdout] 244 | pub fn agent_complexity(&self, idx: usize) -> PyResult { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/python_api.rs:249:46 [INFO] [stdout] | [INFO] [stdout] 249 | pub fn set_agent_fitness(&mut self, idx: usize, value: f32) { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/python_api.rs:249:60 [INFO] [stdout] | [INFO] [stdout] 249 | pub fn set_agent_fitness(&mut self, idx: usize, value: f32) { [INFO] [stdout] | ^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/python_api.rs:263:53 [INFO] [stdout] | [INFO] [stdout] 263 | fn deserialize_enecode(&self, agent_checkpoint: PathBuf) -> PyResult { [INFO] [stdout] | ^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/agent_wrapper.rs:31:29 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn new(genome_base: EneCode) -> Self { [INFO] [stdout] | ^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/agent_wrapper.rs:40:34 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn fwd(&mut self, input: Vec) { [INFO] [stdout] | ^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/agent_wrapper.rs:48:45 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn mutate(&mut self, mutation_rate: f32, mutation_sd: f32, topology_mutation_rate: f32) { [INFO] [stdout] | ^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/agent_wrapper.rs:48:63 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn mutate(&mut self, mutation_rate: f32, mutation_sd: f32, topology_mutation_rate: f32) { [INFO] [stdout] | ^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/agent_wrapper.rs:48:92 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn mutate(&mut self, mutation_rate: f32, mutation_sd: f32, topology_mutation_rate: f32) { [INFO] [stdout] | ^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/agent_wrapper.rs:52:51 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn update_fitness(&mut self, new_fitness: f32) { [INFO] [stdout] | ^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/agent_wrapper.rs:56:43 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn write_genome(&self, file_path: PathBuf) -> FileResult<()> { [INFO] [stdout] | ^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `learn` is never used [INFO] [stdout] --> src/neuron.rs:131:8 [INFO] [stdout] | [INFO] [stdout] 68 | impl Nn{ [INFO] [stdout] | ------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 131 | fn learn(&self, syn_weight_current: f32) -> f32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `XorEvaluation` is never constructed [INFO] [stdout] --> src/population.rs:261:12 [INFO] [stdout] | [INFO] [stdout] 261 | struct XorEvaluation { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `evaluate_agent` are never used [INFO] [stdout] --> src/population.rs:266:16 [INFO] [stdout] | [INFO] [stdout] 265 | impl XorEvaluation { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 266 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 272 | pub fn evaluate_agent(&self, agent: &mut Agent) -> Result<(), FitnessValueError> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `pop_config` is never read [INFO] [stdout] --> src/python_api.rs:106:5 [INFO] [stdout] | [INFO] [stdout] 103 | pub struct PopulationApi { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 106 | pop_config: Py [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/enecode.rs:95:9 [INFO] [stdout] | [INFO] [stdout] 95 | dict.set_item("neuron_id", &self.neuron_id); [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] 95 | let _ = dict.set_item("neuron_id", &self.neuron_id); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/enecode.rs:96:9 [INFO] [stdout] | [INFO] [stdout] 96 | dict.set_item("topology", &self.topology); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 96 | let _ = dict.set_item("topology", &self.topology); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/enecode.rs:97:9 [INFO] [stdout] | [INFO] [stdout] 97 | dict.set_item("neuronal_props", &self.neuronal_props); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 97 | let _ = dict.set_item("neuronal_props", &self.neuronal_props); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/enecode.rs:98:9 [INFO] [stdout] | [INFO] [stdout] 98 | dict.set_item("meta_learning", &self.meta_learning); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 98 | let _ = dict.set_item("meta_learning", &self.meta_learning); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/enecode.rs:349:19 [INFO] [stdout] | [INFO] [stdout] 349 | while let Some(sg) = own_copy.pop() { [INFO] [stdout] | ^^^^^^^^^^^^^^^-------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/enecode.rs:355:13 [INFO] [stdout] | [INFO] [stdout] 355 | } [INFO] [stdout] | ^ [INFO] [stdout] = note: `--force-warn if-let-rescope` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/enecode.rs:358:19 [INFO] [stdout] | [INFO] [stdout] 358 | while let Some(og) = others_copy.pop() { [INFO] [stdout] | ^^^^^^^^^^^^^^^----------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/enecode.rs:364:13 [INFO] [stdout] | [INFO] [stdout] 364 | } [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/enecode/topology.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 47 | dict.set_item("innovation_number", &self.innovation_number.to_string()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 47 | let _ = dict.set_item("innovation_number", &self.innovation_number.to_string()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/enecode/topology.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 49 | / match self.pin { [INFO] [stdout] 50 | | NeuronType::In => dict.set_item("pin", "Input"), [INFO] [stdout] 51 | | NeuronType::Out => dict.set_item("pin", "Output"), [INFO] [stdout] 52 | | NeuronType::Hidden => dict.set_item("pin", "Hidden"), [INFO] [stdout] 53 | | }; [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 49 | let _ = match self.pin { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/enecode/topology.rs:55:9 [INFO] [stdout] | [INFO] [stdout] 55 | dict.set_item("inputs", &self.inputs); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 55 | let _ = dict.set_item("inputs", &self.inputs); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/enecode/topology.rs:56:9 [INFO] [stdout] | [INFO] [stdout] 56 | dict.set_item("genetic_bias", self.genetic_bias); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 56 | let _ = dict.set_item("genetic_bias", self.genetic_bias); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/enecode/topology.rs:57:9 [INFO] [stdout] | [INFO] [stdout] 57 | dict.set_item("active", self.active); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 57 | let _ = dict.set_item("active", self.active); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/enecode/topology.rs:106:23 [INFO] [stdout] | [INFO] [stdout] 106 | while let Some(key) = map.next_key()? { [INFO] [stdout] | ^^^^^^^^^^^^^^^^--------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/enecode/topology.rs:140:17 [INFO] [stdout] | [INFO] [stdout] 140 | } [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/enecode/properties.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | dict.set_item("innovation_number", &self.innovation_number.to_string()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 40 | let _ = dict.set_item("innovation_number", &self.innovation_number.to_string()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/enecode/properties.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | dict.set_item("tau", self.tau); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 41 | let _ = dict.set_item("tau", self.tau); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/enecode/properties.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | dict.set_item("homeostatic_force", self.homeostatic_force); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 42 | let _ = dict.set_item("homeostatic_force", self.homeostatic_force); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/enecode/properties.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | dict.set_item("tanh_alpha", self.tanh_alpha); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 43 | let _ = dict.set_item("tanh_alpha", self.tanh_alpha); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/enecode/properties.rs:90:23 [INFO] [stdout] | [INFO] [stdout] 90 | while let Some(key) = map.next_key()? { [INFO] [stdout] | ^^^^^^^^^^^^^^^^--------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/enecode/properties.rs:118:17 [INFO] [stdout] | [INFO] [stdout] 118 | } [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/enecode/meta.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | dict.set_item("innnovation_number", &self.innovation_number.to_string()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 35 | let _ = dict.set_item("innnovation_number", &self.innovation_number.to_string()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/enecode/meta.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | dict.set_item("learning_rate", self.learning_rate); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 36 | let _ = dict.set_item("learning_rate", self.learning_rate); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/enecode/meta.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | dict.set_item("learning_threshold", self.learning_threshold); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 37 | let _ = dict.set_item("learning_threshold", self.learning_threshold); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/enecode/meta.rs:82:23 [INFO] [stdout] | [INFO] [stdout] 82 | while let Some(key) = map.next_key()? { [INFO] [stdout] | ^^^^^^^^^^^^^^^^--------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/enecode/meta.rs:104:17 [INFO] [stdout] | [INFO] [stdout] 104 | } [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/graph.rs:397:15 [INFO] [stdout] | [INFO] [stdout] 397 | while let Some(nx) = dfs.next(&self.graph) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^----------^ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/graph.rs:400:9 [INFO] [stdout] | [INFO] [stdout] 400 | } [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 54 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 11.71s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Compiling evo-rl v0.1.0-alpha.4 (/tmp/fixit) [INFO] [stdout] warning: variant `Innovation_Number` should have an upper camel case name [INFO] [stdout] --> src/enecode/topology.rs:85:22 [INFO] [stdout] | [INFO] [stdout] 85 | enum Field { Innovation_Number, Pin, Inputs, Genetic_Bias, Active } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `InnovationNumber` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Genetic_Bias` should have an upper camel case name [INFO] [stdout] --> src/enecode/topology.rs:85:54 [INFO] [stdout] | [INFO] [stdout] 85 | enum Field { Innovation_Number, Pin, Inputs, Genetic_Bias, Active } [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper camel case: `GeneticBias` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Innovation_Number` should have an upper camel case name [INFO] [stdout] --> src/enecode/properties.rs:70:22 [INFO] [stdout] | [INFO] [stdout] 70 | enum Field { Innovation_Number, Tau, Homeostatic_Force, Tanh_Alpha} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `InnovationNumber` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Homeostatic_Force` should have an upper camel case name [INFO] [stdout] --> src/enecode/properties.rs:70:46 [INFO] [stdout] | [INFO] [stdout] 70 | enum Field { Innovation_Number, Tau, Homeostatic_Force, Tanh_Alpha} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `HomeostaticForce` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Tanh_Alpha` should have an upper camel case name [INFO] [stdout] --> src/enecode/properties.rs:70:65 [INFO] [stdout] | [INFO] [stdout] 70 | enum Field { Innovation_Number, Tau, Homeostatic_Force, Tanh_Alpha} [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `TanhAlpha` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Innovation_Number` should have an upper camel case name [INFO] [stdout] --> src/enecode/meta.rs:63:22 [INFO] [stdout] | [INFO] [stdout] 63 | enum Field { Innovation_Number, Learning_Rate, Learning_Threshold } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `InnovationNumber` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Learning_Rate` should have an upper camel case name [INFO] [stdout] --> src/enecode/meta.rs:63:41 [INFO] [stdout] | [INFO] [stdout] 63 | enum Field { Innovation_Number, Learning_Rate, Learning_Threshold } [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `LearningRate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Learning_Threshold` should have an upper camel case name [INFO] [stdout] --> src/enecode/meta.rs:63:56 [INFO] [stdout] | [INFO] [stdout] 63 | enum Field { Innovation_Number, Learning_Rate, Learning_Threshold } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `LearningThreshold` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StdRng` [INFO] [stdout] --> src/neuron.rs:199:23 [INFO] [stdout] | [INFO] [stdout] 199 | let mut rng = StdRng::from_seed(seed); [INFO] [stdout] | ^^^^^^ use of undeclared type `StdRng` [INFO] [stdout] | [INFO] [stdout] help: a struct with a similar name exists [INFO] [stdout] | [INFO] [stdout] 199 | let mut rng = String::from_seed(seed); [INFO] [stdout] | ~~~~~~ [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 142 + use crate::StdRng; [INFO] [stdout] | [INFO] [stdout] 142 + use rand::rngs::StdRng; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `GENOME_EXAMPLE` in this scope [INFO] [stdout] --> src/population.rs:309:22 [INFO] [stdout] | [INFO] [stdout] 309 | let genome = GENOME_EXAMPLE.clone(); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this static [INFO] [stdout] | [INFO] [stdout] 253 + use crate::doctest::GENOME_EXAMPLE; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `GENOME_EXAMPLE` in this scope [INFO] [stdout] --> src/population.rs:316:22 [INFO] [stdout] | [INFO] [stdout] 316 | let genome = GENOME_EXAMPLE.clone(); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this static [INFO] [stdout] | [INFO] [stdout] 253 + use crate::doctest::GENOME_EXAMPLE; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `GENOME_EXAMPLE` in this scope [INFO] [stdout] --> src/population.rs:333:22 [INFO] [stdout] | [INFO] [stdout] 333 | let genome = GENOME_EXAMPLE.clone(); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this static [INFO] [stdout] | [INFO] [stdout] 253 + use crate::doctest::GENOME_EXAMPLE; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `GENOME_EXAMPLE` in this scope [INFO] [stdout] --> src/population.rs:349:22 [INFO] [stdout] | [INFO] [stdout] 349 | let genome = GENOME_EXAMPLE.clone(); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this static [INFO] [stdout] | [INFO] [stdout] 253 + use crate::doctest::GENOME_EXAMPLE; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `setup_logger` in this scope [INFO] [stdout] --> src/population.rs:360:9 [INFO] [stdout] | [INFO] [stdout] 360 | setup_logger(); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/log-0.4.22/src/lib.rs:1395:1 [INFO] [stdout] | [INFO] [stdout] 1395 | pub fn set_logger(logger: &'static dyn Log) -> Result<(), SetLoggerError> { [INFO] [stdout] | ------------------------------------------------------------------------- similarly named function `set_logger` defined here [INFO] [stdout] | [INFO] [stdout] help: a function with a similar name exists [INFO] [stdout] | [INFO] [stdout] 360 | set_logger(); [INFO] [stdout] | ~~~~~~~~~~ [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 253 + use crate::setup_logger; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `XOR_GENOME` in this scope [INFO] [stdout] --> src/population.rs:362:22 [INFO] [stdout] | [INFO] [stdout] 362 | let genome = XOR_GENOME.clone(); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this static [INFO] [stdout] | [INFO] [stdout] 253 + use crate::doctest::XOR_GENOME; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `setup_logger` in this scope [INFO] [stdout] --> src/population.rs:386:9 [INFO] [stdout] | [INFO] [stdout] 386 | setup_logger(); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/log-0.4.22/src/lib.rs:1395:1 [INFO] [stdout] | [INFO] [stdout] 1395 | pub fn set_logger(logger: &'static dyn Log) -> Result<(), SetLoggerError> { [INFO] [stdout] | ------------------------------------------------------------------------- similarly named function `set_logger` defined here [INFO] [stdout] | [INFO] [stdout] help: a function with a similar name exists [INFO] [stdout] | [INFO] [stdout] 386 | set_logger(); [INFO] [stdout] | ~~~~~~~~~~ [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 253 + use crate::setup_logger; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `XOR_GENOME_MINIMAL` in this scope [INFO] [stdout] --> src/population.rs:388:22 [INFO] [stdout] | [INFO] [stdout] 388 | let genome = XOR_GENOME_MINIMAL.clone(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this static [INFO] [stdout] | [INFO] [stdout] 253 + use crate::doctest::XOR_GENOME_MINIMAL; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Innovation_Number` should have an upper camel case name [INFO] [stdout] --> src/enecode/topology.rs:85:22 [INFO] [stdout] | [INFO] [stdout] 85 | enum Field { Innovation_Number, Pin, Inputs, Genetic_Bias, Active } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `InnovationNumber` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Genetic_Bias` should have an upper camel case name [INFO] [stdout] --> src/enecode/topology.rs:85:54 [INFO] [stdout] | [INFO] [stdout] 85 | enum Field { Innovation_Number, Pin, Inputs, Genetic_Bias, Active } [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper camel case: `GeneticBias` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Innovation_Number` should have an upper camel case name [INFO] [stdout] --> src/enecode/properties.rs:70:22 [INFO] [stdout] | [INFO] [stdout] 70 | enum Field { Innovation_Number, Tau, Homeostatic_Force, Tanh_Alpha} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `InnovationNumber` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Homeostatic_Force` should have an upper camel case name [INFO] [stdout] --> src/enecode/properties.rs:70:46 [INFO] [stdout] | [INFO] [stdout] 70 | enum Field { Innovation_Number, Tau, Homeostatic_Force, Tanh_Alpha} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `HomeostaticForce` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Tanh_Alpha` should have an upper camel case name [INFO] [stdout] --> src/enecode/properties.rs:70:65 [INFO] [stdout] | [INFO] [stdout] 70 | enum Field { Innovation_Number, Tau, Homeostatic_Force, Tanh_Alpha} [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `TanhAlpha` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Innovation_Number` should have an upper camel case name [INFO] [stdout] --> src/enecode/meta.rs:63:22 [INFO] [stdout] | [INFO] [stdout] 63 | enum Field { Innovation_Number, Learning_Rate, Learning_Threshold } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `InnovationNumber` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Learning_Rate` should have an upper camel case name [INFO] [stdout] --> src/enecode/meta.rs:63:41 [INFO] [stdout] | [INFO] [stdout] 63 | enum Field { Innovation_Number, Learning_Rate, Learning_Threshold } [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `LearningRate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Learning_Threshold` should have an upper camel case name [INFO] [stdout] --> src/enecode/meta.rs:63:56 [INFO] [stdout] | [INFO] [stdout] 63 | enum Field { Innovation_Number, Learning_Rate, Learning_Threshold } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `LearningThreshold` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `num_units` [INFO] [stdout] --> src/graph.rs:207:13 [INFO] [stdout] | [INFO] [stdout] 207 | let num_units = hidden_units.len(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_num_units` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `g` [INFO] [stdout] --> src/graph.rs:422:27 [INFO] [stdout] | [INFO] [stdout] 422 | let node_label = |g: &DiGraph, node_ref: (NodeIndex, &Nn)| { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_g` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `g` [INFO] [stdout] --> src/graph.rs:426:26 [INFO] [stdout] | [INFO] [stdout] 426 | let edge_attr = |g: &DiGraph, edge_ref: EdgeReference<'_, f32>| -> String { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_g` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/python_api.rs:115:26 [INFO] [stdout] | [INFO] [stdout] 115 | pub fn new(pyconfig: Py, checkpoint: Option) -> PyResult { [INFO] [stdout] | ^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: `#[warn(unsafe_op_in_unsafe_fn)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/python_api.rs:211:38 [INFO] [stdout] | [INFO] [stdout] 211 | pub fn agent_fwd(&mut self, idx: usize, input: Py) { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/python_api.rs:211:52 [INFO] [stdout] | [INFO] [stdout] 211 | pub fn agent_fwd(&mut self, idx: usize, input: Py) { [INFO] [stdout] | ^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/python_api.rs:228:38 [INFO] [stdout] | [INFO] [stdout] 228 | pub fn agent_checkpt(&self, idx: usize, file_path: PathBuf) -> PyResult<()> { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/python_api.rs:228:56 [INFO] [stdout] | [INFO] [stdout] 228 | pub fn agent_checkpt(&self, idx: usize, file_path: PathBuf) -> PyResult<()> { [INFO] [stdout] | ^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/python_api.rs:239:34 [INFO] [stdout] | [INFO] [stdout] 239 | pub fn agent_out(&self, idx: usize) -> PyResult> { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/python_api.rs:244:41 [INFO] [stdout] | [INFO] [stdout] 244 | pub fn agent_complexity(&self, idx: usize) -> PyResult { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/python_api.rs:249:46 [INFO] [stdout] | [INFO] [stdout] 249 | pub fn set_agent_fitness(&mut self, idx: usize, value: f32) { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/python_api.rs:249:60 [INFO] [stdout] | [INFO] [stdout] 249 | pub fn set_agent_fitness(&mut self, idx: usize, value: f32) { [INFO] [stdout] | ^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/python_api.rs:263:53 [INFO] [stdout] | [INFO] [stdout] 263 | fn deserialize_enecode(&self, agent_checkpoint: PathBuf) -> PyResult { [INFO] [stdout] | ^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/agent_wrapper.rs:31:29 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn new(genome_base: EneCode) -> Self { [INFO] [stdout] | ^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/agent_wrapper.rs:40:34 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn fwd(&mut self, input: Vec) { [INFO] [stdout] | ^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/agent_wrapper.rs:48:45 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn mutate(&mut self, mutation_rate: f32, mutation_sd: f32, topology_mutation_rate: f32) { [INFO] [stdout] | ^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/agent_wrapper.rs:48:63 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn mutate(&mut self, mutation_rate: f32, mutation_sd: f32, topology_mutation_rate: f32) { [INFO] [stdout] | ^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/agent_wrapper.rs:48:92 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn mutate(&mut self, mutation_rate: f32, mutation_sd: f32, topology_mutation_rate: f32) { [INFO] [stdout] | ^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/agent_wrapper.rs:52:51 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn update_fitness(&mut self, new_fitness: f32) { [INFO] [stdout] | ^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/agent_wrapper.rs:56:43 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn write_genome(&self, file_path: PathBuf) -> FileResult<()> { [INFO] [stdout] | ^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `learn` is never used [INFO] [stdout] --> src/neuron.rs:131:8 [INFO] [stdout] | [INFO] [stdout] 68 | impl Nn{ [INFO] [stdout] | ------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 131 | fn learn(&self, syn_weight_current: f32) -> f32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `XorEvaluation` is never constructed [INFO] [stdout] --> src/population.rs:261:12 [INFO] [stdout] | [INFO] [stdout] 261 | struct XorEvaluation { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `evaluate_agent` are never used [INFO] [stdout] --> src/population.rs:266:16 [INFO] [stdout] | [INFO] [stdout] 265 | impl XorEvaluation { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 266 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 272 | pub fn evaluate_agent(&self, agent: &mut Agent) -> Result<(), FitnessValueError> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `pop_config` is never read [INFO] [stdout] --> src/python_api.rs:106:5 [INFO] [stdout] | [INFO] [stdout] 103 | pub struct PopulationApi { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 106 | pop_config: Py [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/enecode.rs:95:9 [INFO] [stdout] | [INFO] [stdout] 95 | dict.set_item("neuron_id", &self.neuron_id); [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] 95 | let _ = dict.set_item("neuron_id", &self.neuron_id); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/enecode.rs:96:9 [INFO] [stdout] | [INFO] [stdout] 96 | dict.set_item("topology", &self.topology); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 96 | let _ = dict.set_item("topology", &self.topology); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/enecode.rs:97:9 [INFO] [stdout] | [INFO] [stdout] 97 | dict.set_item("neuronal_props", &self.neuronal_props); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 97 | let _ = dict.set_item("neuronal_props", &self.neuronal_props); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/enecode.rs:98:9 [INFO] [stdout] | [INFO] [stdout] 98 | dict.set_item("meta_learning", &self.meta_learning); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 98 | let _ = dict.set_item("meta_learning", &self.meta_learning); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/enecode/topology.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 47 | dict.set_item("innovation_number", &self.innovation_number.to_string()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 47 | let _ = dict.set_item("innovation_number", &self.innovation_number.to_string()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/enecode/topology.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 49 | / match self.pin { [INFO] [stdout] 50 | | NeuronType::In => dict.set_item("pin", "Input"), [INFO] [stdout] 51 | | NeuronType::Out => dict.set_item("pin", "Output"), [INFO] [stdout] 52 | | NeuronType::Hidden => dict.set_item("pin", "Hidden"), [INFO] [stdout] 53 | | }; [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 49 | let _ = match self.pin { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/enecode/topology.rs:55:9 [INFO] [stdout] | [INFO] [stdout] 55 | dict.set_item("inputs", &self.inputs); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 55 | let _ = dict.set_item("inputs", &self.inputs); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/enecode/topology.rs:56:9 [INFO] [stdout] | [INFO] [stdout] 56 | dict.set_item("genetic_bias", self.genetic_bias); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 56 | let _ = dict.set_item("genetic_bias", self.genetic_bias); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/enecode/topology.rs:57:9 [INFO] [stdout] | [INFO] [stdout] 57 | dict.set_item("active", self.active); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 57 | let _ = dict.set_item("active", self.active); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/enecode/properties.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | dict.set_item("innovation_number", &self.innovation_number.to_string()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 40 | let _ = dict.set_item("innovation_number", &self.innovation_number.to_string()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/enecode/properties.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | dict.set_item("tau", self.tau); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 41 | let _ = dict.set_item("tau", self.tau); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/enecode/properties.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | dict.set_item("homeostatic_force", self.homeostatic_force); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 42 | let _ = dict.set_item("homeostatic_force", self.homeostatic_force); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/enecode/properties.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | dict.set_item("tanh_alpha", self.tanh_alpha); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 43 | let _ = dict.set_item("tanh_alpha", self.tanh_alpha); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/enecode/meta.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | dict.set_item("innnovation_number", &self.innovation_number.to_string()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 35 | let _ = dict.set_item("innnovation_number", &self.innovation_number.to_string()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/enecode/meta.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | dict.set_item("learning_rate", self.learning_rate); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 36 | let _ = dict.set_item("learning_rate", self.learning_rate); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/enecode/meta.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | dict.set_item("learning_threshold", self.learning_threshold); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 37 | let _ = dict.set_item("learning_threshold", self.learning_threshold); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 48 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stdout] warning: unused variable: `num_units` [INFO] [stdout] --> src/graph.rs:207:13 [INFO] [stdout] | [INFO] [stdout] 207 | let num_units = hidden_units.len(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_num_units` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `g` [INFO] [stdout] --> src/graph.rs:422:27 [INFO] [stdout] | [INFO] [stdout] 422 | let node_label = |g: &DiGraph, node_ref: (NodeIndex, &Nn)| { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_g` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `g` [INFO] [stdout] --> src/graph.rs:426:26 [INFO] [stdout] | [INFO] [stdout] 426 | let edge_attr = |g: &DiGraph, edge_ref: EdgeReference<'_, f32>| -> String { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_g` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/python_api.rs:115:26 [INFO] [stdout] | [INFO] [stdout] 115 | pub fn new(pyconfig: Py, checkpoint: Option) -> PyResult { [INFO] [stdout] | ^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] = note: `#[warn(unsafe_op_in_unsafe_fn)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/python_api.rs:211:38 [INFO] [stdout] | [INFO] [stdout] 211 | pub fn agent_fwd(&mut self, idx: usize, input: Py) { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/python_api.rs:211:52 [INFO] [stdout] | [INFO] [stdout] 211 | pub fn agent_fwd(&mut self, idx: usize, input: Py) { [INFO] [stdout] | ^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/python_api.rs:228:38 [INFO] [stdout] | [INFO] [stdout] 228 | pub fn agent_checkpt(&self, idx: usize, file_path: PathBuf) -> PyResult<()> { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/python_api.rs:228:56 [INFO] [stdout] | [INFO] [stdout] 228 | pub fn agent_checkpt(&self, idx: usize, file_path: PathBuf) -> PyResult<()> { [INFO] [stdout] | ^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/python_api.rs:239:34 [INFO] [stdout] | [INFO] [stdout] 239 | pub fn agent_out(&self, idx: usize) -> PyResult> { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/python_api.rs:244:41 [INFO] [stdout] | [INFO] [stdout] 244 | pub fn agent_complexity(&self, idx: usize) -> PyResult { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/python_api.rs:249:46 [INFO] [stdout] | [INFO] [stdout] 249 | pub fn set_agent_fitness(&mut self, idx: usize, value: f32) { [INFO] [stdout] | ^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/python_api.rs:249:60 [INFO] [stdout] | [INFO] [stdout] 249 | pub fn set_agent_fitness(&mut self, idx: usize, value: f32) { [INFO] [stdout] | ^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/python_api.rs:263:53 [INFO] [stdout] | [INFO] [stdout] 263 | fn deserialize_enecode(&self, agent_checkpoint: PathBuf) -> PyResult { [INFO] [stdout] | ^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/agent_wrapper.rs:31:29 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn new(genome_base: EneCode) -> Self { [INFO] [stdout] | ^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/agent_wrapper.rs:40:34 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn fwd(&mut self, input: Vec) { [INFO] [stdout] | ^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/agent_wrapper.rs:48:45 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn mutate(&mut self, mutation_rate: f32, mutation_sd: f32, topology_mutation_rate: f32) { [INFO] [stdout] | ^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/agent_wrapper.rs:48:63 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn mutate(&mut self, mutation_rate: f32, mutation_sd: f32, topology_mutation_rate: f32) { [INFO] [stdout] | ^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/agent_wrapper.rs:48:92 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn mutate(&mut self, mutation_rate: f32, mutation_sd: f32, topology_mutation_rate: f32) { [INFO] [stdout] | ^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/agent_wrapper.rs:52:51 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn update_fitness(&mut self, new_fitness: f32) { [INFO] [stdout] | ^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pyo3::impl_::extract_argument::unwrap_required_argument` is unsafe and requires unsafe block [INFO] [stdout] --> src/agent_wrapper.rs:56:43 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn write_genome(&self, file_path: PathBuf) -> FileResult<()> { [INFO] [stdout] | ^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 9 previous errors; 28 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0133, E0425, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] error: could not compile `evo-rl` (lib test) due to 10 previous errors; 28 warnings emitted [INFO] [stderr] error: failed to check after updating to 2024 [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo check --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "25377d4ad7b7259b5aa4bcc8997280fea4fa2a8bc83b60f918a4724dc79066a2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "25377d4ad7b7259b5aa4bcc8997280fea4fa2a8bc83b60f918a4724dc79066a2", kill_on_drop: false }` [INFO] [stdout] 25377d4ad7b7259b5aa4bcc8997280fea4fa2a8bc83b60f918a4724dc79066a2