[INFO] cloning repository https://github.com/TrionProg/kurs_sp [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/TrionProg/kurs_sp" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTrionProg%2Fkurs_sp", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTrionProg%2Fkurs_sp'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 642f9b16f43eb86b2430108242466e5a75fc9f2b [INFO] checking TrionProg/kurs_sp against try#8d46be77cd48fdbcced888d027457e2c9cf2aa16 for pr-142723 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTrionProg%2Fkurs_sp" "/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/TrionProg/kurs_sp on toolchain 8d46be77cd48fdbcced888d027457e2c9cf2aa16 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8d46be77cd48fdbcced888d027457e2c9cf2aa16" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/TrionProg/kurs_sp [INFO] finished tweaking git repo https://github.com/TrionProg/kurs_sp [INFO] tweaked toml for git repo https://github.com/TrionProg/kurs_sp written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/TrionProg/kurs_sp 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" "+8d46be77cd48fdbcced888d027457e2c9cf2aa16" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [INFO] checking TrionProg/kurs_sp against try#8d46be77cd48fdbcced888d027457e2c9cf2aa16 for pr-142723 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTrionProg%2Fkurs_sp" "/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/TrionProg/kurs_sp on toolchain 8d46be77cd48fdbcced888d027457e2c9cf2aa16 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8d46be77cd48fdbcced888d027457e2c9cf2aa16" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/TrionProg/kurs_sp [INFO] finished tweaking git repo https://github.com/TrionProg/kurs_sp [INFO] tweaked toml for git repo https://github.com/TrionProg/kurs_sp written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/TrionProg/kurs_sp 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" "+8d46be77cd48fdbcced888d027457e2c9cf2aa16" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8d46be77cd48fdbcced888d027457e2c9cf2aa16" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] df612409abc2068d52a6b34393cd73d4ffe8429680c221dfde3d38f130e76518 [INFO] running `Command { std: "docker" "start" "-a" "df612409abc2068d52a6b34393cd73d4ffe8429680c221dfde3d38f130e76518", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "df612409abc2068d52a6b34393cd73d4ffe8429680c221dfde3d38f130e76518", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "df612409abc2068d52a6b34393cd73d4ffe8429680c221dfde3d38f130e76518", kill_on_drop: false }` [INFO] [stdout] df612409abc2068d52a6b34393cd73d4ffe8429680c221dfde3d38f130e76518 [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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8d46be77cd48fdbcced888d027457e2c9cf2aa16" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6f5235b7129d1a58dfabd57b36b948f3effc1de14807fc221b7d1caa6038a2ef [INFO] running `Command { std: "docker" "start" "-a" "6f5235b7129d1a58dfabd57b36b948f3effc1de14807fc221b7d1caa6038a2ef", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Checking libc v0.2.33 [INFO] [stderr] Checking rand v0.3.18 [INFO] [stderr] Checking kurs_sp v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std` [INFO] [stdout] --> src/signal.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::N` [INFO] [stdout] --> src/signal.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use super::N; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand` [INFO] [stdout] --> src/float.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use rand; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `IndependentSample` and `Range` [INFO] [stdout] --> src/float.rs:5:27 [INFO] [stdout] | [INFO] [stdout] 5 | use rand::distributions::{IndependentSample, Range}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::LEN` [INFO] [stdout] --> src/float.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use super::LEN; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `load_signal` and `write_signal` [INFO] [stdout] --> src/float.rs:13:14 [INFO] [stdout] | [INFO] [stdout] 13 | use signal::{load_signal,write_signal}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand` [INFO] [stdout] --> src/fixed.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use rand; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `IndependentSample` and `Range` [INFO] [stdout] --> src/fixed.rs:5:27 [INFO] [stdout] | [INFO] [stdout] 5 | use rand::distributions::{IndependentSample, Range}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::LEN` [INFO] [stdout] --> src/fixed.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use super::LEN; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `load_signal` and `write_signal` [INFO] [stdout] --> src/fixed.rs:13:14 [INFO] [stdout] | [INFO] [stdout] 13 | use signal::{load_signal,write_signal}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std` [INFO] [stdout] --> src/signal.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::N` [INFO] [stdout] --> src/signal.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use super::N; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand` [INFO] [stdout] --> src/float.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use rand; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `IndependentSample` and `Range` [INFO] [stdout] --> src/float.rs:5:27 [INFO] [stdout] | [INFO] [stdout] 5 | use rand::distributions::{IndependentSample, Range}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand` [INFO] [stdout] --> src/fixed.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use rand; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `IndependentSample` and `Range` [INFO] [stdout] --> src/fixed.rs:5:27 [INFO] [stdout] | [INFO] [stdout] 5 | use rand::distributions::{IndependentSample, Range}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/float.rs:20:42 [INFO] [stdout] | [INFO] [stdout] 20 | let mut H:[f32;N] = unsafe{std::mem::uninitialized()}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/fixed.rs:71:42 [INFO] [stdout] | [INFO] [stdout] 71 | let mut H:[i32;N] = unsafe{std::mem::uninitialized()}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/float.rs:20:42 [INFO] [stdout] | [INFO] [stdout] 20 | let mut H:[f32;N] = unsafe{std::mem::uninitialized()}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/fixed.rs:71:42 [INFO] [stdout] | [INFO] [stdout] 71 | let mut H:[i32;N] = unsafe{std::mem::uninitialized()}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/signal.rs:58:9 [INFO] [stdout] | [INFO] [stdout] 58 | let mut reader = BufReader::new(f); [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/signal.rs:58:9 [INFO] [stdout] | [INFO] [stdout] 58 | let mut reader = BufReader::new(f); [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: function `rand` is never used [INFO] [stdout] --> src/signal.rs:19:4 [INFO] [stdout] | [INFO] [stdout] 19 | fn rand(i:usize) -> f32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `load_signal` is never used [INFO] [stdout] --> src/signal.rs:56:8 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn load_signal() -> Vec{ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cas` is never used [INFO] [stdout] --> src/float.rs:15:4 [INFO] [stdout] | [INFO] [stdout] 15 | fn cas(x:f32) -> f32 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `dph` is never used [INFO] [stdout] --> src/float.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn dph(h:&[f32]) -> [f32;N] { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `to_10bit` is never used [INFO] [stdout] --> src/fixed.rs:15:4 [INFO] [stdout] | [INFO] [stdout] 15 | fn to_10bit(x:f32) -> i32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `to_12bit` is never used [INFO] [stdout] --> src/fixed.rs:25:4 [INFO] [stdout] | [INFO] [stdout] 25 | fn to_12bit(x:f32) -> i32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `to_16bit` is never used [INFO] [stdout] --> src/fixed.rs:35:4 [INFO] [stdout] | [INFO] [stdout] 35 | fn to_16bit(x:f32) -> i32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `from10_to_16bit` is never used [INFO] [stdout] --> src/fixed.rs:45:4 [INFO] [stdout] | [INFO] [stdout] 45 | fn from10_to_16bit(x:i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `from12_to_16bit` is never used [INFO] [stdout] --> src/fixed.rs:49:4 [INFO] [stdout] | [INFO] [stdout] 49 | fn from12_to_16bit(x:i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `from_16bit_to_float` is never used [INFO] [stdout] --> src/fixed.rs:53:4 [INFO] [stdout] | [INFO] [stdout] 53 | fn from_16bit_to_float(x:i32) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cas16` is never used [INFO] [stdout] --> src/fixed.rs:63:4 [INFO] [stdout] | [INFO] [stdout] 63 | fn cas16(x:i32) -> i32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `dph` is never used [INFO] [stdout] --> src/fixed.rs:70:8 [INFO] [stdout] | [INFO] [stdout] 70 | pub fn dph(h:&[i32]) -> [i32;N] {//работает с 16 бит [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type `[f32; 8]` does not permit being left uninitialized [INFO] [stdout] --> src/float.rs:20:32 [INFO] [stdout] | [INFO] [stdout] 20 | let mut H:[f32;N] = unsafe{std::mem::uninitialized()}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this code causes undefined behavior when executed [INFO] [stdout] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stdout] | [INFO] [stdout] = note: floats must be initialized [INFO] [stdout] = note: `#[warn(invalid_value)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `H` should have a snake case name [INFO] [stdout] --> src/float.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | let mut H:[f32;N] = unsafe{std::mem::uninitialized()}; [INFO] [stdout] | ^ help: convert the identifier to snake case: `h` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `H` should have a snake case name [INFO] [stdout] --> src/float.rs:23:61 [INFO] [stdout] | [INFO] [stdout] 23 | H[k]=1.0/N as f32 * h.iter().enumerate().fold(0.0, |H, (n,h)| { [INFO] [stdout] | ^ help: convert the identifier to snake case: `h` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type `[i32; 8]` does not permit being left uninitialized [INFO] [stdout] --> src/fixed.rs:71:32 [INFO] [stdout] | [INFO] [stdout] 71 | let mut H:[i32;N] = unsafe{std::mem::uninitialized()}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this code causes undefined behavior when executed [INFO] [stdout] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stdout] | [INFO] [stdout] = note: integers must be initialized [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `H` should have a snake case name [INFO] [stdout] --> src/fixed.rs:71:13 [INFO] [stdout] | [INFO] [stdout] 71 | let mut H:[i32;N] = unsafe{std::mem::uninitialized()}; [INFO] [stdout] | ^ help: convert the identifier to snake case: `h` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `divN16` should have a snake case name [INFO] [stdout] --> src/fixed.rs:74:13 [INFO] [stdout] | [INFO] [stdout] 74 | let divN16=from12_to_16bit(to_12bit(1.0/N as f32)); [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `div_n16` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `H` should have a snake case name [INFO] [stdout] --> src/fixed.rs:77:45 [INFO] [stdout] | [INFO] [stdout] 77 | let b=h.iter().enumerate().fold(0, |H, (n,h)| { [INFO] [stdout] | ^ help: convert the identifier to snake case: `h` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `rand` is never used [INFO] [stdout] --> src/signal.rs:19:4 [INFO] [stdout] | [INFO] [stdout] 19 | fn rand(i:usize) -> f32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type `[f32; 8]` does not permit being left uninitialized [INFO] [stdout] --> src/float.rs:20:32 [INFO] [stdout] | [INFO] [stdout] 20 | let mut H:[f32;N] = unsafe{std::mem::uninitialized()}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this code causes undefined behavior when executed [INFO] [stdout] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stdout] | [INFO] [stdout] = note: floats must be initialized [INFO] [stdout] = note: `#[warn(invalid_value)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `H` should have a snake case name [INFO] [stdout] --> src/float.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | let mut H:[f32;N] = unsafe{std::mem::uninitialized()}; [INFO] [stdout] | ^ help: convert the identifier to snake case: `h` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `H` should have a snake case name [INFO] [stdout] --> src/float.rs:23:61 [INFO] [stdout] | [INFO] [stdout] 23 | H[k]=1.0/N as f32 * h.iter().enumerate().fold(0.0, |H, (n,h)| { [INFO] [stdout] | ^ help: convert the identifier to snake case: `h` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type `[i32; 8]` does not permit being left uninitialized [INFO] [stdout] --> src/fixed.rs:71:32 [INFO] [stdout] | [INFO] [stdout] 71 | let mut H:[i32;N] = unsafe{std::mem::uninitialized()}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this code causes undefined behavior when executed [INFO] [stdout] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stdout] | [INFO] [stdout] = note: integers must be initialized [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `H` should have a snake case name [INFO] [stdout] --> src/fixed.rs:71:13 [INFO] [stdout] | [INFO] [stdout] 71 | let mut H:[i32;N] = unsafe{std::mem::uninitialized()}; [INFO] [stdout] | ^ help: convert the identifier to snake case: `h` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `divN16` should have a snake case name [INFO] [stdout] --> src/fixed.rs:74:13 [INFO] [stdout] | [INFO] [stdout] 74 | let divN16=from12_to_16bit(to_12bit(1.0/N as f32)); [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `div_n16` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `H` should have a snake case name [INFO] [stdout] --> src/fixed.rs:77:45 [INFO] [stdout] | [INFO] [stdout] 77 | let b=h.iter().enumerate().fold(0, |H, (n,h)| { [INFO] [stdout] | ^ help: convert the identifier to snake case: `h` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.39s [INFO] running `Command { std: "docker" "inspect" "6f5235b7129d1a58dfabd57b36b948f3effc1de14807fc221b7d1caa6038a2ef", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6f5235b7129d1a58dfabd57b36b948f3effc1de14807fc221b7d1caa6038a2ef", kill_on_drop: false }` [INFO] [stdout] 6f5235b7129d1a58dfabd57b36b948f3effc1de14807fc221b7d1caa6038a2ef