[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] building HasSak-47/rust_test against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FHasSak-47%2Frust_test" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/HasSak-47/rust_test on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "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-1-tc1/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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded svg v0.10.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 732f125df9ea144bc9a411a1ded5306719f5c1f3756e7a876c13faa7c9aad907 [INFO] running `Command { std: "docker" "start" "-a" "732f125df9ea144bc9a411a1ded5306719f5c1f3756e7a876c13faa7c9aad907", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "732f125df9ea144bc9a411a1ded5306719f5c1f3756e7a876c13faa7c9aad907", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "732f125df9ea144bc9a411a1ded5306719f5c1f3756e7a876c13faa7c9aad907", kill_on_drop: false }` [INFO] [stdout] 732f125df9ea144bc9a411a1ded5306719f5c1f3756e7a876c13faa7c9aad907 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b3106a7e9bdab86bd760ac2e9981cbaf7b86305bea58d9548b19d7df31ea50ab [INFO] running `Command { std: "docker" "start" "-a" "b3106a7e9bdab86bd760ac2e9981cbaf7b86305bea58d9548b19d7df31ea50ab", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.132 [INFO] [stderr] Compiling signal-hook v0.3.14 [INFO] [stderr] Compiling smallvec v1.9.0 [INFO] [stderr] Compiling lock_api v0.4.8 [INFO] [stderr] Compiling unicode-segmentation v1.9.0 [INFO] [stderr] Compiling cassowary v0.3.0 [INFO] [stderr] Compiling unicode-width v0.1.9 [INFO] [stderr] Compiling svg v0.10.0 [INFO] [stderr] Compiling signal-hook-registry v1.4.0 [INFO] [stderr] Compiling parking_lot_core v0.9.3 [INFO] [stderr] Compiling mio v0.8.4 [INFO] [stderr] Compiling parking_lot v0.12.1 [INFO] [stderr] Compiling signal-hook-mio v0.2.3 [INFO] [stderr] Compiling crossterm v0.25.0 [INFO] [stderr] Compiling tui v0.19.0 [INFO] [stderr] Compiling rust_tui v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::cmp::min_by` [INFO] [stdout] --> src/lily/generator/wave.rs:62:5 [INFO] [stdout] | [INFO] [stdout] 62 | use std::cmp::min_by; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crossterm::event::PushKeyboardEnhancementFlags` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crossterm::event::PushKeyboardEnhancementFlags; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `lily::generator::random::*` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use lily::generator::random::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `lily::general::*` [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use lily::general::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Duration`, `SystemTime`, and `UNIX_EPOCH` [INFO] [stdout] --> src/main.rs:7:17 [INFO] [stdout] | [INFO] [stdout] 7 | use std::time::{UNIX_EPOCH, SystemTime, Duration}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::fmt; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `buf` [INFO] [stdout] --> src/lily/generator/wave.rs:369:21 [INFO] [stdout] | [INFO] [stdout] 369 | let mut 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: variable does not need to be mutable [INFO] [stdout] --> src/lily/generator/wave.rs:369:17 [INFO] [stdout] | [INFO] [stdout] 369 | let mut buf = String::new(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` 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:68:8 [INFO] [stdout] | [INFO] [stdout] 67 | pub trait Mirror{ [INFO] [stdout] | ------ method in this trait [INFO] [stdout] 68 | 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:96:12 [INFO] [stdout] | [INFO] [stdout] 81 | impl Unit{ [INFO] [stdout] | ----------------------------------------------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 96 | pub fn ymirror(&self) -> Unit{ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 100 | 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:158:12 [INFO] [stdout] | [INFO] [stdout] 139 | impl Cell{ [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 158 | pub fn collapsed(&self) -> bool{ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 173 | fn uncollapse(&self) -> Vec{ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 188 | 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:252:9 [INFO] [stdout] | [INFO] [stdout] 249 | pub struct FiniteMap{ [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 252 | pub default: Uncollapsed, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 253 | pub defcell: Cell, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `grade` is never read [INFO] [stdout] --> src/lily/generator/wave.rs:261:9 [INFO] [stdout] | [INFO] [stdout] 259 | pub struct LeastContainer{ [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 260 | pub vec: Vec::<[usize; 2]>, [INFO] [stdout] 261 | 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:286:12 [INFO] [stdout] | [INFO] [stdout] 264 | impl FiniteMap{ [INFO] [stdout] | --------------------------------------------------------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 286 | 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: 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 [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 66 | return &raw const PRESSED; [INFO] [stdout] | ~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/lily/generator/random.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | RANDOM_SEED.clone_from(seed); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/lily/generator/random.rs:27:20 [INFO] [stdout] | [INFO] [stdout] 27 | prev_val = RANDOM_SEED.clone(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.11s [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] running `Command { std: "docker" "inspect" "b3106a7e9bdab86bd760ac2e9981cbaf7b86305bea58d9548b19d7df31ea50ab", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b3106a7e9bdab86bd760ac2e9981cbaf7b86305bea58d9548b19d7df31ea50ab", kill_on_drop: false }` [INFO] [stdout] b3106a7e9bdab86bd760ac2e9981cbaf7b86305bea58d9548b19d7df31ea50ab [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7200153f1d6a6762725d1a9d6518149b315bd892ebb9a4a904a1ec4b1cd4a4f4 [INFO] running `Command { std: "docker" "start" "-a" "7200153f1d6a6762725d1a9d6518149b315bd892ebb9a4a904a1ec4b1cd4a4f4", kill_on_drop: false }` [INFO] [stderr] Compiling rust_tui v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::cmp::min_by` [INFO] [stdout] --> src/lily/generator/wave.rs:62:5 [INFO] [stdout] | [INFO] [stdout] 62 | use std::cmp::min_by; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crossterm::event::PushKeyboardEnhancementFlags` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crossterm::event::PushKeyboardEnhancementFlags; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `lily::generator::random::*` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use lily::generator::random::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `lily::general::*` [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use lily::general::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Duration`, `SystemTime`, and `UNIX_EPOCH` [INFO] [stdout] --> src/main.rs:7:17 [INFO] [stdout] | [INFO] [stdout] 7 | use std::time::{UNIX_EPOCH, SystemTime, Duration}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::fmt; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `buf` [INFO] [stdout] --> src/lily/generator/wave.rs:369:21 [INFO] [stdout] | [INFO] [stdout] 369 | let mut 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: variable does not need to be mutable [INFO] [stdout] --> src/lily/generator/wave.rs:369:17 [INFO] [stdout] | [INFO] [stdout] 369 | let mut buf = String::new(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` 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:68:8 [INFO] [stdout] | [INFO] [stdout] 67 | pub trait Mirror{ [INFO] [stdout] | ------ method in this trait [INFO] [stdout] 68 | 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:96:12 [INFO] [stdout] | [INFO] [stdout] 81 | impl Unit{ [INFO] [stdout] | ----------------------------------------------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 96 | pub fn ymirror(&self) -> Unit{ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 100 | 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:158:12 [INFO] [stdout] | [INFO] [stdout] 139 | impl Cell{ [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 158 | pub fn collapsed(&self) -> bool{ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 173 | fn uncollapse(&self) -> Vec{ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 188 | 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:252:9 [INFO] [stdout] | [INFO] [stdout] 249 | pub struct FiniteMap{ [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 252 | pub default: Uncollapsed, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 253 | pub defcell: Cell, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `grade` is never read [INFO] [stdout] --> src/lily/generator/wave.rs:261:9 [INFO] [stdout] | [INFO] [stdout] 259 | pub struct LeastContainer{ [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 260 | pub vec: Vec::<[usize; 2]>, [INFO] [stdout] 261 | 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:286:12 [INFO] [stdout] | [INFO] [stdout] 264 | impl FiniteMap{ [INFO] [stdout] | --------------------------------------------------------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 286 | 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: 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 [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 66 | return &raw const PRESSED; [INFO] [stdout] | ~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/lily/generator/random.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | RANDOM_SEED.clone_from(seed); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/lily/generator/random.rs:27:20 [INFO] [stdout] | [INFO] [stdout] 27 | prev_val = RANDOM_SEED.clone(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.19s [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] running `Command { std: "docker" "inspect" "7200153f1d6a6762725d1a9d6518149b315bd892ebb9a4a904a1ec4b1cd4a4f4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7200153f1d6a6762725d1a9d6518149b315bd892ebb9a4a904a1ec4b1cd4a4f4", kill_on_drop: false }` [INFO] [stdout] 7200153f1d6a6762725d1a9d6518149b315bd892ebb9a4a904a1ec4b1cd4a4f4