[INFO] cloning repository https://github.com/Akari202/grapher [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Akari202/grapher" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAkari202%2Fgrapher", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAkari202%2Fgrapher'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 801f70a8e91d5689fca7b63e3c3217fc7138a768 [INFO] checking Akari202/grapher/801f70a8e91d5689fca7b63e3c3217fc7138a768 against master#ab869e094a907cc5d19b4080f22eccaf347f1f95 for pr-129604 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAkari202%2Fgrapher" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Akari202/grapher on toolchain ab869e094a907cc5d19b4080f22eccaf347f1f95 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] removed /workspace/builds/worker-6-tc1/source/.cargo/config.toml [INFO] removed /workspace/builds/worker-6-tc1/source/rust-toolchain.toml [INFO] started tweaking git repo https://github.com/Akari202/grapher [INFO] finished tweaking git repo https://github.com/Akari202/grapher [INFO] tweaked toml for git repo https://github.com/Akari202/grapher written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/Akari202/grapher 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" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7b15fc6edcc64ecc309784212dea8a69385c6e0b4b5418df6454c20fe88c532f [INFO] running `Command { std: "docker" "start" "-a" "7b15fc6edcc64ecc309784212dea8a69385c6e0b4b5418df6454c20fe88c532f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7b15fc6edcc64ecc309784212dea8a69385c6e0b4b5418df6454c20fe88c532f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7b15fc6edcc64ecc309784212dea8a69385c6e0b4b5418df6454c20fe88c532f", kill_on_drop: false }` [INFO] [stdout] 7b15fc6edcc64ecc309784212dea8a69385c6e0b4b5418df6454c20fe88c532f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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" "-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] be45d0ec726ecabcae41785e7e17c5f885edbd61e9784767b34c8d13da0cdb00 [INFO] running `Command { std: "docker" "start" "-a" "be45d0ec726ecabcae41785e7e17c5f885edbd61e9784767b34c8d13da0cdb00", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.153 [INFO] [stderr] Checking log v0.4.21 [INFO] [stderr] Compiling alsa-sys v0.3.1 [INFO] [stderr] Compiling version-compare v0.1.1 [INFO] [stderr] Checking arrayvec v0.7.4 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Checking memchr v2.7.1 [INFO] [stderr] Compiling zerocopy v0.8.0-alpha.6 [INFO] [stderr] Checking bytemuck v1.14.3 [INFO] [stderr] Checking regex-syntax v0.8.2 [INFO] [stderr] Checking crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling cpal v0.15.2 [INFO] [stderr] Checking symphonia-core v0.5.3 [INFO] [stderr] Compiling sdl2-sys v0.36.0 [INFO] [stderr] Compiling rayon-core v1.12.1 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Checking anstyle-parse v0.2.3 [INFO] [stderr] Checking crossbeam-deque v0.8.5 [INFO] [stderr] Checking anstyle-query v1.0.2 [INFO] [stderr] Checking aho-corasick v1.1.2 [INFO] [stderr] Checking ogg v0.8.0 [INFO] [stderr] Checking dasp_sample v0.11.0 [INFO] [stderr] Checking anstyle v1.0.6 [INFO] [stderr] Compiling sdl2 v0.36.0 [INFO] [stderr] Checking lewton v0.10.2 [INFO] [stderr] Checking anstream v0.6.13 [INFO] [stderr] Checking humantime v2.1.0 [INFO] [stderr] Checking either v1.10.0 [INFO] [stderr] Checking hound v3.5.1 [INFO] [stderr] Checking claxon v0.4.3 [INFO] [stderr] Checking rayon v1.10.0 [INFO] [stderr] Checking symphonia-metadata v0.5.3 [INFO] [stderr] Checking regex-automata v0.4.5 [INFO] [stderr] Checking parking_lot_core v0.9.9 [INFO] [stderr] Checking getrandom v0.2.12 [INFO] [stderr] Checking nix v0.24.3 [INFO] [stderr] Checking symphonia-bundle-mp3 v0.5.3 [INFO] [stderr] Checking rand_core v0.9.0-alpha.1 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Checking rand_chacha v0.9.0-alpha.1 [INFO] [stderr] Checking alsa v0.7.1 [INFO] [stderr] Checking rand v0.9.0-alpha.1 [INFO] [stderr] Checking symphonia v0.5.3 [INFO] [stderr] Checking rodio v0.17.3 [INFO] [stderr] Checking regex v1.10.3 [INFO] [stderr] Checking env_filter v0.1.0 [INFO] [stderr] Checking env_logger v0.11.3 [INFO] [stderr] Checking grapher v0.1.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `sdl2::pixels::Color` [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use sdl2::pixels::Color; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BLUE`, `GREEN`, `RED`, and `WHITE` [INFO] [stdout] --> src/main.rs:9:21 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::colors::{BLUE, GREEN, RED, WHITE}; [INFO] [stdout] | ^^^^ ^^^^^ ^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `CENTER_Y` [INFO] [stdout] --> src/main.rs:10:21 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::config::{CENTER_Y, WINDOW_HEIGHT, WINDOW_WIDTH}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::function::UnaryFunction` [INFO] [stdout] --> src/main.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use crate::function::UnaryFunction; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::renderer::Renderer` [INFO] [stdout] --> src/coordinate.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::renderer::Renderer; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread::current` [INFO] [stdout] --> src/function.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::thread::current; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `GREEN` and `RED` [INFO] [stdout] --> src/function.rs:4:21 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::colors::{GREEN, RED}; [INFO] [stdout] | ^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::function::UnaryFunction` [INFO] [stdout] --> src/cursor.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::function::UnaryFunction; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::axis::Axis2D` [INFO] [stdout] --> src/sort.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::axis::Axis2D; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `RED` [INFO] [stdout] --> src/mohr.rs:2:46 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::colors::{BLUE, GREEN, LIGHT_GRAY, RED}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp::PartialEq` [INFO] [stdout] --> src/graph.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cmp::PartialEq; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BLUE`, `DARK_YELLOW`, and `GRAY` [INFO] [stdout] --> src/graph.rs:3:21 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::colors::{BLUE, DARK_YELLOW, GRAY, LIGHT_GRAY, WHITE, YELLOW}; [INFO] [stdout] | ^^^^ ^^^^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `is_sorted` has been stable since 1.82.0-nightly and no longer requires an attribute to enable [INFO] [stdout] --> src/main.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(is_sorted)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sdl2::pixels::Color` [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use sdl2::pixels::Color; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BLUE`, `GREEN`, `RED`, and `WHITE` [INFO] [stdout] --> src/main.rs:9:21 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::colors::{BLUE, GREEN, RED, WHITE}; [INFO] [stdout] | ^^^^ ^^^^^ ^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `CENTER_Y` [INFO] [stdout] --> src/main.rs:10:21 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::config::{CENTER_Y, WINDOW_HEIGHT, WINDOW_WIDTH}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::function::UnaryFunction` [INFO] [stdout] --> src/main.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use crate::function::UnaryFunction; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::renderer::Renderer` [INFO] [stdout] --> src/coordinate.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::renderer::Renderer; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread::current` [INFO] [stdout] --> src/function.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::thread::current; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `GREEN` and `RED` [INFO] [stdout] --> src/function.rs:4:21 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::colors::{GREEN, RED}; [INFO] [stdout] | ^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::function::UnaryFunction` [INFO] [stdout] --> src/cursor.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::function::UnaryFunction; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::axis::Axis2D` [INFO] [stdout] --> src/sort.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::axis::Axis2D; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `RED` [INFO] [stdout] --> src/mohr.rs:2:46 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::colors::{BLUE, GREEN, LIGHT_GRAY, RED}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp::PartialEq` [INFO] [stdout] --> src/graph.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cmp::PartialEq; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BLUE`, `DARK_YELLOW`, and `GRAY` [INFO] [stdout] --> src/graph.rs:3:21 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::colors::{BLUE, DARK_YELLOW, GRAY, LIGHT_GRAY, WHITE, YELLOW}; [INFO] [stdout] | ^^^^ ^^^^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `is_sorted` has been stable since 1.82.0-nightly and no longer requires an attribute to enable [INFO] [stdout] --> src/main.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(is_sorted)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/renderer.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | let mut event_pump = sdl.event_pump()?; [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: variable does not need to be mutable [INFO] [stdout] --> src/renderer.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | let mut event_pump = sdl.event_pump()?; [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: unused variable: `y` [INFO] [stdout] --> src/function.rs:40:32 [INFO] [stdout] | [INFO] [stdout] 40 | fn evaluate(&self, x: f32, y: f32) -> Option<(f32, f32)> { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/function.rs:40:32 [INFO] [stdout] | [INFO] [stdout] 40 | fn evaluate(&self, x: f32, y: f32) -> Option<(f32, f32)> { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/sort.rs:80:17 [INFO] [stdout] | [INFO] [stdout] 80 | _ => {} [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/sort.rs:80:17 [INFO] [stdout] | [INFO] [stdout] 76 | SortType::Insertion => self.stepable_insertion_sort(), [INFO] [stdout] | ------------------- matches some of the same values [INFO] [stdout] 77 | SortType::Shell => self.stepable_shell_sort(), [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] 78 | SortType::Merge => self.stepable_merge_sort(), [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] 79 | SortType::Quick => self.stepable_quick_sort(), [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] 80 | _ => {} [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `elements` [INFO] [stdout] --> src/sort.rs:253:30 [INFO] [stdout] | [INFO] [stdout] 253 | fn quick_sort(&mut self, elements: &mut Vec) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_elements` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `duration` [INFO] [stdout] --> src/audio.rs:4:34 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn play_tone(frequency: f32, duration: Duration) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_duration` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/sort.rs:80:17 [INFO] [stdout] | [INFO] [stdout] 80 | _ => {} [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/sort.rs:80:17 [INFO] [stdout] | [INFO] [stdout] 76 | SortType::Insertion => self.stepable_insertion_sort(), [INFO] [stdout] | ------------------- matches some of the same values [INFO] [stdout] 77 | SortType::Shell => self.stepable_shell_sort(), [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] 78 | SortType::Merge => self.stepable_merge_sort(), [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] 79 | SortType::Quick => self.stepable_quick_sort(), [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] 80 | _ => {} [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mohr` [INFO] [stdout] --> src/main.rs:58:9 [INFO] [stdout] | [INFO] [stdout] 58 | let mohr = mohr::MohrsCircle::new([200.0, 100.0, 0.0], [80.0, 20.0, 0.0]); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_mohr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `elements` [INFO] [stdout] --> src/sort.rs:253:30 [INFO] [stdout] | [INFO] [stdout] 253 | fn quick_sort(&mut self, elements: &mut Vec) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_elements` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `X_TILE_COUNT` is never used [INFO] [stdout] --> src/config.rs:1:18 [INFO] [stdout] | [INFO] [stdout] 1 | pub(crate) const X_TILE_COUNT: u32 = 16; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `duration` [INFO] [stdout] --> src/audio.rs:4:34 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn play_tone(frequency: f32, duration: Duration) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_duration` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `Y_TILE_COUNT` is never used [INFO] [stdout] --> src/config.rs:2:18 [INFO] [stdout] | [INFO] [stdout] 2 | pub(crate) const Y_TILE_COUNT: u32 = 16; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TILE_SIZE` is never used [INFO] [stdout] --> src/config.rs:3:18 [INFO] [stdout] | [INFO] [stdout] 3 | pub(crate) const TILE_SIZE: u32 = 32; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BORDER_SIZE` is never used [INFO] [stdout] --> src/config.rs:4:18 [INFO] [stdout] | [INFO] [stdout] 4 | pub(crate) const BORDER_SIZE: u32 = 16; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TICKS_PER_SECOND` is never used [INFO] [stdout] --> src/config.rs:11:18 [INFO] [stdout] | [INFO] [stdout] 11 | pub(crate) const TICKS_PER_SECOND: u32 = 20; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PLAY_AUDIO` is never used [INFO] [stdout] --> src/config.rs:13:18 [INFO] [stdout] | [INFO] [stdout] 13 | pub(crate) const PLAY_AUDIO: bool = false; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BLACK` is never used [INFO] [stdout] --> src/colors.rs:2:18 [INFO] [stdout] | [INFO] [stdout] 2 | pub(crate) const BLACK: sdl2::pixels::Color = sdl2::pixels::Color::RGB(0, 0, 0); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DARK_YELLOW` is never used [INFO] [stdout] --> src/colors.rs:7:18 [INFO] [stdout] | [INFO] [stdout] 7 | pub(crate) const DARK_YELLOW: sdl2::pixels::Color = sdl2::pixels::Color::RGB(160, 160, 0); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CYAN` is never used [INFO] [stdout] --> src/colors.rs:8:18 [INFO] [stdout] | [INFO] [stdout] 8 | pub(crate) const CYAN: sdl2::pixels::Color = sdl2::pixels::Color::RGB(0, 255, 255); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAGENTA` is never used [INFO] [stdout] --> src/colors.rs:9:18 [INFO] [stdout] | [INFO] [stdout] 9 | pub(crate) const MAGENTA: sdl2::pixels::Color = sdl2::pixels::Color::RGB(255, 0, 255); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DARK_GRAY` is never used [INFO] [stdout] --> src/colors.rs:11:18 [INFO] [stdout] | [INFO] [stdout] 11 | pub(crate) const DARK_GRAY: sdl2::pixels::Color = sdl2::pixels::Color::RGB(64, 64, 64); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ORANGE` is never used [INFO] [stdout] --> src/colors.rs:14:18 [INFO] [stdout] | [INFO] [stdout] 14 | pub(crate) const ORANGE: sdl2::pixels::Color = sdl2::pixels::Color::RGB(255, 165, 0); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PURPLE` is never used [INFO] [stdout] --> src/colors.rs:15:18 [INFO] [stdout] | [INFO] [stdout] 15 | pub(crate) const PURPLE: sdl2::pixels::Color = sdl2::pixels::Color::RGB(128, 0, 128); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BROWN` is never used [INFO] [stdout] --> src/colors.rs:16:18 [INFO] [stdout] | [INFO] [stdout] 16 | pub(crate) const BROWN: sdl2::pixels::Color = sdl2::pixels::Color::RGB(165, 42, 42); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `OLIVE` is never used [INFO] [stdout] --> src/colors.rs:17:18 [INFO] [stdout] | [INFO] [stdout] 17 | pub(crate) const OLIVE: sdl2::pixels::Color = sdl2::pixels::Color::RGB(128, 128, 0); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TEAL` is never used [INFO] [stdout] --> src/colors.rs:18:18 [INFO] [stdout] | [INFO] [stdout] 18 | pub(crate) const TEAL: sdl2::pixels::Color = sdl2::pixels::Color::RGB(0, 128, 128); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `NAVY` is never used [INFO] [stdout] --> src/colors.rs:19:18 [INFO] [stdout] | [INFO] [stdout] 19 | pub(crate) const NAVY: sdl2::pixels::Color = sdl2::pixels::Color::RGB(0, 0, 128); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAROON` is never used [INFO] [stdout] --> src/colors.rs:20:18 [INFO] [stdout] | [INFO] [stdout] 20 | pub(crate) const MAROON: sdl2::pixels::Color = sdl2::pixels::Color::RGB(128, 0, 0); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `FOREST_GREEN` is never used [INFO] [stdout] --> src/colors.rs:21:18 [INFO] [stdout] | [INFO] [stdout] 21 | pub(crate) const FOREST_GREEN: sdl2::pixels::Color = sdl2::pixels::Color::RGB(34, 139, 34); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MIDNIGHT_BLUE` is never used [INFO] [stdout] --> src/colors.rs:22:18 [INFO] [stdout] | [INFO] [stdout] 22 | pub(crate) const MIDNIGHT_BLUE: sdl2::pixels::Color = sdl2::pixels::Color::RGB(25, 25, 112); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `INDIGO` is never used [INFO] [stdout] --> src/colors.rs:23:18 [INFO] [stdout] | [INFO] [stdout] 23 | pub(crate) const INDIGO: sdl2::pixels::Color = sdl2::pixels::Color::RGB(75, 0, 130); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `LIME` is never used [INFO] [stdout] --> src/colors.rs:24:18 [INFO] [stdout] | [INFO] [stdout] 24 | pub(crate) const LIME: sdl2::pixels::Color = sdl2::pixels::Color::RGB(191, 255, 0); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/function.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl UnaryFunction { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] 14 | pub fn new(function: Box f32>, color: Color) -> UnaryFunction { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `add` are never used [INFO] [stdout] --> src/scatter.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl Scatter2D { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 11 | pub fn new(objects: Vec, color: sdl2::pixels::Color) -> Scatter2D { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 15 | pub fn add(&mut self, object: CartesianCoordinate2D) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Pixel` is never constructed [INFO] [stdout] --> src/cursor.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 52 | pub enum ReadoutType { [INFO] [stdout] | ----------- variant in this enum [INFO] [stdout] 53 | Cartesian, [INFO] [stdout] 54 | Pixel [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ELEMENT_MAX` is never used [INFO] [stdout] --> src/sort.rs:11:7 [INFO] [stdout] | [INFO] [stdout] 11 | const ELEMENT_MAX: u32 = 512; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `AUDIO_SORT_LOOP` is never used [INFO] [stdout] --> src/sort.rs:12:7 [INFO] [stdout] | [INFO] [stdout] 12 | const AUDIO_SORT_LOOP: bool = true; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `gap` and `auto_sort` are never read [INFO] [stdout] --> src/sort.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct SortingVisualization { [INFO] [stdout] | -------------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 19 | gap: usize, [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | pub(crate) auto_sort: bool [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `DrawableSortingVisualization` is never used [INFO] [stdout] --> src/sort.rs:28:11 [INFO] [stdout] | [INFO] [stdout] 28 | pub trait DrawableSortingVisualization { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Shell`, `Merge`, and `Quick` are never constructed [INFO] [stdout] --> src/sort.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 33 | pub enum SortType { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 34 | Insertion, [INFO] [stdout] 35 | Shell, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 36 | Merge, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 37 | Quick [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SortType` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/sort.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 40 | impl SortingVisualization { [INFO] [stdout] | ------------------------- associated items in this implementation [INFO] [stdout] 41 | pub fn new(sort_type: SortType) -> SortingVisualization { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | pub fn shuffle(&mut self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 73 | pub fn step(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 85 | fn set_sorted(&mut self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 100 | fn stepable_insertion_sort(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 145 | fn insertion_sort(&mut self, elements: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 157 | fn stepable_shell_sort(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 196 | fn shell_sort(&mut self, elements: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 212 | fn stepable_merge_sort(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 216 | fn merge_sort(&mut self, elements: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 249 | fn stepable_quick_sort(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 253 | fn quick_sort(&mut self, elements: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `play_tone` is never used [INFO] [stdout] --> src/audio.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn play_tone(frequency: f32, duration: Duration) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `center`, `radius`, `normal_stress`, `shear_stress`, and `circles` are never read [INFO] [stdout] --> src/mohr.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct MohrsCircle { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 8 | pub center: CartesianCoordinate2D, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 9 | pub radius: [f32; 3], [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 10 | pub normal_stress: [f32; 3], [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 11 | pub shear_stress: [f32; 3], [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 12 | pub axis: Axis2D, [INFO] [stdout] 13 | circles: [Circle; 3] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `fill_random` and `get_vertex` are never used [INFO] [stdout] --> src/graph.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl Graph { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn fill_random(&mut self, node_count: i32) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | fn get_vertex(&self, value: i32) -> Option<&Vertex> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 53 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mohr` [INFO] [stdout] --> src/main.rs:58:9 [INFO] [stdout] | [INFO] [stdout] 58 | let mohr = mohr::MohrsCircle::new([200.0, 100.0, 0.0], [80.0, 20.0, 0.0]); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_mohr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `X_TILE_COUNT` is never used [INFO] [stdout] --> src/config.rs:1:18 [INFO] [stdout] | [INFO] [stdout] 1 | pub(crate) const X_TILE_COUNT: u32 = 16; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `Y_TILE_COUNT` is never used [INFO] [stdout] --> src/config.rs:2:18 [INFO] [stdout] | [INFO] [stdout] 2 | pub(crate) const Y_TILE_COUNT: u32 = 16; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TILE_SIZE` is never used [INFO] [stdout] --> src/config.rs:3:18 [INFO] [stdout] | [INFO] [stdout] 3 | pub(crate) const TILE_SIZE: u32 = 32; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BORDER_SIZE` is never used [INFO] [stdout] --> src/config.rs:4:18 [INFO] [stdout] | [INFO] [stdout] 4 | pub(crate) const BORDER_SIZE: u32 = 16; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TICKS_PER_SECOND` is never used [INFO] [stdout] --> src/config.rs:11:18 [INFO] [stdout] | [INFO] [stdout] 11 | pub(crate) const TICKS_PER_SECOND: u32 = 20; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PLAY_AUDIO` is never used [INFO] [stdout] --> src/config.rs:13:18 [INFO] [stdout] | [INFO] [stdout] 13 | pub(crate) const PLAY_AUDIO: bool = false; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BLACK` is never used [INFO] [stdout] --> src/colors.rs:2:18 [INFO] [stdout] | [INFO] [stdout] 2 | pub(crate) const BLACK: sdl2::pixels::Color = sdl2::pixels::Color::RGB(0, 0, 0); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DARK_YELLOW` is never used [INFO] [stdout] --> src/colors.rs:7:18 [INFO] [stdout] | [INFO] [stdout] 7 | pub(crate) const DARK_YELLOW: sdl2::pixels::Color = sdl2::pixels::Color::RGB(160, 160, 0); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CYAN` is never used [INFO] [stdout] --> src/colors.rs:8:18 [INFO] [stdout] | [INFO] [stdout] 8 | pub(crate) const CYAN: sdl2::pixels::Color = sdl2::pixels::Color::RGB(0, 255, 255); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAGENTA` is never used [INFO] [stdout] --> src/colors.rs:9:18 [INFO] [stdout] | [INFO] [stdout] 9 | pub(crate) const MAGENTA: sdl2::pixels::Color = sdl2::pixels::Color::RGB(255, 0, 255); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DARK_GRAY` is never used [INFO] [stdout] --> src/colors.rs:11:18 [INFO] [stdout] | [INFO] [stdout] 11 | pub(crate) const DARK_GRAY: sdl2::pixels::Color = sdl2::pixels::Color::RGB(64, 64, 64); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ORANGE` is never used [INFO] [stdout] --> src/colors.rs:14:18 [INFO] [stdout] | [INFO] [stdout] 14 | pub(crate) const ORANGE: sdl2::pixels::Color = sdl2::pixels::Color::RGB(255, 165, 0); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PURPLE` is never used [INFO] [stdout] --> src/colors.rs:15:18 [INFO] [stdout] | [INFO] [stdout] 15 | pub(crate) const PURPLE: sdl2::pixels::Color = sdl2::pixels::Color::RGB(128, 0, 128); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BROWN` is never used [INFO] [stdout] --> src/colors.rs:16:18 [INFO] [stdout] | [INFO] [stdout] 16 | pub(crate) const BROWN: sdl2::pixels::Color = sdl2::pixels::Color::RGB(165, 42, 42); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `OLIVE` is never used [INFO] [stdout] --> src/colors.rs:17:18 [INFO] [stdout] | [INFO] [stdout] 17 | pub(crate) const OLIVE: sdl2::pixels::Color = sdl2::pixels::Color::RGB(128, 128, 0); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TEAL` is never used [INFO] [stdout] --> src/colors.rs:18:18 [INFO] [stdout] | [INFO] [stdout] 18 | pub(crate) const TEAL: sdl2::pixels::Color = sdl2::pixels::Color::RGB(0, 128, 128); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `NAVY` is never used [INFO] [stdout] --> src/colors.rs:19:18 [INFO] [stdout] | [INFO] [stdout] 19 | pub(crate) const NAVY: sdl2::pixels::Color = sdl2::pixels::Color::RGB(0, 0, 128); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAROON` is never used [INFO] [stdout] --> src/colors.rs:20:18 [INFO] [stdout] | [INFO] [stdout] 20 | pub(crate) const MAROON: sdl2::pixels::Color = sdl2::pixels::Color::RGB(128, 0, 0); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `FOREST_GREEN` is never used [INFO] [stdout] --> src/colors.rs:21:18 [INFO] [stdout] | [INFO] [stdout] 21 | pub(crate) const FOREST_GREEN: sdl2::pixels::Color = sdl2::pixels::Color::RGB(34, 139, 34); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MIDNIGHT_BLUE` is never used [INFO] [stdout] --> src/colors.rs:22:18 [INFO] [stdout] | [INFO] [stdout] 22 | pub(crate) const MIDNIGHT_BLUE: sdl2::pixels::Color = sdl2::pixels::Color::RGB(25, 25, 112); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `INDIGO` is never used [INFO] [stdout] --> src/colors.rs:23:18 [INFO] [stdout] | [INFO] [stdout] 23 | pub(crate) const INDIGO: sdl2::pixels::Color = sdl2::pixels::Color::RGB(75, 0, 130); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `LIME` is never used [INFO] [stdout] --> src/colors.rs:24:18 [INFO] [stdout] | [INFO] [stdout] 24 | pub(crate) const LIME: sdl2::pixels::Color = sdl2::pixels::Color::RGB(191, 255, 0); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/function.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl UnaryFunction { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] 14 | pub fn new(function: Box f32>, color: Color) -> UnaryFunction { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `add` are never used [INFO] [stdout] --> src/scatter.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl Scatter2D { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 11 | pub fn new(objects: Vec, color: sdl2::pixels::Color) -> Scatter2D { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 15 | pub fn add(&mut self, object: CartesianCoordinate2D) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Pixel` is never constructed [INFO] [stdout] --> src/cursor.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 52 | pub enum ReadoutType { [INFO] [stdout] | ----------- variant in this enum [INFO] [stdout] 53 | Cartesian, [INFO] [stdout] 54 | Pixel [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ELEMENT_MAX` is never used [INFO] [stdout] --> src/sort.rs:11:7 [INFO] [stdout] | [INFO] [stdout] 11 | const ELEMENT_MAX: u32 = 512; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `AUDIO_SORT_LOOP` is never used [INFO] [stdout] --> src/sort.rs:12:7 [INFO] [stdout] | [INFO] [stdout] 12 | const AUDIO_SORT_LOOP: bool = true; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `gap` and `auto_sort` are never read [INFO] [stdout] --> src/sort.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct SortingVisualization { [INFO] [stdout] | -------------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 19 | gap: usize, [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | pub(crate) auto_sort: bool [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `DrawableSortingVisualization` is never used [INFO] [stdout] --> src/sort.rs:28:11 [INFO] [stdout] | [INFO] [stdout] 28 | pub trait DrawableSortingVisualization { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Shell`, `Merge`, and `Quick` are never constructed [INFO] [stdout] --> src/sort.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 33 | pub enum SortType { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 34 | Insertion, [INFO] [stdout] 35 | Shell, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 36 | Merge, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 37 | Quick [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SortType` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/sort.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 40 | impl SortingVisualization { [INFO] [stdout] | ------------------------- associated items in this implementation [INFO] [stdout] 41 | pub fn new(sort_type: SortType) -> SortingVisualization { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | pub fn shuffle(&mut self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 73 | pub fn step(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 85 | fn set_sorted(&mut self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 100 | fn stepable_insertion_sort(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 145 | fn insertion_sort(&mut self, elements: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 157 | fn stepable_shell_sort(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 196 | fn shell_sort(&mut self, elements: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 212 | fn stepable_merge_sort(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 216 | fn merge_sort(&mut self, elements: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 249 | fn stepable_quick_sort(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 253 | fn quick_sort(&mut self, elements: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `play_tone` is never used [INFO] [stdout] --> src/audio.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn play_tone(frequency: f32, duration: Duration) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `center`, `radius`, `normal_stress`, `shear_stress`, and `circles` are never read [INFO] [stdout] --> src/mohr.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct MohrsCircle { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 8 | pub center: CartesianCoordinate2D, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 9 | pub radius: [f32; 3], [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 10 | pub normal_stress: [f32; 3], [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 11 | pub shear_stress: [f32; 3], [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 12 | pub axis: Axis2D, [INFO] [stdout] 13 | circles: [Circle; 3] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `fill_random` and `get_vertex` are never used [INFO] [stdout] --> src/graph.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl Graph { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn fill_random(&mut self, node_count: i32) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | fn get_vertex(&self, value: i32) -> Option<&Vertex> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 53 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 20.15s [INFO] running `Command { std: "docker" "inspect" "be45d0ec726ecabcae41785e7e17c5f885edbd61e9784767b34c8d13da0cdb00", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "be45d0ec726ecabcae41785e7e17c5f885edbd61e9784767b34c8d13da0cdb00", kill_on_drop: false }` [INFO] [stdout] be45d0ec726ecabcae41785e7e17c5f885edbd61e9784767b34c8d13da0cdb00