[INFO] fetching crate spiking_neural_networks 0.23.5... [INFO] checking spiking_neural_networks-0.23.5 against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] extracting crate spiking_neural_networks 0.23.5 into /workspace/builds/worker-0-tc2/source [INFO] validating manifest of crates.io crate spiking_neural_networks 0.23.5 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 spiking_neural_networks 0.23.5 [INFO] removed 0 missing examples [INFO] finished tweaking crates.io crate spiking_neural_networks 0.23.5 [INFO] tweaked toml for crates.io crate spiking_neural_networks 0.23.5 written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] crate crates.io crate spiking_neural_networks 0.23.5 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a9ea6b2f4407eda14ddf07f65cfe79d9dd666f8690d5500f3311c9835c557c26 [INFO] running `Command { std: "docker" "start" "-a" "a9ea6b2f4407eda14ddf07f65cfe79d9dd666f8690d5500f3311c9835c557c26", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a9ea6b2f4407eda14ddf07f65cfe79d9dd666f8690d5500f3311c9835c557c26", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a9ea6b2f4407eda14ddf07f65cfe79d9dd666f8690d5500f3311c9835c557c26", kill_on_drop: false }` [INFO] [stdout] a9ea6b2f4407eda14ddf07f65cfe79d9dd666f8690d5500f3311c9835c557c26 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-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] bb0a87164c62149d4d5f7d966b69c997e580d67ab64405dd70b08bc0bfeac9ee [INFO] running `Command { std: "docker" "start" "-a" "bb0a87164c62149d4d5f7d966b69c997e580d67ab64405dd70b08bc0bfeac9ee", 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 num-traits v0.2.19 [INFO] [stderr] Compiling libc v0.2.155 [INFO] [stderr] Compiling matrixmultiply v0.3.8 [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling rustfft v6.2.0 [INFO] [stderr] Checking strength_reduce v0.2.4 [INFO] [stderr] Checking rawpointer v0.2.1 [INFO] [stderr] Checking rayon v1.10.0 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking num-complex v0.4.6 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking transpose v0.2.3 [INFO] [stderr] Checking primal-check v0.3.4 [INFO] [stderr] Checking ndarray v0.15.6 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking rand_distr v0.4.3 [INFO] [stderr] Compiling iterate_and_spike_traits v0.7.0 [INFO] [stderr] Checking spiking_neural_networks v0.23.5 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `spiking_neural_networks` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/neuron/iterate_and_spike/mod.rs [INFO] [stderr] * src/neuron/spike_train/mod.rs [INFO] [stderr] [INFO] [stderr] This likely indicates a bug in either rustc or cargo itself, [INFO] [stderr] and we would appreciate a bug report! You're likely to see [INFO] [stderr] a number of compiler warnings after this message which cargo [INFO] [stderr] attempted to fix but failed. If you could open an issue at [INFO] [stderr] https://github.com/rust-lang/rust/issues [INFO] [stderr] quoting the full output of this command we'd be very appreciative! [INFO] [stderr] Note that you may be able to make some more progress in the near-term [INFO] [stderr] fixing code with the `--broken-code` flag [INFO] [stderr] [INFO] [stderr] The following errors were reported: [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/neuron/spike_train/mod.rs:29:19 [INFO] [stderr] | [INFO] [stderr] 29 | ($name:ident, $effect:expr_2021) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/ga/mod.rs:55:19 [INFO] [stdout] | [INFO] [stdout] 55 | if rng_thread.gen::() <= r_cross { [INFO] [stdout] | ^^^ help: you can use a raw identifier to stay compatible: `r#gen` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #49716 [INFO] [stdout] = note: `--force-warn keyword-idents-2024` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/ga/mod.rs:72:33 [INFO] [stdout] | [INFO] [stdout] 72 | let do_mut = rng_thread.gen::() <= r_mut; [INFO] [stdout] | ^^^ help: you can use a raw identifier to stay compatible: `r#gen` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #49716 [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/neuron/iterate_and_spike/mod.rs:154:35 [INFO] [stderr] | [INFO] [stderr] 154 | ($trait:ident, $method:ident, $t_max:expr_2021) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/neuron/iterate_and_spike/mod.rs:204:35 [INFO] [stderr] | [INFO] [stderr] 204 | ($trait:ident, $method:ident, $t_max:expr_2021) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/neuron/iterate_and_spike/mod.rs:275:35 [INFO] [stderr] | [INFO] [stderr] 275 | ($trait:ident, $method:ident, $t_max:expr_2021) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/neuron/iterate_and_spike/mod.rs:311:35 [INFO] [stderr] | [INFO] [stderr] 311 | ($trait:ident, $method:ident, $t_max:expr_2021) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/neuron/iterate_and_spike/mod.rs:388:35 [INFO] [stderr] | [INFO] [stderr] 388 | ($trait:ident, $method:ident, $alpha:expr_2021, $beta:expr_2021) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/neuron/iterate_and_spike/mod.rs:388:53 [INFO] [stderr] | [INFO] [stderr] 388 | ($trait:ident, $method:ident, $alpha:expr_2021, $beta:expr_2021) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error: aborting due to 7 previous errors [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0658`. [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/ga/mod.rs:145:23 [INFO] [stdout] | [INFO] [stdout] 145 | if rng_thread.gen::() <= 0.5 { [INFO] [stdout] | ^^^ help: you can use a raw identifier to stay compatible: `r#gen` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #49716 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/ga/mod.rs:225:9 [INFO] [stdout] | [INFO] [stdout] 225 | for gen in 0..params.n_iter { [INFO] [stdout] | ^^^ help: you can use a raw identifier to stay compatible: `r#gen` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #49716 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/ga/mod.rs:227:33 [INFO] [stdout] | [INFO] [stdout] 227 | println!("gen: {}", gen + 1); [INFO] [stdout] | ^^^ help: you can use a raw identifier to stay compatible: `r#gen` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #49716 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/neuron/spike_train/mod.rs:29:27 [INFO] [stdout] | [INFO] [stdout] 29 | ($name:ident, $effect:expr) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] = note: `--force-warn edition-2024-expr-fragment-specifier` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 29 | ($name:ident, $effect:expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/neuron/iterate_and_spike/mod.rs:154:42 [INFO] [stdout] | [INFO] [stdout] 154 | ($trait:ident, $method:ident, $t_max:expr) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 154 | ($trait:ident, $method:ident, $t_max:expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/neuron/iterate_and_spike/mod.rs:204:42 [INFO] [stdout] | [INFO] [stdout] 204 | ($trait:ident, $method:ident, $t_max:expr) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 204 | ($trait:ident, $method:ident, $t_max:expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/neuron/iterate_and_spike/mod.rs:275:42 [INFO] [stdout] | [INFO] [stdout] 275 | ($trait:ident, $method:ident, $t_max:expr) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 275 | ($trait:ident, $method:ident, $t_max:expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/neuron/iterate_and_spike/mod.rs:311:42 [INFO] [stdout] | [INFO] [stdout] 311 | ($trait:ident, $method:ident, $t_max:expr) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 311 | ($trait:ident, $method:ident, $t_max:expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/neuron/iterate_and_spike/mod.rs:388:42 [INFO] [stdout] | [INFO] [stdout] 388 | ($trait:ident, $method:ident, $alpha:expr, $beta:expr) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 388 | ($trait:ident, $method:ident, $alpha:expr_2021, $beta:expr) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/neuron/iterate_and_spike/mod.rs:388:54 [INFO] [stdout] | [INFO] [stdout] 388 | ($trait:ident, $method:ident, $alpha:expr, $beta:expr) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 388 | ($trait:ident, $method:ident, $alpha:expr, $beta:expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/graph/mod.rs:363:20 [INFO] [stdout] | [INFO] [stdout] 363 | if let Some(vector) = self.outgoing_connections.get_mut(presynaptic) { [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/mod.rs:365:17 [INFO] [stdout] | [INFO] [stdout] 365 | } else { [INFO] [stdout] | ^ [INFO] [stdout] = note: `--force-warn if-let-rescope` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 363 ~ match self.outgoing_connections.get_mut(presynaptic) { Some(vector) => { [INFO] [stdout] 364 | vector.insert(*postsynaptic); [INFO] [stdout] 365 ~ } _ => { [INFO] [stdout] 366 | self.outgoing_connections.insert(*presynaptic, HashSet::from([*postsynaptic])); [INFO] [stdout] 367 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/graph/mod.rs:373:20 [INFO] [stdout] | [INFO] [stdout] 373 | if let Some(connections) = self.outgoing_connections.get_mut(presynaptic) { [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/mod.rs:377:17 [INFO] [stdout] | [INFO] [stdout] 377 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 373 ~ match self.outgoing_connections.get_mut(presynaptic) { Some(connections) => { [INFO] [stdout] 374 | if connections.contains(postsynaptic) { [INFO] [stdout] 375 | connections.remove(postsynaptic); [INFO] [stdout] 376 | } [INFO] [stdout] 377 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/neuron/mod.rs:1672:16 [INFO] [stdout] | [INFO] [stdout] 1672 | if let Some(lattice) = self.lattices.get(&graph_pos.id) { [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] 1673 | check_position(&lattice.cell_grid, graph_pos)?; [INFO] [stdout] 1674 | } else if let Some(spike_train_lattice) = self.spike_train_lattices.get(&graph_pos.id) { [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/neuron/mod.rs:1674:13 [INFO] [stdout] | [INFO] [stdout] 1674 | } else if let Some(spike_train_lattice) = self.spike_train_lattices.get(&graph_pos.id) { [INFO] [stdout] | ^ [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/neuron/mod.rs:1676:13 [INFO] [stdout] | [INFO] [stdout] 1676 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 1672 ~ match self.lattices.get(&graph_pos.id) { Some(lattice) => { [INFO] [stdout] 1673 | check_position(&lattice.cell_grid, graph_pos)?; [INFO] [stdout] 1674 ~ } _ => { match self.spike_train_lattices.get(&graph_pos.id) { Some(spike_train_lattice) => { [INFO] [stdout] 1675 | check_position(&spike_train_lattice.cell_grid, graph_pos)?; [INFO] [stdout] 1676 ~ } _ => { [INFO] [stdout] 1677 | return Err(SpikingNeuralNetworksError::from( [INFO] [stdout] 1678 | LatticeNetworkError::IDNotFoundInLattices(graph_pos.id), [INFO] [stdout] 1679 | )); [INFO] [stdout] 1680 ~ }}}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/neuron/mod.rs:3545:16 [INFO] [stdout] | [INFO] [stdout] 3545 | if let Some(lattice) = self.lattices.get(&graph_pos.id) { [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] 3546 | check_position(&lattice.cell_grid, graph_pos)?; [INFO] [stdout] 3547 | } else if let Some(spike_train_lattice) = self.spike_train_lattices.get(&graph_pos.id) { [INFO] [stdout] | ------------------------- this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] 3548 | check_position(&spike_train_lattice.cell_grid, graph_pos)?; [INFO] [stdout] 3549 | } else if let Some(reward_modulated_lattice) = self.reward_modulated_lattices.get(&graph_pos.id) { [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/neuron/mod.rs:3547:13 [INFO] [stdout] | [INFO] [stdout] 3547 | } else if let Some(spike_train_lattice) = self.spike_train_lattices.get(&graph_pos.id) { [INFO] [stdout] | ^ [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/neuron/mod.rs:3549:13 [INFO] [stdout] | [INFO] [stdout] 3549 | } else if let Some(reward_modulated_lattice) = self.reward_modulated_lattices.get(&graph_pos.id) { [INFO] [stdout] | ^ [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/neuron/mod.rs:3551:13 [INFO] [stdout] | [INFO] [stdout] 3551 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 3545 ~ match self.lattices.get(&graph_pos.id) { Some(lattice) => { [INFO] [stdout] 3546 | check_position(&lattice.cell_grid, graph_pos)?; [INFO] [stdout] 3547 ~ } _ => { match self.spike_train_lattices.get(&graph_pos.id) { Some(spike_train_lattice) => { [INFO] [stdout] 3548 | check_position(&spike_train_lattice.cell_grid, graph_pos)?; [INFO] [stdout] 3549 ~ } _ => { match self.reward_modulated_lattices.get(&graph_pos.id) { Some(reward_modulated_lattice) => { [INFO] [stdout] 3550 | check_position(&reward_modulated_lattice.cell_grid, graph_pos)?; [INFO] [stdout] 3551 ~ } _ => { [INFO] [stdout] 3552 | return Err(SpikingNeuralNetworksError::from( [INFO] [stdout] 3553 | LatticeNetworkError::IDNotFoundInLattices(graph_pos.id), [INFO] [stdout] 3554 | )); [INFO] [stdout] 3555 ~ }}}}}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/neuron/iterate_and_spike/mod.rs:710:20 [INFO] [stdout] | [INFO] [stdout] 710 | if let Some(gate) = self.ligand_gates.get_mut(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/neuron/iterate_and_spike/mod.rs:712:17 [INFO] [stdout] | [INFO] [stdout] 712 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 710 ~ match self.ligand_gates.get_mut(key) { Some(gate) => { [INFO] [stdout] 711 | gate.receptor.apply_r_change(*value, dt); [INFO] [stdout] 712 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 17 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating examples/rstdp_lattice/main.rs from 2021 edition to 2024 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `spiking_neural_networks` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/neuron/iterate_and_spike/mod.rs [INFO] [stderr] * src/neuron/spike_train/mod.rs [INFO] [stderr] [INFO] [stderr] This likely indicates a bug in either rustc or cargo itself, [INFO] [stderr] and we would appreciate a bug report! You're likely to see [INFO] [stderr] a number of compiler warnings after this message which cargo [INFO] [stderr] attempted to fix but failed. If you could open an issue at [INFO] [stderr] https://github.com/rust-lang/rust/issues [INFO] [stderr] quoting the full output of this command we'd be very appreciative! [INFO] [stderr] Note that you may be able to make some more progress in the near-term [INFO] [stderr] fixing code with the `--broken-code` flag [INFO] [stderr] [INFO] [stderr] The following errors were reported: [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/neuron/spike_train/mod.rs:29:19 [INFO] [stderr] | [INFO] [stderr] 29 | ($name:ident, $effect:expr_2021) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/neuron/iterate_and_spike/mod.rs:154:35 [INFO] [stderr] | [INFO] [stderr] 154 | ($trait:ident, $method:ident, $t_max:expr_2021) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/neuron/iterate_and_spike/mod.rs:204:35 [INFO] [stderr] | [INFO] [stderr] 204 | ($trait:ident, $method:ident, $t_max:expr_2021) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/neuron/iterate_and_spike/mod.rs:275:35 [INFO] [stderr] | [INFO] [stderr] 275 | ($trait:ident, $method:ident, $t_max:expr_2021) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/neuron/iterate_and_spike/mod.rs:311:35 [INFO] [stderr] | [INFO] [stderr] 311 | ($trait:ident, $method:ident, $t_max:expr_2021) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/neuron/iterate_and_spike/mod.rs:388:35 [INFO] [stderr] | [INFO] [stderr] 388 | ($trait:ident, $method:ident, $alpha:expr_2021, $beta:expr_2021) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/neuron/iterate_and_spike/mod.rs:388:53 [INFO] [stderr] | [INFO] [stderr] 388 | ($trait:ident, $method:ident, $alpha:expr_2021, $beta:expr_2021) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error: aborting due to 7 previous errors [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0658`. [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/ga/mod.rs:55:19 [INFO] [stdout] | [INFO] [stdout] 55 | if rng_thread.gen::() <= r_cross { [INFO] [stdout] | ^^^ help: you can use a raw identifier to stay compatible: `r#gen` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #49716 [INFO] [stdout] = note: `--force-warn keyword-idents-2024` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/ga/mod.rs:72:33 [INFO] [stdout] | [INFO] [stdout] 72 | let do_mut = rng_thread.gen::() <= r_mut; [INFO] [stdout] | ^^^ help: you can use a raw identifier to stay compatible: `r#gen` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #49716 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/ga/mod.rs:145:23 [INFO] [stdout] | [INFO] [stdout] 145 | if rng_thread.gen::() <= 0.5 { [INFO] [stdout] | ^^^ help: you can use a raw identifier to stay compatible: `r#gen` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #49716 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/ga/mod.rs:225:9 [INFO] [stdout] | [INFO] [stdout] 225 | for gen in 0..params.n_iter { [INFO] [stdout] | ^^^ help: you can use a raw identifier to stay compatible: `r#gen` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #49716 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/ga/mod.rs:227:33 [INFO] [stdout] | [INFO] [stdout] 227 | println!("gen: {}", gen + 1); [INFO] [stdout] | ^^^ help: you can use a raw identifier to stay compatible: `r#gen` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #49716 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/neuron/spike_train/mod.rs:29:27 [INFO] [stdout] | [INFO] [stdout] 29 | ($name:ident, $effect:expr) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] = note: `--force-warn edition-2024-expr-fragment-specifier` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 29 | ($name:ident, $effect:expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/neuron/iterate_and_spike/mod.rs:154:42 [INFO] [stdout] | [INFO] [stdout] 154 | ($trait:ident, $method:ident, $t_max:expr) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 154 | ($trait:ident, $method:ident, $t_max:expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/neuron/iterate_and_spike/mod.rs:204:42 [INFO] [stdout] | [INFO] [stdout] 204 | ($trait:ident, $method:ident, $t_max:expr) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 204 | ($trait:ident, $method:ident, $t_max:expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/neuron/iterate_and_spike/mod.rs:275:42 [INFO] [stdout] | [INFO] [stdout] 275 | ($trait:ident, $method:ident, $t_max:expr) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 275 | ($trait:ident, $method:ident, $t_max:expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/neuron/iterate_and_spike/mod.rs:311:42 [INFO] [stdout] | [INFO] [stdout] 311 | ($trait:ident, $method:ident, $t_max:expr) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 311 | ($trait:ident, $method:ident, $t_max:expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/neuron/iterate_and_spike/mod.rs:388:42 [INFO] [stdout] | [INFO] [stdout] 388 | ($trait:ident, $method:ident, $alpha:expr, $beta:expr) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 388 | ($trait:ident, $method:ident, $alpha:expr_2021, $beta:expr) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/neuron/iterate_and_spike/mod.rs:388:54 [INFO] [stdout] | [INFO] [stdout] 388 | ($trait:ident, $method:ident, $alpha:expr, $beta:expr) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 388 | ($trait:ident, $method:ident, $alpha:expr, $beta:expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/graph/mod.rs:363:20 [INFO] [stdout] | [INFO] [stdout] 363 | if let Some(vector) = self.outgoing_connections.get_mut(presynaptic) { [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/mod.rs:365:17 [INFO] [stdout] | [INFO] [stdout] 365 | } else { [INFO] [stdout] | ^ [INFO] [stdout] = note: `--force-warn if-let-rescope` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 363 ~ match self.outgoing_connections.get_mut(presynaptic) { Some(vector) => { [INFO] [stdout] 364 | vector.insert(*postsynaptic); [INFO] [stdout] 365 ~ } _ => { [INFO] [stdout] 366 | self.outgoing_connections.insert(*presynaptic, HashSet::from([*postsynaptic])); [INFO] [stdout] 367 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/graph/mod.rs:373:20 [INFO] [stdout] | [INFO] [stdout] 373 | if let Some(connections) = self.outgoing_connections.get_mut(presynaptic) { [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/mod.rs:377:17 [INFO] [stdout] | [INFO] [stdout] 377 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 373 ~ match self.outgoing_connections.get_mut(presynaptic) { Some(connections) => { [INFO] [stdout] 374 | if connections.contains(postsynaptic) { [INFO] [stdout] 375 | connections.remove(postsynaptic); [INFO] [stdout] 376 | } [INFO] [stdout] 377 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/neuron/mod.rs:1672:16 [INFO] [stdout] | [INFO] [stdout] 1672 | if let Some(lattice) = self.lattices.get(&graph_pos.id) { [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] 1673 | check_position(&lattice.cell_grid, graph_pos)?; [INFO] [stdout] 1674 | } else if let Some(spike_train_lattice) = self.spike_train_lattices.get(&graph_pos.id) { [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/neuron/mod.rs:1674:13 [INFO] [stdout] | [INFO] [stdout] 1674 | } else if let Some(spike_train_lattice) = self.spike_train_lattices.get(&graph_pos.id) { [INFO] [stdout] | ^ [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/neuron/mod.rs:1676:13 [INFO] [stdout] | [INFO] [stdout] 1676 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 1672 ~ match self.lattices.get(&graph_pos.id) { Some(lattice) => { [INFO] [stdout] 1673 | check_position(&lattice.cell_grid, graph_pos)?; [INFO] [stdout] 1674 ~ } _ => { match self.spike_train_lattices.get(&graph_pos.id) { Some(spike_train_lattice) => { [INFO] [stdout] 1675 | check_position(&spike_train_lattice.cell_grid, graph_pos)?; [INFO] [stdout] 1676 ~ } _ => { [INFO] [stdout] 1677 | return Err(SpikingNeuralNetworksError::from( [INFO] [stdout] 1678 | LatticeNetworkError::IDNotFoundInLattices(graph_pos.id), [INFO] [stdout] 1679 | )); [INFO] [stdout] 1680 ~ }}}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/neuron/mod.rs:3545:16 [INFO] [stdout] | [INFO] [stdout] 3545 | if let Some(lattice) = self.lattices.get(&graph_pos.id) { [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] 3546 | check_position(&lattice.cell_grid, graph_pos)?; [INFO] [stdout] 3547 | } else if let Some(spike_train_lattice) = self.spike_train_lattices.get(&graph_pos.id) { [INFO] [stdout] | ------------------------- this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] 3548 | check_position(&spike_train_lattice.cell_grid, graph_pos)?; [INFO] [stdout] 3549 | } else if let Some(reward_modulated_lattice) = self.reward_modulated_lattices.get(&graph_pos.id) { [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/neuron/mod.rs:3547:13 [INFO] [stdout] | [INFO] [stdout] 3547 | } else if let Some(spike_train_lattice) = self.spike_train_lattices.get(&graph_pos.id) { [INFO] [stdout] | ^ [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/neuron/mod.rs:3549:13 [INFO] [stdout] | [INFO] [stdout] 3549 | } else if let Some(reward_modulated_lattice) = self.reward_modulated_lattices.get(&graph_pos.id) { [INFO] [stdout] | ^ [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/neuron/mod.rs:3551:13 [INFO] [stdout] | [INFO] [stdout] 3551 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 3545 ~ match self.lattices.get(&graph_pos.id) { Some(lattice) => { [INFO] [stdout] 3546 | check_position(&lattice.cell_grid, graph_pos)?; [INFO] [stdout] 3547 ~ } _ => { match self.spike_train_lattices.get(&graph_pos.id) { Some(spike_train_lattice) => { [INFO] [stdout] 3548 | check_position(&spike_train_lattice.cell_grid, graph_pos)?; [INFO] [stdout] 3549 ~ } _ => { match self.reward_modulated_lattices.get(&graph_pos.id) { Some(reward_modulated_lattice) => { [INFO] [stdout] 3550 | check_position(&reward_modulated_lattice.cell_grid, graph_pos)?; [INFO] [stdout] 3551 ~ } _ => { [INFO] [stdout] 3552 | return Err(SpikingNeuralNetworksError::from( [INFO] [stdout] 3553 | LatticeNetworkError::IDNotFoundInLattices(graph_pos.id), [INFO] [stdout] 3554 | )); [INFO] [stdout] 3555 ~ }}}}}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/neuron/iterate_and_spike/mod.rs:710:20 [INFO] [stdout] | [INFO] [stdout] 710 | if let Some(gate) = self.ligand_gates.get_mut(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/neuron/iterate_and_spike/mod.rs:712:17 [INFO] [stdout] | [INFO] [stdout] 712 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 710 ~ match self.ligand_gates.get_mut(key) { Some(gate) => { [INFO] [stdout] 711 | gate.receptor.apply_r_change(*value, dt); [INFO] [stdout] 712 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 17 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating examples/morris_lecar/main.rs from 2021 edition to 2024 [INFO] [stderr] Migrating examples/lattice_network/main.rs from 2021 edition to 2024 [INFO] [stderr] Migrating examples/hopfield/main.rs from 2021 edition to 2024 [INFO] [stderr] Migrating examples/stdp/main.rs from 2021 edition to 2024 [INFO] [stderr] Migrating examples/bcm/main.rs from 2021 edition to 2024 [INFO] [stderr] Migrating examples/izhikevich/main.rs from 2021 edition to 2024 [INFO] [stderr] Migrating examples/interacting_pools/main.rs from 2021 edition to 2024 [INFO] [stderr] Migrating examples/lsm_architecture/main.rs from 2021 edition to 2024 [INFO] [stderr] Migrating examples/hodgkin_huxley/main.rs from 2021 edition to 2024 [INFO] [stderr] Migrating examples/lattice/main.rs from 2021 edition to 2024 [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 6.55s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking spiking_neural_networks v0.23.5 (/tmp/fixit) [INFO] [stdout] error: expected identifier, found reserved keyword `gen` [INFO] [stdout] --> src/ga/mod.rs:55:19 [INFO] [stdout] | [INFO] [stdout] 55 | if rng_thread.gen::() <= r_cross { [INFO] [stdout] | ^^^ expected identifier, found reserved keyword [INFO] [stdout] | [INFO] [stdout] help: escape `gen` to use it as an identifier [INFO] [stdout] | [INFO] [stdout] 55 | if rng_thread.r#gen::() <= r_cross { [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found reserved keyword `gen` [INFO] [stdout] --> src/ga/mod.rs:72:33 [INFO] [stdout] | [INFO] [stdout] 72 | let do_mut = rng_thread.gen::() <= r_mut; [INFO] [stdout] | ^^^ expected identifier, found reserved keyword [INFO] [stdout] | [INFO] [stdout] help: escape `gen` to use it as an identifier [INFO] [stdout] | [INFO] [stdout] 72 | let do_mut = rng_thread.r#gen::() <= r_mut; [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found reserved keyword `gen` [INFO] [stdout] --> src/ga/mod.rs:145:23 [INFO] [stdout] | [INFO] [stdout] 145 | if rng_thread.gen::() <= 0.5 { [INFO] [stdout] | ^^^ expected identifier, found reserved keyword [INFO] [stdout] | [INFO] [stdout] help: escape `gen` to use it as an identifier [INFO] [stdout] | [INFO] [stdout] 145 | if rng_thread.r#gen::() <= 0.5 { [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found reserved keyword `gen` [INFO] [stdout] --> src/ga/mod.rs:225:9 [INFO] [stdout] | [INFO] [stdout] 225 | for gen in 0..params.n_iter { [INFO] [stdout] | ^^^ expected identifier, found reserved keyword [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found reserved keyword `gen` [INFO] [stdout] --> src/ga/mod.rs:55:19 [INFO] [stdout] | [INFO] [stdout] 55 | if rng_thread.gen::() <= r_cross { [INFO] [stdout] | ^^^ expected identifier, found reserved keyword [INFO] [stdout] | [INFO] [stdout] help: escape `gen` to use it as an identifier [INFO] [stdout] | [INFO] [stdout] 55 | if rng_thread.r#gen::() <= r_cross { [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found reserved keyword `gen` [INFO] [stdout] --> src/ga/mod.rs:72:33 [INFO] [stdout] | [INFO] [stdout] 72 | let do_mut = rng_thread.gen::() <= r_mut; [INFO] [stdout] | ^^^ expected identifier, found reserved keyword [INFO] [stdout] | [INFO] [stdout] help: escape `gen` to use it as an identifier [INFO] [stdout] | [INFO] [stdout] 72 | let do_mut = rng_thread.r#gen::() <= r_mut; [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found reserved keyword `gen` [INFO] [stdout] --> src/ga/mod.rs:145:23 [INFO] [stdout] | [INFO] [stdout] 145 | if rng_thread.gen::() <= 0.5 { [INFO] [stdout] | ^^^ expected identifier, found reserved keyword [INFO] [stdout] | [INFO] [stdout] help: escape `gen` to use it as an identifier [INFO] [stdout] | [INFO] [stdout] 145 | if rng_thread.r#gen::() <= 0.5 { [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found reserved keyword `gen` [INFO] [stdout] --> src/ga/mod.rs:225:9 [INFO] [stdout] | [INFO] [stdout] 225 | for gen in 0..params.n_iter { [INFO] [stdout] | ^^^ expected identifier, found reserved keyword [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected expression, found reserved keyword `gen` [INFO] [stdout] --> src/ga/mod.rs:227:33 [INFO] [stdout] | [INFO] [stdout] 227 | println!("gen: {}", gen + 1); [INFO] [stdout] | ^^^ expected expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected expression, found reserved keyword `gen` [INFO] [stdout] --> src/ga/mod.rs:227:33 [INFO] [stdout] | [INFO] [stdout] 227 | println!("gen: {}", gen + 1); [INFO] [stdout] | ^^^ expected expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `spiking_neural_networks` (lib test) due to 6 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `spiking_neural_networks` (lib) due to 6 previous errors [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" "bb0a87164c62149d4d5f7d966b69c997e580d67ab64405dd70b08bc0bfeac9ee", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bb0a87164c62149d4d5f7d966b69c997e580d67ab64405dd70b08bc0bfeac9ee", kill_on_drop: false }` [INFO] [stdout] bb0a87164c62149d4d5f7d966b69c997e580d67ab64405dd70b08bc0bfeac9ee