[INFO] cloning repository https://github.com/ThePJB/wavbook [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ThePJB/wavbook" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FThePJB%2Fwavbook", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FThePJB%2Fwavbook'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] bb19d5bb74b5961cdf3c77d161123ef77f30f5e0 [INFO] checking ThePJB/wavbook against master#af4a5a13a15fa0c60e06321077ef452f769b42fd for pr-122960-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FThePJB%2Fwavbook" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ThePJB/wavbook on toolchain af4a5a13a15fa0c60e06321077ef452f769b42fd [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ThePJB/wavbook [INFO] finished tweaking git repo https://github.com/ThePJB/wavbook [INFO] tweaked toml for git repo https://github.com/ThePJB/wavbook written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/ThePJB/wavbook 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" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 31c983dded1d4d693b453ebb2c964cf7dff6b1390ea233f6032f426528f58890 [INFO] running `Command { std: "docker" "start" "-a" "31c983dded1d4d693b453ebb2c964cf7dff6b1390ea233f6032f426528f58890", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "31c983dded1d4d693b453ebb2c964cf7dff6b1390ea233f6032f426528f58890", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "31c983dded1d4d693b453ebb2c964cf7dff6b1390ea233f6032f426528f58890", kill_on_drop: false }` [INFO] [stdout] 31c983dded1d4d693b453ebb2c964cf7dff6b1390ea233f6032f426528f58890 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 238e7f1fd342d7d6313c7aee361a1f89f7661ca81d186f0010641e2fae87909b [INFO] running `Command { std: "docker" "start" "-a" "238e7f1fd342d7d6313c7aee361a1f89f7661ca81d186f0010641e2fae87909b", kill_on_drop: false }` [INFO] [stderr] Checking byteorder v0.5.3 [INFO] [stderr] Checking riff-wave v0.1.3 [INFO] [stderr] Checking wavbook v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: the item `PI` is imported redundantly [INFO] [stdout] --> src/random.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::f32::consts::PI; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 2 | use crate::vector::*; [INFO] [stdout] | ---------------- the item `PI` is already imported here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::f32::consts::PI` [INFO] [stdout] --> src/vector.rs:1:9 [INFO] [stdout] | [INFO] [stdout] 1 | pub use std::f32::consts::PI; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `random::*` [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use random::*; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::f32::consts::PI` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::f32::consts::PI; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `WaveReader`, `WriteResult` [INFO] [stdout] --> src/main.rs:12:29 [INFO] [stdout] | [INFO] [stdout] 12 | use riff_wave::{WaveWriter, WriteResult, WaveReader}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Read` [INFO] [stdout] --> src/main.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use std::io::Read; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `PI` is imported redundantly [INFO] [stdout] --> src/random.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::f32::consts::PI; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 2 | use crate::vector::*; [INFO] [stdout] | ---------------- the item `PI` is already imported here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `random::*` [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use random::*; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `WaveReader` [INFO] [stdout] --> src/main.rs:12:42 [INFO] [stdout] | [INFO] [stdout] 12 | use riff_wave::{WaveWriter, WriteResult, WaveReader}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Read` [INFO] [stdout] --> src/main.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use std::io::Read; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SAMPLE_RATE` is never used [INFO] [stdout] --> src/main.rs:26:7 [INFO] [stdout] | [INFO] [stdout] 26 | const SAMPLE_RATE: u32 = 44100; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `repeating_impulse` is never used [INFO] [stdout] --> src/main.rs:253:4 [INFO] [stdout] | [INFO] [stdout] 253 | fn repeating_impulse(n: i32, N: i32) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `impulse_decay_linear` is never used [INFO] [stdout] --> src/main.rs:261:4 [INFO] [stdout] | [INFO] [stdout] 261 | fn impulse_decay_linear(n: i32, N: i32, d: f32) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `impulse_decay` is never used [INFO] [stdout] --> src/main.rs:269:4 [INFO] [stdout] | [INFO] [stdout] 269 | fn impulse_decay(n: i32, N: i32, d: f32) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sample_vec_i32` is never used [INFO] [stdout] --> src/main.rs:277:4 [INFO] [stdout] | [INFO] [stdout] 277 | fn sample_vec_i32(vec: &Vec, n: i32) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sin_exciter` is never used [INFO] [stdout] --> src/main.rs:284:4 [INFO] [stdout] | [INFO] [stdout] 284 | fn sin_exciter(n: i32, omega: f32) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `white_noise` is never used [INFO] [stdout] --> src/main.rs:290:4 [INFO] [stdout] | [INFO] [stdout] 290 | fn white_noise(n: i32) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part_cycle` is never used [INFO] [stdout] --> src/main.rs:294:4 [INFO] [stdout] | [INFO] [stdout] 294 | fn part_cycle(f: F, full: i32, part: i32, n: i32) -> f32 [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `make_samples_feedback` is never used [INFO] [stdout] --> src/main.rs:359:4 [INFO] [stdout] | [INFO] [stdout] 359 | fn make_samples_feedback(f: F, N: i32, a: f32, d: i32) -> Vec [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `make_samples` is never used [INFO] [stdout] --> src/main.rs:370:4 [INFO] [stdout] | [INFO] [stdout] 370 | fn make_samples(f: F, N: i32) -> Vec [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `write_wav` is never used [INFO] [stdout] --> src/main.rs:377:4 [INFO] [stdout] | [INFO] [stdout] 377 | fn write_wav(outfile: &str, samples: Vec) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hash` is never used [INFO] [stdout] --> src/random.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn hash(mut state: u32) -> u32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `rand` is never used [INFO] [stdout] --> src/random.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn rand(seed: u32) -> f32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `lerp` is never used [INFO] [stdout] --> src/random.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn lerp(x: f32, y: f32, t: f32) -> f32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fade` is never used [INFO] [stdout] --> src/random.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn fade(t: f32) -> f32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `noise_grad` is never used [INFO] [stdout] --> src/random.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn noise_grad(p: Vec2, seed: u32) -> f32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Vec4` is never constructed [INFO] [stdout] --> src/vector.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct Vec4 { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Vec4` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `vec4` is never used [INFO] [stdout] --> src/vector.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn vec4(x: f32, y: f32, z: f32, w: f32) -> Vec4 { Vec4 { x, y, z, w } } [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/vector.rs:224:12 [INFO] [stdout] | [INFO] [stdout] 223 | impl Vec4 { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] 224 | pub fn dot(&self, other: Vec4) -> f32 { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 227 | pub fn tl(&self) -> Vec2 {vec2(self.x, self.y)} [INFO] [stdout] | ^^ [INFO] [stdout] 228 | pub fn br(&self) -> Vec2 {vec2(self.x + self.z, self.y + self.w)} [INFO] [stdout] | ^^ [INFO] [stdout] 229 | pub fn tr(&self) -> Vec2 {vec2(self.x + self.z, self.y)} [INFO] [stdout] | ^^ [INFO] [stdout] 230 | pub fn bl(&self) -> Vec2 {vec2(self.x, self.y + self.w)} [INFO] [stdout] | ^^ [INFO] [stdout] 231 | pub fn grid_child(&self, i: usize, j: usize, w: usize, h: usize) -> Vec4 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 236 | pub fn hsv_to_rgb(&self) -> Vec4 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 254 | fn contains(&self, p: Vec2) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 257 | fn point_within(&self, p: Vec2) -> Vec2 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 260 | fn point_without(&self, p: Vec2) -> Vec2 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 263 | fn fit_aspect(&self, a: f32) -> Vec4 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `N` should have a snake case name [INFO] [stdout] --> src/main.rs:253:30 [INFO] [stdout] | [INFO] [stdout] 253 | fn repeating_impulse(n: i32, N: i32) -> f32 { [INFO] [stdout] | ^ help: convert the identifier to snake case: `n` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `N` should have a snake case name [INFO] [stdout] --> src/main.rs:261:33 [INFO] [stdout] | [INFO] [stdout] 261 | fn impulse_decay_linear(n: i32, N: i32, d: f32) -> f32 { [INFO] [stdout] | ^ help: convert the identifier to snake case: `n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `N` should have a snake case name [INFO] [stdout] --> src/main.rs:269:26 [INFO] [stdout] | [INFO] [stdout] 269 | fn impulse_decay(n: i32, N: i32, d: f32) -> f32 { [INFO] [stdout] | ^ help: convert the identifier to snake case: `n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `N` should have a snake case name [INFO] [stdout] --> src/main.rs:359:35 [INFO] [stdout] | [INFO] [stdout] 359 | fn make_samples_feedback(f: F, N: i32, a: f32, d: i32) -> Vec [INFO] [stdout] | ^ help: convert the identifier to snake case: `n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `N` should have a snake case name [INFO] [stdout] --> src/main.rs:370:26 [INFO] [stdout] | [INFO] [stdout] 370 | fn make_samples(f: F, N: i32) -> Vec [INFO] [stdout] | ^ help: convert the identifier to snake case: `n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `rotate_about_Vec3` should have a snake case name [INFO] [stdout] --> src/vector.rs:130:12 [INFO] [stdout] | [INFO] [stdout] 130 | pub fn rotate_about_Vec3(&self, axis: Vec3, theta: f32) -> Vec3 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `rotate_about_vec3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 31 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `beat_num` [INFO] [stdout] --> src/main.rs:69:13 [INFO] [stdout] | [INFO] [stdout] 69 | let beat_num = N / samples_per_beat; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_beat_num` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bar_num` [INFO] [stdout] --> src/main.rs:70:13 [INFO] [stdout] | [INFO] [stdout] 70 | let bar_num = N / samples_per_bar; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bar_num` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n_sub` [INFO] [stdout] --> src/main.rs:79:13 [INFO] [stdout] | [INFO] [stdout] 79 | let n_sub = n_beat % (samples_per_sub); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_n_sub` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:60:9 [INFO] [stdout] | [INFO] [stdout] 60 | let mut magnitude = 0.1; [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/main.rs:126:9 [INFO] [stdout] | [INFO] [stdout] 126 | let mut magnitude = 0.1; [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:189:9 [INFO] [stdout] | [INFO] [stdout] 189 | let mut magnitude = 0.1; [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/main.rs:228:6 [INFO] [stdout] | [INFO] [stdout] 228 | for n in 0..SAMPLE_RATE*4 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:224:9 [INFO] [stdout] | [INFO] [stdout] 224 | let mut magnitude = 0.1; [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `FREQUENCY` is never used [INFO] [stdout] --> src/main.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 35 | const FREQUENCY: f32 = 2.0 * PI * 50.0; // radian per second [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `FREQUENCY` is never used [INFO] [stdout] --> src/main.rs:118:8 [INFO] [stdout] | [INFO] [stdout] 118 | const FREQUENCY: f32 = 2.0 * PI * 50.0; // radian per second [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `FREQUENCY` is never used [INFO] [stdout] --> src/main.rs:181:8 [INFO] [stdout] | [INFO] [stdout] 181 | const FREQUENCY: f32 = 2.0 * PI * 50.0; // radian per second [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `FREQUENCY` is never used [INFO] [stdout] --> src/main.rs:216:8 [INFO] [stdout] | [INFO] [stdout] 216 | const FREQUENCY: f32 = 2.0 * PI * 50.0; // radian per second [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `repeating_impulse` is never used [INFO] [stdout] --> src/main.rs:253:4 [INFO] [stdout] | [INFO] [stdout] 253 | fn repeating_impulse(n: i32, N: i32) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `impulse_decay_linear` is never used [INFO] [stdout] --> src/main.rs:261:4 [INFO] [stdout] | [INFO] [stdout] 261 | fn impulse_decay_linear(n: i32, N: i32, d: f32) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hash` is never used [INFO] [stdout] --> src/random.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn hash(mut state: u32) -> u32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `rand` is never used [INFO] [stdout] --> src/random.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn rand(seed: u32) -> f32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `lerp` is never used [INFO] [stdout] --> src/random.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn lerp(x: f32, y: f32, t: f32) -> f32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fade` is never used [INFO] [stdout] --> src/random.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn fade(t: f32) -> f32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `noise_grad` is never used [INFO] [stdout] --> src/random.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn noise_grad(p: Vec2, seed: u32) -> f32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Vec4` is never constructed [INFO] [stdout] --> src/vector.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct Vec4 { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Vec4` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `vec4` is never used [INFO] [stdout] --> src/vector.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn vec4(x: f32, y: f32, z: f32, w: f32) -> Vec4 { Vec4 { x, y, z, w } } [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/vector.rs:224:12 [INFO] [stdout] | [INFO] [stdout] 223 | impl Vec4 { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] 224 | pub fn dot(&self, other: Vec4) -> f32 { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 227 | pub fn tl(&self) -> Vec2 {vec2(self.x, self.y)} [INFO] [stdout] | ^^ [INFO] [stdout] 228 | pub fn br(&self) -> Vec2 {vec2(self.x + self.z, self.y + self.w)} [INFO] [stdout] | ^^ [INFO] [stdout] 229 | pub fn tr(&self) -> Vec2 {vec2(self.x + self.z, self.y)} [INFO] [stdout] | ^^ [INFO] [stdout] 230 | pub fn bl(&self) -> Vec2 {vec2(self.x, self.y + self.w)} [INFO] [stdout] | ^^ [INFO] [stdout] 231 | pub fn grid_child(&self, i: usize, j: usize, w: usize, h: usize) -> Vec4 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 236 | pub fn hsv_to_rgb(&self) -> Vec4 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 254 | fn contains(&self, p: Vec2) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 257 | fn point_within(&self, p: Vec2) -> Vec2 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 260 | fn point_without(&self, p: Vec2) -> Vec2 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 263 | fn fit_aspect(&self, a: f32) -> Vec4 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `N` should have a snake case name [INFO] [stdout] --> src/main.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 49 | let N = (length * SAMPLE_RATE as f64).round() as u64; [INFO] [stdout] | ^ help: convert the identifier to snake case: `n` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `N` should have a snake case name [INFO] [stdout] --> src/main.rs:253:30 [INFO] [stdout] | [INFO] [stdout] 253 | fn repeating_impulse(n: i32, N: i32) -> f32 { [INFO] [stdout] | ^ help: convert the identifier to snake case: `n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `N` should have a snake case name [INFO] [stdout] --> src/main.rs:261:33 [INFO] [stdout] | [INFO] [stdout] 261 | fn impulse_decay_linear(n: i32, N: i32, d: f32) -> f32 { [INFO] [stdout] | ^ help: convert the identifier to snake case: `n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `N` should have a snake case name [INFO] [stdout] --> src/main.rs:269:26 [INFO] [stdout] | [INFO] [stdout] 269 | fn impulse_decay(n: i32, N: i32, d: f32) -> f32 { [INFO] [stdout] | ^ help: convert the identifier to snake case: `n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `N` should have a snake case name [INFO] [stdout] --> src/main.rs:359:35 [INFO] [stdout] | [INFO] [stdout] 359 | fn make_samples_feedback(f: F, N: i32, a: f32, d: i32) -> Vec [INFO] [stdout] | ^ help: convert the identifier to snake case: `n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `N` should have a snake case name [INFO] [stdout] --> src/main.rs:370:26 [INFO] [stdout] | [INFO] [stdout] 370 | fn make_samples(f: F, N: i32) -> Vec [INFO] [stdout] | ^ help: convert the identifier to snake case: `n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `rotate_about_Vec3` should have a snake case name [INFO] [stdout] --> src/vector.rs:130:12 [INFO] [stdout] | [INFO] [stdout] 130 | pub fn rotate_about_Vec3(&self, axis: Vec3, theta: f32) -> Vec3 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `rotate_about_vec3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 33 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.20s [INFO] running `Command { std: "docker" "inspect" "238e7f1fd342d7d6313c7aee361a1f89f7661ca81d186f0010641e2fae87909b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "238e7f1fd342d7d6313c7aee361a1f89f7661ca81d186f0010641e2fae87909b", kill_on_drop: false }` [INFO] [stdout] 238e7f1fd342d7d6313c7aee361a1f89f7661ca81d186f0010641e2fae87909b [INFO] checking ThePJB/wavbook against try#36dbcaee1a55543dfc181be52a69d99ff46ff62f for pr-122960-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FThePJB%2Fwavbook" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ThePJB/wavbook on toolchain 36dbcaee1a55543dfc181be52a69d99ff46ff62f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ThePJB/wavbook [INFO] finished tweaking git repo https://github.com/ThePJB/wavbook [INFO] tweaked toml for git repo https://github.com/ThePJB/wavbook written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/ThePJB/wavbook 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" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 96a76178f1fdc91aee7a641844d53eb0778392a06788aefd69a75b310357b8dc [INFO] running `Command { std: "docker" "start" "-a" "96a76178f1fdc91aee7a641844d53eb0778392a06788aefd69a75b310357b8dc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "96a76178f1fdc91aee7a641844d53eb0778392a06788aefd69a75b310357b8dc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "96a76178f1fdc91aee7a641844d53eb0778392a06788aefd69a75b310357b8dc", kill_on_drop: false }` [INFO] [stdout] 96a76178f1fdc91aee7a641844d53eb0778392a06788aefd69a75b310357b8dc [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ac533713c4974cdadf89d3a95507c59313936343a49dc6a869444b043497cf0a [INFO] running `Command { std: "docker" "start" "-a" "ac533713c4974cdadf89d3a95507c59313936343a49dc6a869444b043497cf0a", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Checking byteorder v0.5.3 [INFO] [stderr] Checking riff-wave v0.1.3 [INFO] [stderr] Checking wavbook v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2021 edition to 2024 [INFO] [stderr] Fixed src/main.rs (7 fixes) [INFO] [stdout] warning: the item `PI` is imported redundantly [INFO] [stdout] --> src/random.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::f32::consts::PI; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 2 | use crate::vector::*; [INFO] [stdout] | ---------------- the item `PI` is already imported here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `beat_num` [INFO] [stdout] --> src/main.rs:67:13 [INFO] [stdout] | [INFO] [stdout] 67 | let beat_num = N / samples_per_beat; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_beat_num` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bar_num` [INFO] [stdout] --> src/main.rs:68:13 [INFO] [stdout] | [INFO] [stdout] 68 | let bar_num = N / samples_per_bar; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bar_num` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n_sub` [INFO] [stdout] --> src/main.rs:77:13 [INFO] [stdout] | [INFO] [stdout] 77 | let n_sub = n_beat % (samples_per_sub); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_n_sub` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/main.rs:226:6 [INFO] [stdout] | [INFO] [stdout] 226 | for n in 0..SAMPLE_RATE*4 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `FREQUENCY` is never used [INFO] [stdout] --> src/main.rs:33:8 [INFO] [stdout] | [INFO] [stdout] 33 | const FREQUENCY: f32 = 2.0 * PI * 50.0; // radian per second [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `FREQUENCY` is never used [INFO] [stdout] --> src/main.rs:116:8 [INFO] [stdout] | [INFO] [stdout] 116 | const FREQUENCY: f32 = 2.0 * PI * 50.0; // radian per second [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `FREQUENCY` is never used [INFO] [stdout] --> src/main.rs:179:8 [INFO] [stdout] | [INFO] [stdout] 179 | const FREQUENCY: f32 = 2.0 * PI * 50.0; // radian per second [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `FREQUENCY` is never used [INFO] [stdout] --> src/main.rs:214:8 [INFO] [stdout] | [INFO] [stdout] 214 | const FREQUENCY: f32 = 2.0 * PI * 50.0; // radian per second [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `repeating_impulse` is never used [INFO] [stdout] --> src/main.rs:251:4 [INFO] [stdout] | [INFO] [stdout] 251 | fn repeating_impulse(n: i32, N: i32) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `impulse_decay_linear` is never used [INFO] [stdout] --> src/main.rs:259:4 [INFO] [stdout] | [INFO] [stdout] 259 | fn impulse_decay_linear(n: i32, N: i32, d: f32) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hash` is never used [INFO] [stdout] --> src/random.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn hash(mut state: u32) -> u32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `rand` is never used [INFO] [stdout] --> src/random.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn rand(seed: u32) -> f32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `lerp` is never used [INFO] [stdout] --> src/random.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn lerp(x: f32, y: f32, t: f32) -> f32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fade` is never used [INFO] [stdout] --> src/random.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn fade(t: f32) -> f32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `noise_grad` is never used [INFO] [stdout] --> src/random.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn noise_grad(p: Vec2, seed: u32) -> f32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Vec4` is never constructed [INFO] [stdout] --> src/vector.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct Vec4 { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Vec4` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `vec4` is never used [INFO] [stdout] --> src/vector.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn vec4(x: f32, y: f32, z: f32, w: f32) -> Vec4 { Vec4 { x, y, z, w } } [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/vector.rs:224:12 [INFO] [stdout] | [INFO] [stdout] 223 | impl Vec4 { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] 224 | pub fn dot(&self, other: Vec4) -> f32 { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 227 | pub fn tl(&self) -> Vec2 {vec2(self.x, self.y)} [INFO] [stdout] | ^^ [INFO] [stdout] 228 | pub fn br(&self) -> Vec2 {vec2(self.x + self.z, self.y + self.w)} [INFO] [stdout] | ^^ [INFO] [stdout] 229 | pub fn tr(&self) -> Vec2 {vec2(self.x + self.z, self.y)} [INFO] [stdout] | ^^ [INFO] [stdout] 230 | pub fn bl(&self) -> Vec2 {vec2(self.x, self.y + self.w)} [INFO] [stdout] | ^^ [INFO] [stdout] 231 | pub fn grid_child(&self, i: usize, j: usize, w: usize, h: usize) -> Vec4 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 236 | pub fn hsv_to_rgb(&self) -> Vec4 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 254 | fn contains(&self, p: Vec2) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 257 | fn point_within(&self, p: Vec2) -> Vec2 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 260 | fn point_without(&self, p: Vec2) -> Vec2 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 263 | fn fit_aspect(&self, a: f32) -> Vec4 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `N` should have a snake case name [INFO] [stdout] --> src/main.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 47 | let N = (length * SAMPLE_RATE as f64).round() as u64; [INFO] [stdout] | ^ help: convert the identifier to snake case: `n` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `N` should have a snake case name [INFO] [stdout] --> src/main.rs:251:30 [INFO] [stdout] | [INFO] [stdout] 251 | fn repeating_impulse(n: i32, N: i32) -> f32 { [INFO] [stdout] | ^ help: convert the identifier to snake case: `n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `N` should have a snake case name [INFO] [stdout] --> src/main.rs:259:33 [INFO] [stdout] | [INFO] [stdout] 259 | fn impulse_decay_linear(n: i32, N: i32, d: f32) -> f32 { [INFO] [stdout] | ^ help: convert the identifier to snake case: `n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `N` should have a snake case name [INFO] [stdout] --> src/main.rs:267:26 [INFO] [stdout] | [INFO] [stdout] 267 | fn impulse_decay(n: i32, N: i32, d: f32) -> f32 { [INFO] [stdout] | ^ help: convert the identifier to snake case: `n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `N` should have a snake case name [INFO] [stdout] --> src/main.rs:357:35 [INFO] [stdout] | [INFO] [stdout] 357 | fn make_samples_feedback(f: F, N: i32, a: f32, d: i32) -> Vec [INFO] [stdout] | ^ help: convert the identifier to snake case: `n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `N` should have a snake case name [INFO] [stdout] --> src/main.rs:368:26 [INFO] [stdout] | [INFO] [stdout] 368 | fn make_samples(f: F, N: i32) -> Vec [INFO] [stdout] | ^ help: convert the identifier to snake case: `n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `rotate_about_Vec3` should have a snake case name [INFO] [stdout] --> src/vector.rs:130:12 [INFO] [stdout] | [INFO] [stdout] 130 | pub fn rotate_about_Vec3(&self, axis: Vec3, theta: f32) -> Vec3 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `rotate_about_vec3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 26 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Fixed src/vector.rs (1 fix) [INFO] [stderr] Fixed src/main.rs (2 fixes) [INFO] [stdout] warning: constant `SAMPLE_RATE` is never used [INFO] [stdout] --> src/main.rs:23:7 [INFO] [stdout] | [INFO] [stdout] 23 | const SAMPLE_RATE: u32 = 44100; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `repeating_impulse` is never used [INFO] [stdout] --> src/main.rs:250:4 [INFO] [stdout] | [INFO] [stdout] 250 | fn repeating_impulse(n: i32, N: i32) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `impulse_decay_linear` is never used [INFO] [stdout] --> src/main.rs:258:4 [INFO] [stdout] | [INFO] [stdout] 258 | fn impulse_decay_linear(n: i32, N: i32, d: f32) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `impulse_decay` is never used [INFO] [stdout] --> src/main.rs:266:4 [INFO] [stdout] | [INFO] [stdout] 266 | fn impulse_decay(n: i32, N: i32, d: f32) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sample_vec_i32` is never used [INFO] [stdout] --> src/main.rs:274:4 [INFO] [stdout] | [INFO] [stdout] 274 | fn sample_vec_i32(vec: &Vec, n: i32) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sin_exciter` is never used [INFO] [stdout] --> src/main.rs:281:4 [INFO] [stdout] | [INFO] [stdout] 281 | fn sin_exciter(n: i32, omega: f32) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `white_noise` is never used [INFO] [stdout] --> src/main.rs:287:4 [INFO] [stdout] | [INFO] [stdout] 287 | fn white_noise(n: i32) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part_cycle` is never used [INFO] [stdout] --> src/main.rs:291:4 [INFO] [stdout] | [INFO] [stdout] 291 | fn part_cycle(f: F, full: i32, part: i32, n: i32) -> f32 [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `make_samples_feedback` is never used [INFO] [stdout] --> src/main.rs:356:4 [INFO] [stdout] | [INFO] [stdout] 356 | fn make_samples_feedback(f: F, N: i32, a: f32, d: i32) -> Vec [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `make_samples` is never used [INFO] [stdout] --> src/main.rs:367:4 [INFO] [stdout] | [INFO] [stdout] 367 | fn make_samples(f: F, N: i32) -> Vec [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `write_wav` is never used [INFO] [stdout] --> src/main.rs:374:4 [INFO] [stdout] | [INFO] [stdout] 374 | fn write_wav(outfile: &str, samples: Vec) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hash` is never used [INFO] [stdout] --> src/random.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn hash(mut state: u32) -> u32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `rand` is never used [INFO] [stdout] --> src/random.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn rand(seed: u32) -> f32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `lerp` is never used [INFO] [stdout] --> src/random.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn lerp(x: f32, y: f32, t: f32) -> f32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fade` is never used [INFO] [stdout] --> src/random.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn fade(t: f32) -> f32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `noise_grad` is never used [INFO] [stdout] --> src/random.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn noise_grad(p: Vec2, seed: u32) -> f32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Vec4` is never constructed [INFO] [stdout] --> src/vector.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct Vec4 { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Vec4` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `vec4` is never used [INFO] [stdout] --> src/vector.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn vec4(x: f32, y: f32, z: f32, w: f32) -> Vec4 { Vec4 { x, y, z, w } } [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/vector.rs:223:12 [INFO] [stdout] | [INFO] [stdout] 222 | impl Vec4 { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] 223 | pub fn dot(&self, other: Vec4) -> f32 { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 226 | pub fn tl(&self) -> Vec2 {vec2(self.x, self.y)} [INFO] [stdout] | ^^ [INFO] [stdout] 227 | pub fn br(&self) -> Vec2 {vec2(self.x + self.z, self.y + self.w)} [INFO] [stdout] | ^^ [INFO] [stdout] 228 | pub fn tr(&self) -> Vec2 {vec2(self.x + self.z, self.y)} [INFO] [stdout] | ^^ [INFO] [stdout] 229 | pub fn bl(&self) -> Vec2 {vec2(self.x, self.y + self.w)} [INFO] [stdout] | ^^ [INFO] [stdout] 230 | pub fn grid_child(&self, i: usize, j: usize, w: usize, h: usize) -> Vec4 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 235 | pub fn hsv_to_rgb(&self) -> Vec4 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 253 | fn contains(&self, p: Vec2) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 256 | fn point_within(&self, p: Vec2) -> Vec2 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 259 | fn point_without(&self, p: Vec2) -> Vec2 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 262 | fn fit_aspect(&self, a: f32) -> Vec4 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `N` should have a snake case name [INFO] [stdout] --> src/main.rs:250:30 [INFO] [stdout] | [INFO] [stdout] 250 | fn repeating_impulse(n: i32, N: i32) -> f32 { [INFO] [stdout] | ^ help: convert the identifier to snake case: `n` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `N` should have a snake case name [INFO] [stdout] --> src/main.rs:258:33 [INFO] [stdout] | [INFO] [stdout] 258 | fn impulse_decay_linear(n: i32, N: i32, d: f32) -> f32 { [INFO] [stdout] | ^ help: convert the identifier to snake case: `n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `N` should have a snake case name [INFO] [stdout] --> src/main.rs:266:26 [INFO] [stdout] | [INFO] [stdout] 266 | fn impulse_decay(n: i32, N: i32, d: f32) -> f32 { [INFO] [stdout] | ^ help: convert the identifier to snake case: `n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `N` should have a snake case name [INFO] [stdout] --> src/main.rs:356:35 [INFO] [stdout] | [INFO] [stdout] 356 | fn make_samples_feedback(f: F, N: i32, a: f32, d: i32) -> Vec [INFO] [stdout] | ^ help: convert the identifier to snake case: `n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `N` should have a snake case name [INFO] [stdout] --> src/main.rs:367:26 [INFO] [stdout] | [INFO] [stdout] 367 | fn make_samples(f: F, N: i32) -> Vec [INFO] [stdout] | ^ help: convert the identifier to snake case: `n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `rotate_about_Vec3` should have a snake case name [INFO] [stdout] --> src/vector.rs:129:12 [INFO] [stdout] | [INFO] [stdout] 129 | pub fn rotate_about_Vec3(&self, axis: Vec3, theta: f32) -> Vec3 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `rotate_about_vec3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 25 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.40s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking wavbook v0.1.0 (/tmp/fixit) [INFO] [stdout] error[E0425]: cannot find value `PI` in this scope [INFO] [stdout] --> src/vector.rs:150:64 [INFO] [stdout] | [INFO] [stdout] 150 | ((vec3(1.0, 0.0, 0.0).cartesian_to_spherical() + vec3(0.0, PI, 0.0)).spherical_to_cartesian().assert_approx_equals(vec3(-1.0, 0.0, 0.... [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 + use core::f32::consts::PI; [INFO] [stdout] | [INFO] [stdout] 2 + use core::f64::consts::PI; [INFO] [stdout] | [INFO] [stdout] 2 + use std::f32::consts::PI; [INFO] [stdout] | [INFO] [stdout] 2 + use std::f64::consts::PI; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PI` in this scope [INFO] [stdout] --> src/vector.rs:151:65 [INFO] [stdout] | [INFO] [stdout] 151 | ((vec3(1.0, 0.0, 0.0).cartesian_to_spherical() + vec3(0.0, -PI, 0.0)).spherical_to_cartesian().assert_approx_equals(vec3(-1.0, 0.0, 0... [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 + use core::f32::consts::PI; [INFO] [stdout] | [INFO] [stdout] 2 + use core::f64::consts::PI; [INFO] [stdout] | [INFO] [stdout] 2 + use std::f32::consts::PI; [INFO] [stdout] | [INFO] [stdout] 2 + use std::f64::consts::PI; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PI` in this scope [INFO] [stdout] --> src/vector.rs:152:68 [INFO] [stdout] | [INFO] [stdout] 152 | ((vec3(1.0, 0.0, 0.0).cartesian_to_spherical() + vec3(0.0, 2.0*PI, 0.0)).spherical_to_cartesian().assert_approx_equals(vec3(1.0, 0.0,... [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 + use core::f32::consts::PI; [INFO] [stdout] | [INFO] [stdout] 2 + use core::f64::consts::PI; [INFO] [stdout] | [INFO] [stdout] 2 + use std::f32::consts::PI; [INFO] [stdout] | [INFO] [stdout] 2 + use std::f64::consts::PI; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PI` in this scope [INFO] [stdout] --> src/vector.rs:153:64 [INFO] [stdout] | [INFO] [stdout] 153 | ((vec3(1.0, 0.0, 0.0).cartesian_to_spherical() + vec3(0.0, PI, 0.0)).spherical_to_cartesian().assert_approx_equals(vec3(-1.0, 0.0, 0.... [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 + use core::f32::consts::PI; [INFO] [stdout] | [INFO] [stdout] 2 + use core::f64::consts::PI; [INFO] [stdout] | [INFO] [stdout] 2 + use std::f32::consts::PI; [INFO] [stdout] | [INFO] [stdout] 2 + use std::f64::consts::PI; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `WriteResult` in this scope [INFO] [stdout] --> src/main.rs:31:20 [INFO] [stdout] | [INFO] [stdout] 31 | fn bassslines() -> WriteResult<()> { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 7 + use riff_wave::WriteResult; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PI` in this scope [INFO] [stdout] --> src/main.rs:32:31 [INFO] [stdout] | [INFO] [stdout] 32 | const FREQUENCY: f32 = 2.0 * PI * 50.0; // radian per second [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 7 + use core::f32::consts::PI; [INFO] [stdout] | [INFO] [stdout] 7 + use core::f64::consts::PI; [INFO] [stdout] | [INFO] [stdout] 7 + use std::f32::consts::PI; [INFO] [stdout] | [INFO] [stdout] 7 + use std::f64::consts::PI; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PI` in this scope [INFO] [stdout] --> src/main.rs:95:28 [INFO] [stdout] | [INFO] [stdout] 95 | phase += f * 2.0 * PI / SAMPLE_RATE as f32; [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 7 + use core::f32::consts::PI; [INFO] [stdout] | [INFO] [stdout] 7 + use core::f64::consts::PI; [INFO] [stdout] | [INFO] [stdout] 7 + use std::f32::consts::PI; [INFO] [stdout] | [INFO] [stdout] 7 + use std::f64::consts::PI; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `WriteResult` in this scope [INFO] [stdout] --> src/main.rs:114:20 [INFO] [stdout] | [INFO] [stdout] 114 | fn write_wave() -> WriteResult<()> { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 7 + use riff_wave::WriteResult; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PI` in this scope [INFO] [stdout] --> src/main.rs:115:31 [INFO] [stdout] | [INFO] [stdout] 115 | const FREQUENCY: f32 = 2.0 * PI * 50.0; // radian per second [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 7 + use core::f32::consts::PI; [INFO] [stdout] | [INFO] [stdout] 7 + use core::f64::consts::PI; [INFO] [stdout] | [INFO] [stdout] 7 + use std::f32::consts::PI; [INFO] [stdout] | [INFO] [stdout] 7 + use std::f64::consts::PI; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PI` in this scope [INFO] [stdout] --> src/main.rs:130:28 [INFO] [stdout] | [INFO] [stdout] 130 | phase += f * 2.0 * PI / SAMPLE_RATE as f32; [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 7 + use core::f32::consts::PI; [INFO] [stdout] | [INFO] [stdout] 7 + use core::f64::consts::PI; [INFO] [stdout] | [INFO] [stdout] 7 + use std::f32::consts::PI; [INFO] [stdout] | [INFO] [stdout] 7 + use std::f64::consts::PI; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PI` in this scope [INFO] [stdout] --> src/main.rs:132:32 [INFO] [stdout] | [INFO] [stdout] 132 | phase += f * 2.0 * PI / SAMPLE_RATE as f32; [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 7 + use core::f32::consts::PI; [INFO] [stdout] | [INFO] [stdout] 7 + use core::f64::consts::PI; [INFO] [stdout] | [INFO] [stdout] 7 + use std::f32::consts::PI; [INFO] [stdout] | [INFO] [stdout] 7 + use std::f64::consts::PI; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `WriteResult` in this scope [INFO] [stdout] --> src/main.rs:153:24 [INFO] [stdout] | [INFO] [stdout] 153 | fn decimate_white() -> WriteResult<()> { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 7 + use riff_wave::WriteResult; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `WriteResult` in this scope [INFO] [stdout] --> src/main.rs:177:28 [INFO] [stdout] | [INFO] [stdout] 177 | fn write_wave_biphase() -> WriteResult<()> { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 7 + use riff_wave::WriteResult; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PI` in this scope [INFO] [stdout] --> src/main.rs:178:31 [INFO] [stdout] | [INFO] [stdout] 178 | const FREQUENCY: f32 = 2.0 * PI * 50.0; // radian per second [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 7 + use core::f32::consts::PI; [INFO] [stdout] | [INFO] [stdout] 7 + use core::f64::consts::PI; [INFO] [stdout] | [INFO] [stdout] 7 + use std::f32::consts::PI; [INFO] [stdout] | [INFO] [stdout] 7 + use std::f64::consts::PI; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PI` in this scope [INFO] [stdout] --> src/main.rs:195:33 [INFO] [stdout] | [INFO] [stdout] 195 | phase1 += f * 2.0 * PI / SAMPLE_RATE as f32; [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 7 + use core::f32::consts::PI; [INFO] [stdout] | [INFO] [stdout] 7 + use core::f64::consts::PI; [INFO] [stdout] | [INFO] [stdout] 7 + use std::f32::consts::PI; [INFO] [stdout] | [INFO] [stdout] 7 + use std::f64::consts::PI; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PI` in this scope [INFO] [stdout] --> src/main.rs:198:33 [INFO] [stdout] | [INFO] [stdout] 198 | phase2 += f * 2.0 * PI / SAMPLE_RATE as f32; [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 7 + use core::f32::consts::PI; [INFO] [stdout] | [INFO] [stdout] 7 + use core::f64::consts::PI; [INFO] [stdout] | [INFO] [stdout] 7 + use std::f32::consts::PI; [INFO] [stdout] | [INFO] [stdout] 7 + use std::f64::consts::PI; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `WriteResult` in this scope [INFO] [stdout] --> src/main.rs:212:21 [INFO] [stdout] | [INFO] [stdout] 212 | fn write_wave2() -> WriteResult<()> { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 7 + use riff_wave::WriteResult; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PI` in this scope [INFO] [stdout] --> src/main.rs:213:31 [INFO] [stdout] | [INFO] [stdout] 213 | const FREQUENCY: f32 = 2.0 * PI * 50.0; // radian per second [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 7 + use core::f32::consts::PI; [INFO] [stdout] | [INFO] [stdout] 7 + use core::f64::consts::PI; [INFO] [stdout] | [INFO] [stdout] 7 + use std::f32::consts::PI; [INFO] [stdout] | [INFO] [stdout] 7 + use std::f64::consts::PI; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PI` in this scope [INFO] [stdout] --> src/main.rs:230:29 [INFO] [stdout] | [INFO] [stdout] 230 | 2.0 * f * 2.0 * PI / SAMPLE_RATE as f32 [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 7 + use core::f32::consts::PI; [INFO] [stdout] | [INFO] [stdout] 7 + use core::f64::consts::PI; [INFO] [stdout] | [INFO] [stdout] 7 + use std::f32::consts::PI; [INFO] [stdout] | [INFO] [stdout] 7 + use std::f64::consts::PI; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PI` in this scope [INFO] [stdout] --> src/main.rs:232:23 [INFO] [stdout] | [INFO] [stdout] 232 | f * 2.0 * PI / SAMPLE_RATE as f32 [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 7 + use core::f32::consts::PI; [INFO] [stdout] | [INFO] [stdout] 7 + use core::f64::consts::PI; [INFO] [stdout] | [INFO] [stdout] 7 + use std::f32::consts::PI; [INFO] [stdout] | [INFO] [stdout] 7 + use std::f64::consts::PI; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `WriteResult` in this scope [INFO] [stdout] --> src/main.rs:303:28 [INFO] [stdout] | [INFO] [stdout] 303 | fn test_impulse_decay() -> WriteResult<()> { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 7 + use riff_wave::WriteResult; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SAMPLE_RATE` is never used [INFO] [stdout] --> src/main.rs:23:7 [INFO] [stdout] | [INFO] [stdout] 23 | const SAMPLE_RATE: u32 = 44100; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `repeating_impulse` is never used [INFO] [stdout] --> src/main.rs:250:4 [INFO] [stdout] | [INFO] [stdout] 250 | fn repeating_impulse(n: i32, N: i32) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `impulse_decay_linear` is never used [INFO] [stdout] --> src/main.rs:258:4 [INFO] [stdout] | [INFO] [stdout] 258 | fn impulse_decay_linear(n: i32, N: i32, d: f32) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `impulse_decay` is never used [INFO] [stdout] --> src/main.rs:266:4 [INFO] [stdout] | [INFO] [stdout] 266 | fn impulse_decay(n: i32, N: i32, d: f32) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sample_vec_i32` is never used [INFO] [stdout] --> src/main.rs:274:4 [INFO] [stdout] | [INFO] [stdout] 274 | fn sample_vec_i32(vec: &Vec, n: i32) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sin_exciter` is never used [INFO] [stdout] --> src/main.rs:281:4 [INFO] [stdout] | [INFO] [stdout] 281 | fn sin_exciter(n: i32, omega: f32) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `white_noise` is never used [INFO] [stdout] --> src/main.rs:287:4 [INFO] [stdout] | [INFO] [stdout] 287 | fn white_noise(n: i32) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part_cycle` is never used [INFO] [stdout] --> src/main.rs:291:4 [INFO] [stdout] | [INFO] [stdout] 291 | fn part_cycle(f: F, full: i32, part: i32, n: i32) -> f32 [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `make_samples_feedback` is never used [INFO] [stdout] --> src/main.rs:356:4 [INFO] [stdout] | [INFO] [stdout] 356 | fn make_samples_feedback(f: F, N: i32, a: f32, d: i32) -> Vec [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `make_samples` is never used [INFO] [stdout] --> src/main.rs:367:4 [INFO] [stdout] | [INFO] [stdout] 367 | fn make_samples(f: F, N: i32) -> Vec [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `write_wav` is never used [INFO] [stdout] --> src/main.rs:374:4 [INFO] [stdout] | [INFO] [stdout] 374 | fn write_wav(outfile: &str, samples: Vec) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hash` is never used [INFO] [stdout] --> src/random.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn hash(mut state: u32) -> u32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `rand` is never used [INFO] [stdout] --> src/random.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn rand(seed: u32) -> f32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `lerp` is never used [INFO] [stdout] --> src/random.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn lerp(x: f32, y: f32, t: f32) -> f32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fade` is never used [INFO] [stdout] --> src/random.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn fade(t: f32) -> f32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `noise_grad` is never used [INFO] [stdout] --> src/random.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn noise_grad(p: Vec2, seed: u32) -> f32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Vec4` is never constructed [INFO] [stdout] --> src/vector.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct Vec4 { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Vec4` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `vec4` is never used [INFO] [stdout] --> src/vector.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn vec4(x: f32, y: f32, z: f32, w: f32) -> Vec4 { Vec4 { x, y, z, w } } [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/vector.rs:223:12 [INFO] [stdout] | [INFO] [stdout] 222 | impl Vec4 { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] 223 | pub fn dot(&self, other: Vec4) -> f32 { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 226 | pub fn tl(&self) -> Vec2 {vec2(self.x, self.y)} [INFO] [stdout] | ^^ [INFO] [stdout] 227 | pub fn br(&self) -> Vec2 {vec2(self.x + self.z, self.y + self.w)} [INFO] [stdout] | ^^ [INFO] [stdout] 228 | pub fn tr(&self) -> Vec2 {vec2(self.x + self.z, self.y)} [INFO] [stdout] | ^^ [INFO] [stdout] 229 | pub fn bl(&self) -> Vec2 {vec2(self.x, self.y + self.w)} [INFO] [stdout] | ^^ [INFO] [stdout] 230 | pub fn grid_child(&self, i: usize, j: usize, w: usize, h: usize) -> Vec4 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 235 | pub fn hsv_to_rgb(&self) -> Vec4 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 253 | fn contains(&self, p: Vec2) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 256 | fn point_within(&self, p: Vec2) -> Vec2 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 259 | fn point_without(&self, p: Vec2) -> Vec2 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 262 | fn fit_aspect(&self, a: f32) -> Vec4 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `N` should have a snake case name [INFO] [stdout] --> src/main.rs:250:30 [INFO] [stdout] | [INFO] [stdout] 250 | fn repeating_impulse(n: i32, N: i32) -> f32 { [INFO] [stdout] | ^ help: convert the identifier to snake case: `n` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `N` should have a snake case name [INFO] [stdout] --> src/main.rs:258:33 [INFO] [stdout] | [INFO] [stdout] 258 | fn impulse_decay_linear(n: i32, N: i32, d: f32) -> f32 { [INFO] [stdout] | ^ help: convert the identifier to snake case: `n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `N` should have a snake case name [INFO] [stdout] --> src/main.rs:266:26 [INFO] [stdout] | [INFO] [stdout] 266 | fn impulse_decay(n: i32, N: i32, d: f32) -> f32 { [INFO] [stdout] | ^ help: convert the identifier to snake case: `n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `N` should have a snake case name [INFO] [stdout] --> src/main.rs:356:35 [INFO] [stdout] | [INFO] [stdout] 356 | fn make_samples_feedback(f: F, N: i32, a: f32, d: i32) -> Vec [INFO] [stdout] | ^ help: convert the identifier to snake case: `n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `N` should have a snake case name [INFO] [stdout] --> src/main.rs:367:26 [INFO] [stdout] | [INFO] [stdout] 367 | fn make_samples(f: F, N: i32) -> Vec [INFO] [stdout] | ^ help: convert the identifier to snake case: `n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `rotate_about_Vec3` should have a snake case name [INFO] [stdout] --> src/vector.rs:129:12 [INFO] [stdout] | [INFO] [stdout] 129 | pub fn rotate_about_Vec3(&self, axis: Vec3, theta: f32) -> Vec3 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `rotate_about_vec3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 25 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 21 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: could not compile `wavbook` (bin "wavbook" test) due to 22 previous errors [INFO] [stderr] error: failed to check after updating to 2024 [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo check --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "ac533713c4974cdadf89d3a95507c59313936343a49dc6a869444b043497cf0a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ac533713c4974cdadf89d3a95507c59313936343a49dc6a869444b043497cf0a", kill_on_drop: false }` [INFO] [stdout] ac533713c4974cdadf89d3a95507c59313936343a49dc6a869444b043497cf0a