[INFO] cloning repository https://github.com/AlexBethel/cse4066-final-project [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/AlexBethel/cse4066-final-project" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAlexBethel%2Fcse4066-final-project", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAlexBethel%2Fcse4066-final-project'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 494b9c553566e93b3d370f234942e7d92818c1d6 [INFO] checking AlexBethel/cse4066-final-project/494b9c553566e93b3d370f234942e7d92818c1d6 against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAlexBethel%2Fcse4066-final-project" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/AlexBethel/cse4066-final-project 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 git repo https://github.com/AlexBethel/cse4066-final-project [INFO] finished tweaking git repo https://github.com/AlexBethel/cse4066-final-project [INFO] tweaked toml for git repo https://github.com/AlexBethel/cse4066-final-project written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/AlexBethel/cse4066-final-project 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-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 50177d75d3ca340cdbb2928c44045e3e396c84352eb4bb402ad7976b904314aa [INFO] running `Command { std: "docker" "start" "-a" "50177d75d3ca340cdbb2928c44045e3e396c84352eb4bb402ad7976b904314aa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "50177d75d3ca340cdbb2928c44045e3e396c84352eb4bb402ad7976b904314aa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "50177d75d3ca340cdbb2928c44045e3e396c84352eb4bb402ad7976b904314aa", kill_on_drop: false }` [INFO] [stdout] 50177d75d3ca340cdbb2928c44045e3e396c84352eb4bb402ad7976b904314aa [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 21bc47243a34c6c3a1e68def0cdf5a92efca7fa3c11084ab38c99b2c603db21d [INFO] running `Command { std: "docker" "start" "-a" "21bc47243a34c6c3a1e68def0cdf5a92efca7fa3c11084ab38c99b2c603db21d", 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 proc-macro2 v1.0.70 [INFO] [stderr] Compiling libc v0.2.150 [INFO] [stderr] Compiling serde v1.0.193 [INFO] [stderr] Checking miniz_oxide v0.7.1 [INFO] [stderr] Checking fdeflate v0.3.1 [INFO] [stderr] Checking flate2 v1.0.28 [INFO] [stderr] Checking png v0.17.10 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Compiling syn v2.0.39 [INFO] [stderr] Checking getrandom v0.2.11 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Compiling serde_derive v1.0.193 [INFO] [stderr] Checking bincode v1.3.3 [INFO] [stderr] Checking project v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2021 edition to 2024 [INFO] [stderr] Fixed src/random.rs (1 fix) [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/random.rs:9:24 [INFO] [stdout] | [INFO] [stdout] 9 | let rng = unsafe { &mut RNG }.get_or_insert_with(|| StdRng::from_seed([2; 32])); [INFO] [stdout] | ^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] = note: `--force-warn static-mut-refs` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 9 | let rng = unsafe { addr_of_mut!(RNG) }.get_or_insert_with(|| StdRng::from_seed([2; 32])); [INFO] [stdout] | ~~~~~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `inputs` [INFO] [stdout] --> src/layers/recompose.rs:34:60 [INFO] [stdout] | [INFO] [stdout] 34 | fn backprop_input(&self, output_derivatives: &[Image], inputs: &[f64]) -> Vec { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_inputs` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_network` is never used [INFO] [stdout] --> src/main.rs:56:4 [INFO] [stdout] | [INFO] [stdout] 56 | fn generate_network() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_ae_network` is never used [INFO] [stdout] --> src/main.rs:79:4 [INFO] [stdout] | [INFO] [stdout] 79 | fn generate_ae_network() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `train_mnist` is never used [INFO] [stdout] --> src/main.rs:109:4 [INFO] [stdout] | [INFO] [stdout] 109 | fn train_mnist() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `dump_testing_data` is never used [INFO] [stdout] --> src/main.rs:228:4 [INFO] [stdout] | [INFO] [stdout] 228 | fn dump_testing_data() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `from_graph_sampler` and `divide` are never used [INFO] [stdout] --> src/image.rs:93:12 [INFO] [stdout] | [INFO] [stdout] 40 | impl Image { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 93 | pub fn from_graph_sampler( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 108 | pub fn divide(self, x_scaler: usize, y_scaler: usize) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/layers/cnn.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 20 | impl CnnLayer { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 21 | pub fn new(kernel_diameter: usize, kernel_stride: usize, n_kernels: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `softmax_loss_gradient` is never used [INFO] [stdout] --> src/layers/softmax.rs:45:8 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn softmax_loss_gradient(outputs: &[f64], correct_output: usize) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/layers/maxpool.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl MaxpoolLayer { [INFO] [stdout] | ----------------- associated function in this implementation [INFO] [stdout] 13 | pub fn new(diameter: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/layers/fully_connected.rs:101:12 [INFO] [stdout] | [INFO] [stdout] 100 | impl FullyConnectedLayer { [INFO] [stdout] | ------------------------------------------ associated function in this implementation [INFO] [stdout] 101 | pub fn new(n_inputs: usize, n_outputs: usize, activation: F) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/layers/recompose.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl RecomposeLayer { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] 18 | pub fn new(xsize: usize, ysize: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `loss` is never used [INFO] [stdout] --> src/layers/recompose.rs:41:8 [INFO] [stdout] | [INFO] [stdout] 41 | pub fn loss(output: &Image, expected: &Image) -> f64 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `loss_gradient` is never used [INFO] [stdout] --> src/layers/recompose.rs:47:8 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn loss_gradient(output: &Image, expected: &Image) -> Image { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `stack` is never used [INFO] [stdout] --> src/network.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub trait NeuralNetwork { [INFO] [stdout] | ------------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 29 | fn stack>( [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ngon_flat` is never used [INFO] [stdout] --> src/polygon.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn ngon_flat(xsize: usize, ysize: usize, vertices: &[(f64, f64)]) -> Image { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ngon_regular` is never used [INFO] [stdout] --> src/polygon.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn ngon_regular(xsize: usize, ysize: usize, n_vertices: u32, angle_offset: f64) -> Image { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Edges` is never constructed [INFO] [stdout] --> src/polygon.rs:42:8 [INFO] [stdout] | [INFO] [stdout] 42 | struct Edges<'a> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/polygon.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 47 | impl<'a> Edges<'a> { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] 48 | pub fn new(vertices: &'a [(f64, f64)]) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `RNG` is never used [INFO] [stdout] --> src/random.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | static mut RNG: Option = None; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `random` is never used [INFO] [stdout] --> src/random.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn random() -> T [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 21 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/random.rs:9:24 [INFO] [stdout] | [INFO] [stdout] 9 | let rng = unsafe { &mut RNG }.get_or_insert_with(|| StdRng::from_seed([2; 32])); [INFO] [stdout] | ^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] = note: `--force-warn static-mut-refs` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 9 | let rng = unsafe { addr_of_mut!(RNG) }.get_or_insert_with(|| StdRng::from_seed([2; 32])); [INFO] [stdout] | ~~~~~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `inputs` [INFO] [stdout] --> src/layers/recompose.rs:34:60 [INFO] [stdout] | [INFO] [stdout] 34 | fn backprop_input(&self, output_derivatives: &[Image], inputs: &[f64]) -> Vec { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_inputs` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_network` is never used [INFO] [stdout] --> src/main.rs:56:4 [INFO] [stdout] | [INFO] [stdout] 56 | fn generate_network() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_ae_network` is never used [INFO] [stdout] --> src/main.rs:79:4 [INFO] [stdout] | [INFO] [stdout] 79 | fn generate_ae_network() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `train_mnist` is never used [INFO] [stdout] --> src/main.rs:109:4 [INFO] [stdout] | [INFO] [stdout] 109 | fn train_mnist() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `dump_testing_data` is never used [INFO] [stdout] --> src/main.rs:228:4 [INFO] [stdout] | [INFO] [stdout] 228 | fn dump_testing_data() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `from_graph_sampler` and `divide` are never used [INFO] [stdout] --> src/image.rs:93:12 [INFO] [stdout] | [INFO] [stdout] 40 | impl Image { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 93 | pub fn from_graph_sampler( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 108 | pub fn divide(self, x_scaler: usize, y_scaler: usize) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/layers/cnn.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 20 | impl CnnLayer { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 21 | pub fn new(kernel_diameter: usize, kernel_stride: usize, n_kernels: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `softmax_loss_gradient` is never used [INFO] [stdout] --> src/layers/softmax.rs:45:8 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn softmax_loss_gradient(outputs: &[f64], correct_output: usize) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/layers/maxpool.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl MaxpoolLayer { [INFO] [stdout] | ----------------- associated function in this implementation [INFO] [stdout] 13 | pub fn new(diameter: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/layers/fully_connected.rs:101:12 [INFO] [stdout] | [INFO] [stdout] 100 | impl FullyConnectedLayer { [INFO] [stdout] | ------------------------------------------ associated function in this implementation [INFO] [stdout] 101 | pub fn new(n_inputs: usize, n_outputs: usize, activation: F) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/layers/recompose.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl RecomposeLayer { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] 18 | pub fn new(xsize: usize, ysize: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `loss` is never used [INFO] [stdout] --> src/layers/recompose.rs:41:8 [INFO] [stdout] | [INFO] [stdout] 41 | pub fn loss(output: &Image, expected: &Image) -> f64 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `loss_gradient` is never used [INFO] [stdout] --> src/layers/recompose.rs:47:8 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn loss_gradient(output: &Image, expected: &Image) -> Image { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `stack` is never used [INFO] [stdout] --> src/network.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub trait NeuralNetwork { [INFO] [stdout] | ------------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 29 | fn stack>( [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ngon_flat` is never used [INFO] [stdout] --> src/polygon.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn ngon_flat(xsize: usize, ysize: usize, vertices: &[(f64, f64)]) -> Image { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ngon_regular` is never used [INFO] [stdout] --> src/polygon.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn ngon_regular(xsize: usize, ysize: usize, n_vertices: u32, angle_offset: f64) -> Image { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 5.80s [INFO] [stdout] warning: struct `Edges` is never constructed [INFO] [stdout] --> src/polygon.rs:42:8 [INFO] [stdout] | [INFO] [stdout] 42 | struct Edges<'a> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/polygon.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 47 | impl<'a> Edges<'a> { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] 48 | pub fn new(vertices: &'a [(f64, f64)]) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `RNG` is never used [INFO] [stdout] --> src/random.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | static mut RNG: Option = None; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `random` is never used [INFO] [stdout] --> src/random.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn random() -> T [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 21 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking project v0.1.0 (/tmp/fixit) [INFO] [stdout] error[E0796]: creating a mutable reference to a mutable static [INFO] [stdout] --> src/random.rs:9:24 [INFO] [stdout] | [INFO] [stdout] 9 | let rng = unsafe { &mut RNG }.get_or_insert_with(|| StdRng::from_seed([2; 32])); [INFO] [stdout] | ^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 9 | let rng = unsafe { addr_of_mut!(RNG) }.get_or_insert_with(|| StdRng::from_seed([2; 32])); [INFO] [stdout] | ~~~~~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a mutable reference to a mutable static [INFO] [stdout] --> src/random.rs:9:24 [INFO] [stdout] | [INFO] [stdout] 9 | let rng = unsafe { &mut RNG }.get_or_insert_with(|| StdRng::from_seed([2; 32])); [INFO] [stdout] | ^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 9 | let rng = unsafe { addr_of_mut!(RNG) }.get_or_insert_with(|| StdRng::from_seed([2; 32])); [INFO] [stdout] | ~~~~~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `inputs` [INFO] [stdout] --> src/layers/recompose.rs:34:60 [INFO] [stdout] | [INFO] [stdout] 34 | fn backprop_input(&self, output_derivatives: &[Image], inputs: &[f64]) -> Vec { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_inputs` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `inputs` [INFO] [stdout] --> src/layers/recompose.rs:34:60 [INFO] [stdout] | [INFO] [stdout] 34 | fn backprop_input(&self, output_derivatives: &[Image], inputs: &[f64]) -> Vec { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_inputs` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0796`. [INFO] [stdout] [INFO] [stderr] error: could not compile `project` (bin "project" test) due to 2 previous errors; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 1 previous error; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0796`. [INFO] [stdout] [INFO] [stderr] error: could not compile `project` (bin "project") due to 2 previous errors; 1 warning 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" "21bc47243a34c6c3a1e68def0cdf5a92efca7fa3c11084ab38c99b2c603db21d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "21bc47243a34c6c3a1e68def0cdf5a92efca7fa3c11084ab38c99b2c603db21d", kill_on_drop: false }` [INFO] [stdout] 21bc47243a34c6c3a1e68def0cdf5a92efca7fa3c11084ab38c99b2c603db21d