[INFO] cloning repository https://github.com/HasSak-47/rust_test [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/HasSak-47/rust_test" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FHasSak-47%2Frust_test", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FHasSak-47%2Frust_test'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 001a9ea15bb803ab14136b7845bff70393edde64 [INFO] checking HasSak-47/rust_test/001a9ea15bb803ab14136b7845bff70393edde64 against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FHasSak-47%2Frust_test" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/HasSak-47/rust_test 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/HasSak-47/rust_test [INFO] finished tweaking git repo https://github.com/HasSak-47/rust_test [INFO] tweaked toml for git repo https://github.com/HasSak-47/rust_test written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/HasSak-47/rust_test 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-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 705eac3dd65b5cc06d9eed33a6e9413a78983697be5919a0e40e0e3858ed12e8 [INFO] running `Command { std: "docker" "start" "-a" "705eac3dd65b5cc06d9eed33a6e9413a78983697be5919a0e40e0e3858ed12e8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "705eac3dd65b5cc06d9eed33a6e9413a78983697be5919a0e40e0e3858ed12e8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "705eac3dd65b5cc06d9eed33a6e9413a78983697be5919a0e40e0e3858ed12e8", kill_on_drop: false }` [INFO] [stdout] 705eac3dd65b5cc06d9eed33a6e9413a78983697be5919a0e40e0e3858ed12e8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] caba6391fe276d406bae6043a6e4b6b32a5a9dbf670c4f9ab4069c0e0e3b5916 [INFO] running `Command { std: "docker" "start" "-a" "caba6391fe276d406bae6043a6e4b6b32a5a9dbf670c4f9ab4069c0e0e3b5916", 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 libc v0.2.132 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Compiling signal-hook v0.3.14 [INFO] [stderr] Compiling parking_lot_core v0.9.3 [INFO] [stderr] Checking smallvec v1.9.0 [INFO] [stderr] Checking cassowary v0.3.0 [INFO] [stderr] Checking unicode-segmentation v1.9.0 [INFO] [stderr] Checking svg v0.10.0 [INFO] [stderr] Compiling lock_api v0.4.8 [INFO] [stderr] Checking signal-hook-registry v1.4.0 [INFO] [stderr] Checking mio v0.8.4 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Checking signal-hook-mio v0.2.3 [INFO] [stderr] Checking crossterm v0.25.0 [INFO] [stderr] Checking tui v0.19.0 [INFO] [stderr] Checking rust_tui v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2021 edition to 2024 [INFO] [stderr] Fixed src/main.rs (5 fixes) [INFO] [stderr] Fixed src/lily/generator/wave.rs (2 fixes) [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/lily/inputs/controller.rs:66:16 [INFO] [stdout] | [INFO] [stdout] 66 | return &PRESSED; [INFO] [stdout] | ^^^^^^^^ shared 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 shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared 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!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 66 | return addr_of!(PRESSED); [INFO] [stdout] | ~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `buf` [INFO] [stdout] --> src/lily/generator/wave.rs:368:17 [INFO] [stdout] | [INFO] [stdout] 368 | let buf = String::new(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_buf` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `PRESSED` is never used [INFO] [stdout] --> src/lily/inputs/controller.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 42 | static mut PRESSED: KeyCode = KeyCode::Null; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `io_loop` is never used [INFO] [stdout] --> src/lily/inputs/controller.rs:44:4 [INFO] [stdout] | [INFO] [stdout] 44 | fn io_loop() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_key` is never used [INFO] [stdout] --> src/lily/inputs/controller.rs:65:8 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn get_key() -> &'static KeyCode { unsafe{ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `init_io` is never used [INFO] [stdout] --> src/lily/inputs/controller.rs:70:8 [INFO] [stdout] | [INFO] [stdout] 70 | pub fn init_io() -> Result<(), std::io::Error> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `set_global_seed` is never used [INFO] [stdout] --> src/lily/generator/random.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn set_global_seed(seed: &u64){ [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `random`, `orands`, `orands_range`, and `orand_range` are never used [INFO] [stdout] --> src/lily/generator/random.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 34 | pub trait Random>{ [INFO] [stdout] | ------ associated functions in this trait [INFO] [stdout] 35 | fn rands(seed: &u64) -> T; [INFO] [stdout] 36 | fn random() -> T; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | fn orands(seed: u64) -> T; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 42 | fn orands_range(min: T, max: T, seed: u64) -> T; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 43 | fn orand_range(min: T, max: T) -> T; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bubble_gen_2d` is never used [INFO] [stdout] --> src/lily/generator/bubble.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn bubble_gen_2d(x: &f64, y: &f64) -> f64{ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bubble_gen_3d` is never used [INFO] [stdout] --> src/lily/generator/bubble.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn bubble_gen_3d(x: &f64, y: &f64, z: &f64) -> f64{ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `mirror` is never used [INFO] [stdout] --> src/lily/generator/wave.rs:67:8 [INFO] [stdout] | [INFO] [stdout] 66 | pub trait Mirror{ [INFO] [stdout] | ------ method in this trait [INFO] [stdout] 67 | fn mirror(&self) -> Self; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `ymirror` and `xmirror` are never used [INFO] [stdout] --> src/lily/generator/wave.rs:95:12 [INFO] [stdout] | [INFO] [stdout] 80 | impl Unit{ [INFO] [stdout] | ----------------------------------------------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 95 | pub fn ymirror(&self) -> Unit{ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | pub fn xmirror(&self) -> Unit{ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `collapsed`, `uncollapse`, and `collapse` are never used [INFO] [stdout] --> src/lily/generator/wave.rs:157:12 [INFO] [stdout] | [INFO] [stdout] 138 | impl Cell{ [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 157 | pub fn collapsed(&self) -> bool{ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 172 | fn uncollapse(&self) -> Vec{ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 187 | fn collapse( [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `default` and `defcell` are never read [INFO] [stdout] --> src/lily/generator/wave.rs:251:9 [INFO] [stdout] | [INFO] [stdout] 248 | pub struct FiniteMap{ [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 251 | pub default: Uncollapsed, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 252 | pub defcell: Cell, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `grade` is never read [INFO] [stdout] --> src/lily/generator/wave.rs:260:9 [INFO] [stdout] | [INFO] [stdout] 258 | pub struct LeastContainer{ [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 259 | pub vec: Vec::<[usize; 2]>, [INFO] [stdout] 260 | pub grade: usize, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `collapse_cell` is never used [INFO] [stdout] --> src/lily/generator/wave.rs:285:12 [INFO] [stdout] | [INFO] [stdout] 263 | impl FiniteMap{ [INFO] [stdout] | --------------------------------------------------------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 285 | pub fn collapse_cell(&mut self, i: usize, j: usize) -> bool{ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `generate_3d` and `generate_2d` are never used [INFO] [stdout] --> src/lily/generator/base.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait Generator { [INFO] [stdout] | --------- methods in this trait [INFO] [stdout] 4 | fn generate_3d(self, x: InT, y: InT, z: InT) -> ReturnT; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 5 | fn generate_2d(self, x: InT, y: InT) -> ReturnT; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 17 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/lily/inputs/controller.rs:66:16 [INFO] [stdout] | [INFO] [stdout] 66 | return &PRESSED; [INFO] [stdout] | ^^^^^^^^ shared 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 shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared 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!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 66 | return addr_of!(PRESSED); [INFO] [stdout] | ~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `buf` [INFO] [stdout] --> src/lily/generator/wave.rs:368:17 [INFO] [stdout] | [INFO] [stdout] 368 | let buf = String::new(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_buf` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `PRESSED` is never used [INFO] [stdout] --> src/lily/inputs/controller.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 42 | static mut PRESSED: KeyCode = KeyCode::Null; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `io_loop` is never used [INFO] [stdout] --> src/lily/inputs/controller.rs:44:4 [INFO] [stdout] | [INFO] [stdout] 44 | fn io_loop() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_key` is never used [INFO] [stdout] --> src/lily/inputs/controller.rs:65:8 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn get_key() -> &'static KeyCode { unsafe{ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `init_io` is never used [INFO] [stdout] --> src/lily/inputs/controller.rs:70:8 [INFO] [stdout] | [INFO] [stdout] 70 | pub fn init_io() -> Result<(), std::io::Error> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `set_global_seed` is never used [INFO] [stdout] --> src/lily/generator/random.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn set_global_seed(seed: &u64){ [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `random`, `orands`, `orands_range`, and `orand_range` are never used [INFO] [stdout] --> src/lily/generator/random.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 34 | pub trait Random>{ [INFO] [stdout] | ------ associated functions in this trait [INFO] [stdout] 35 | fn rands(seed: &u64) -> T; [INFO] [stdout] 36 | fn random() -> T; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | fn orands(seed: u64) -> T; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 42 | fn orands_range(min: T, max: T, seed: u64) -> T; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 43 | fn orand_range(min: T, max: T) -> T; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bubble_gen_2d` is never used [INFO] [stdout] --> src/lily/generator/bubble.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn bubble_gen_2d(x: &f64, y: &f64) -> f64{ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bubble_gen_3d` is never used [INFO] [stdout] --> src/lily/generator/bubble.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn bubble_gen_3d(x: &f64, y: &f64, z: &f64) -> f64{ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `mirror` is never used [INFO] [stdout] --> src/lily/generator/wave.rs:67:8 [INFO] [stdout] | [INFO] [stdout] 66 | pub trait Mirror{ [INFO] [stdout] | ------ method in this trait [INFO] [stdout] 67 | fn mirror(&self) -> Self; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `ymirror` and `xmirror` are never used [INFO] [stdout] --> src/lily/generator/wave.rs:95:12 [INFO] [stdout] | [INFO] [stdout] 80 | impl Unit{ [INFO] [stdout] | ----------------------------------------------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 95 | pub fn ymirror(&self) -> Unit{ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | pub fn xmirror(&self) -> Unit{ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `collapsed`, `uncollapse`, and `collapse` are never used [INFO] [stdout] --> src/lily/generator/wave.rs:157:12 [INFO] [stdout] | [INFO] [stdout] 138 | impl Cell{ [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 157 | pub fn collapsed(&self) -> bool{ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 172 | fn uncollapse(&self) -> Vec{ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 187 | fn collapse( [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `default` and `defcell` are never read [INFO] [stdout] --> src/lily/generator/wave.rs:251:9 [INFO] [stdout] | [INFO] [stdout] 248 | pub struct FiniteMap{ [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 251 | pub default: Uncollapsed, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 252 | pub defcell: Cell, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `grade` is never read [INFO] [stdout] --> src/lily/generator/wave.rs:260:9 [INFO] [stdout] | [INFO] [stdout] 258 | pub struct LeastContainer{ [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 259 | pub vec: Vec::<[usize; 2]>, [INFO] [stdout] 260 | pub grade: usize, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `collapse_cell` is never used [INFO] [stdout] --> src/lily/generator/wave.rs:285:12 [INFO] [stdout] | [INFO] [stdout] 263 | impl FiniteMap{ [INFO] [stdout] | --------------------------------------------------------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 285 | pub fn collapse_cell(&mut self, i: usize, j: usize) -> bool{ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `generate_3d` and `generate_2d` are never used [INFO] [stdout] --> src/lily/generator/base.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait Generator { [INFO] [stdout] | --------- methods in this trait [INFO] [stdout] 4 | fn generate_3d(self, x: InT, y: InT, z: InT) -> ReturnT; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 5 | fn generate_2d(self, x: InT, y: InT) -> ReturnT; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 17 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.05s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: svg v0.10.0 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking rust_tui v0.1.0 (/tmp/fixit) [INFO] [stdout] error[E0796]: creating a shared reference to a mutable static [INFO] [stdout] --> src/lily/inputs/controller.rs:66:16 [INFO] [stdout] | [INFO] [stdout] 66 | return &PRESSED; [INFO] [stdout] | ^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 66 | return addr_of!(PRESSED); [INFO] [stdout] | ~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a shared reference to a mutable static [INFO] [stdout] --> src/lily/inputs/controller.rs:66:16 [INFO] [stdout] | [INFO] [stdout] 66 | return &PRESSED; [INFO] [stdout] | ^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: this shared reference has lifetime `'static`, but if the static ever gets mutated, or a mutable reference is created, then any further use of this shared reference is Undefined Behavior [INFO] [stdout] help: use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 66 | return addr_of!(PRESSED); [INFO] [stdout] | ~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `buf` [INFO] [stdout] --> src/lily/generator/wave.rs:368:17 [INFO] [stdout] | [INFO] [stdout] 368 | let buf = String::new(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_buf` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `buf` [INFO] [stdout] --> src/lily/generator/wave.rs:368:17 [INFO] [stdout] | [INFO] [stdout] 368 | let buf = String::new(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_buf` [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] [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 `rust_tui` (bin "rust_tui" test) due to 2 previous errors; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `rust_tui` (bin "rust_tui") 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" "caba6391fe276d406bae6043a6e4b6b32a5a9dbf670c4f9ab4069c0e0e3b5916", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "caba6391fe276d406bae6043a6e4b6b32a5a9dbf670c4f9ab4069c0e0e3b5916", kill_on_drop: false }` [INFO] [stdout] caba6391fe276d406bae6043a6e4b6b32a5a9dbf670c4f9ab4069c0e0e3b5916