[INFO] fetching crate oml-audio 0.8.8-alpha... [INFO] testing oml-audio-0.8.8-alpha against try#8de4c7234dd9b97c9d76b58671343fdbbc9a433e+target=x86_64-unknown-linux-musl for musl_upgrade_1_2_5_with_libc_patch_0 [INFO] extracting crate oml-audio 0.8.8-alpha into /workspace/builds/worker-3-tc1/source [INFO] started tweaking crates.io crate oml-audio 0.8.8-alpha [INFO] finished tweaking crates.io crate oml-audio 0.8.8-alpha [INFO] tweaked toml for crates.io crate oml-audio 0.8.8-alpha written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate oml-audio 0.8.8-alpha on toolchain 8de4c7234dd9b97c9d76b58671343fdbbc9a433e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate oml-audio 0.8.8-alpha 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" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded ringbuf v0.2.8 [INFO] [stderr] Downloaded om-fork-miniaudio v0.12.1 [INFO] [stderr] Downloaded om-fork-ep-miniaudio-sys v2.6.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3fc54fe2dbc2aed9abc614b26d1d328144136b434ab9d45daa91c2f10f734a03 [INFO] running `Command { std: "docker" "start" "-a" "3fc54fe2dbc2aed9abc614b26d1d328144136b434ab9d45daa91c2f10f734a03", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3fc54fe2dbc2aed9abc614b26d1d328144136b434ab9d45daa91c2f10f734a03", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3fc54fe2dbc2aed9abc614b26d1d328144136b434ab9d45daa91c2f10f734a03", kill_on_drop: false }` [INFO] [stdout] 3fc54fe2dbc2aed9abc614b26d1d328144136b434ab9d45daa91c2f10f734a03 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "build" "--frozen" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] dd765cc66229e97392a1924a3d5031775eab82a96ebf7a0fb07ec167e8cff8bb [INFO] running `Command { std: "docker" "start" "-a" "dd765cc66229e97392a1924a3d5031775eab82a96ebf7a0fb07ec167e8cff8bb", kill_on_drop: false }` [INFO] [stderr] Compiling cfg_aliases v0.1.1 [INFO] [stderr] Compiling cache-padded v1.2.0 [INFO] [stderr] Compiling ringbuf v0.2.8 [INFO] [stderr] Compiling oml-audio v0.8.8-alpha (/opt/rustwide/workdir) [INFO] [stdout] warning: unexpected `cfg` condition name: `use_apple` [INFO] [stdout] --> src/audio.rs:1:7 [INFO] [stdout] | [INFO] [stdout] 1 | #[cfg(use_apple)] [INFO] [stdout] | ^^^^^^^^^ help: found config with similar value: `feature = "use_apple"` [INFO] [stdout] | [INFO] [stdout] = help: expected names are: `docsrs`, `feature`, and `test` and 31 more [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(use_apple)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(use_apple)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `use_apple` [INFO] [stdout] --> src/audio.rs:3:7 [INFO] [stdout] | [INFO] [stdout] 3 | #[cfg(use_apple)] [INFO] [stdout] | ^^^^^^^^^ help: found config with similar value: `feature = "use_apple"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(use_apple)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(use_apple)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `use_miniaudio` [INFO] [stdout] --> src/audio.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | #[cfg(use_miniaudio)] [INFO] [stdout] | ^^^^^^^^^^^^^ help: found config with similar value: `feature = "use_miniaudio"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(use_miniaudio)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(use_miniaudio)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `use_miniaudio` [INFO] [stdout] --> src/audio.rs:8:7 [INFO] [stdout] | [INFO] [stdout] 8 | #[cfg(use_miniaudio)] [INFO] [stdout] | ^^^^^^^^^^^^^ help: found config with similar value: `feature = "use_miniaudio"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(use_miniaudio)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(use_miniaudio)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `use_stub` [INFO] [stdout] --> src/audio.rs:11:7 [INFO] [stdout] | [INFO] [stdout] 11 | #[cfg(use_stub)] [INFO] [stdout] | ^^^^^^^^ help: found config with similar value: `feature = "use_stub"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(use_stub)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(use_stub)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `use_stub` [INFO] [stdout] --> src/audio.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 13 | #[cfg(use_stub)] [INFO] [stdout] | ^^^^^^^^ help: found config with similar value: `feature = "use_stub"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(use_stub)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(use_stub)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::music::MusicStub` [INFO] [stdout] --> src/audio/audio_stub.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::music::MusicStub; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `use_apple` [INFO] [stdout] --> src/audio.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | #[cfg(use_apple)] [INFO] [stdout] | ^^^^^^^^^ help: found config with similar value: `feature = "use_apple"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(use_apple)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(use_apple)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `use_miniaudio` [INFO] [stdout] --> src/audio.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | #[cfg(use_miniaudio)] [INFO] [stdout] | ^^^^^^^^^^^^^ help: found config with similar value: `feature = "use_miniaudio"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(use_miniaudio)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(use_miniaudio)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `use_stub` [INFO] [stdout] --> src/audio.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | #[cfg(use_stub)] [INFO] [stdout] | ^^^^^^^^ help: found config with similar value: `feature = "use_stub"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(use_stub)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(use_stub)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `use_apple` [INFO] [stdout] --> src/audio.rs:54:10 [INFO] [stdout] | [INFO] [stdout] 54 | #[cfg(use_apple)] [INFO] [stdout] | ^^^^^^^^^ help: found config with similar value: `feature = "use_apple"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(use_apple)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(use_apple)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `use_miniaudio` [INFO] [stdout] --> src/audio.rs:56:10 [INFO] [stdout] | [INFO] [stdout] 56 | #[cfg(use_miniaudio)] [INFO] [stdout] | ^^^^^^^^^^^^^ help: found config with similar value: `feature = "use_miniaudio"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(use_miniaudio)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(use_miniaudio)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `use_stub` [INFO] [stdout] --> src/audio.rs:58:10 [INFO] [stdout] | [INFO] [stdout] 58 | #[cfg(use_stub)] [INFO] [stdout] | ^^^^^^^^ help: found config with similar value: `feature = "use_stub"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(use_stub)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(use_stub)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `use_stub` [INFO] [stdout] --> src/audio.rs:60:14 [INFO] [stdout] | [INFO] [stdout] 60 | #[cfg(not(use_stub))] [INFO] [stdout] | ^^^^^^^^ help: found config with similar value: `feature = "use_stub"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(use_stub)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(use_stub)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `use_apple` [INFO] [stdout] --> src/music.rs:1:7 [INFO] [stdout] | [INFO] [stdout] 1 | #[cfg(use_apple)] [INFO] [stdout] | ^^^^^^^^^ help: found config with similar value: `feature = "use_apple"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(use_apple)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(use_apple)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `use_apple` [INFO] [stdout] --> src/music.rs:3:7 [INFO] [stdout] | [INFO] [stdout] 3 | #[cfg(use_apple)] [INFO] [stdout] | ^^^^^^^^^ help: found config with similar value: `feature = "use_apple"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(use_apple)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(use_apple)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `use_miniaudio` [INFO] [stdout] --> src/music.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | #[cfg(use_miniaudio)] [INFO] [stdout] | ^^^^^^^^^^^^^ help: found config with similar value: `feature = "use_miniaudio"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(use_miniaudio)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(use_miniaudio)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `use_miniaudio` [INFO] [stdout] --> src/music.rs:8:7 [INFO] [stdout] | [INFO] [stdout] 8 | #[cfg(use_miniaudio)] [INFO] [stdout] | ^^^^^^^^^^^^^ help: found config with similar value: `feature = "use_miniaudio"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(use_miniaudio)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(use_miniaudio)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `use_stub` [INFO] [stdout] --> src/music.rs:11:7 [INFO] [stdout] | [INFO] [stdout] 11 | #[cfg(use_stub)] [INFO] [stdout] | ^^^^^^^^ help: found config with similar value: `feature = "use_stub"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(use_stub)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(use_stub)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `use_stub` [INFO] [stdout] --> src/music.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 13 | #[cfg(use_stub)] [INFO] [stdout] | ^^^^^^^^ help: found config with similar value: `feature = "use_stub"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(use_stub)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(use_stub)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `drop_mode::DropMode` [INFO] [stdout] --> src/sound.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | pub use drop_mode::DropMode; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/fileloader.rs:55:3 [INFO] [stdout] | [INFO] [stdout] 54 | todo!("seek"); [INFO] [stdout] | ------------- any code following this expression is unreachable [INFO] [stdout] 55 | eprintln!("Seeking {:?}", &pos); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] = note: this warning originates in the macro `eprintln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/fileloader.rs:60:5 [INFO] [stdout] | [INFO] [stdout] 59 | panic!("SeekFrom::End not supported {}", delta); [INFO] [stdout] | ----------------------------------------------- any code following this expression is unreachable [INFO] [stdout] 60 | 0 [INFO] [stdout] | ^ unreachable expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `size` [INFO] [stdout] --> src/audio/audio_stub.rs:48:28 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn capture(&mut self, size: usize) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_size` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fileloader` [INFO] [stdout] --> src/music/music_stub.rs:10:25 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn load(&mut self, fileloader: &mut impl FileLoader, filename: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_fileloader` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `filename` [INFO] [stdout] --> src/music/music_stub.rs:10:59 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn load(&mut self, fileloader: &mut impl FileLoader, filename: &str) -> bool { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_filename` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fileloader` [INFO] [stdout] --> src/sound/sound_stub.rs:13:25 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn load(&mut self, fileloader: &mut impl FileLoader, name: &str, number: u16) -> bool { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_fileloader` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/sound/sound_stub.rs:13:59 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn load(&mut self, fileloader: &mut impl FileLoader, name: &str, number: u16) -> bool { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `number` [INFO] [stdout] --> src/sound/sound_stub.rs:13:71 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn load(&mut self, fileloader: &mut impl FileLoader, name: &str, number: u16) -> bool { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_number` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `old_sound` [INFO] [stdout] --> src/sound/sound_bank.rs:34:15 [INFO] [stdout] | [INFO] [stdout] 34 | if let Some(old_sound) = self.sound_pools.insert(name.to_string(), sound_pool) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_old_sound` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/sound/sound_bank.rs:166:7 [INFO] [stdout] | [INFO] [stdout] 166 | for e in 0..ne { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `drop_mode` [INFO] [stdout] --> src/sound/sound_bank.rs:204:8 [INFO] [stdout] | [INFO] [stdout] 204 | let drop_mode = f.read_u16(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_drop_mode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `flags` [INFO] [stdout] --> src/sound/sound_bank.rs:205:8 [INFO] [stdout] | [INFO] [stdout] 205 | let flags = f.read_u32(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_flags` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time` [INFO] [stdout] --> src/wav_player.rs:34:37 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn set_current_time(&mut self, time: f64) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pos` [INFO] [stdout] --> src/fileloader.rs:53:21 [INFO] [stdout] | [INFO] [stdout] 53 | fn seek(&mut self, pos: SeekFrom) -> std::io::Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_pos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `capture_buffer` and `sound_bank` are never read [INFO] [stdout] --> src/audio/audio_stub.rs:12:2 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct AudioStub { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 11 | last_now: Instant, [INFO] [stdout] 12 | capture_buffer: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 13 | sound_bank: SoundBank, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AudioStub` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/audio/audio_stub.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 16 | impl AudioStub { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn start(&mut self) {} [INFO] [stdout] | ^^^^^ [INFO] [stdout] 27 | [INFO] [stdout] 28 | pub fn get_sound_bank_mut(&mut self) -> &mut SoundBank { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn fill_buffer( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn drain_buffer(_consumer: &mut ringbuf::Consumer) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | pub fn load_music(&mut self, _fileloader: &mut impl FileLoader, _filename: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn capture(&mut self, size: usize) {} [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 49 | [INFO] [stdout] 50 | pub fn capture_buffer_slice(&self) -> &[f32] { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MusicStub` is never constructed [INFO] [stdout] --> src/music/music_stub.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct MusicStub {} [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MusicStub` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `load`, `play`, `pause`, `stop`, and `update` are never used [INFO] [stdout] --> src/music/music_stub.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 6 | impl MusicStub { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 7 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 10 | pub fn load(&mut self, fileloader: &mut impl FileLoader, filename: &str) -> bool { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 14 | pub fn play(&mut self) {} [INFO] [stdout] | ^^^^ [INFO] [stdout] 15 | [INFO] [stdout] 16 | pub fn pause(&mut self) {} [INFO] [stdout] | ^^^^^ [INFO] [stdout] 17 | [INFO] [stdout] 18 | pub fn stop(&mut self) {} [INFO] [stdout] | ^^^^ [INFO] [stdout] 19 | [INFO] [stdout] 20 | pub fn update(&mut self, _time_step: f64) {} [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Drop` is never constructed [INFO] [stdout] --> src/sound/sound_bank.rs:95:2 [INFO] [stdout] | [INFO] [stdout] 94 | pub enum DropMode { [INFO] [stdout] | -------- variant in this enum [INFO] [stdout] 95 | Drop, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DropMode` 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: fields `id_crc`, `drop_mode`, and `do_loop` are never read [INFO] [stdout] --> src/sound/sound_bank.rs:102:2 [INFO] [stdout] | [INFO] [stdout] 100 | pub struct Entry { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 101 | id: String, [INFO] [stdout] 102 | id_crc: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 105 | drop_mode: DropMode, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 106 | do_loop: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Entry` 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: enum `DropMode` is never used [INFO] [stdout] --> src/sound/drop_mode.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum DropMode { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DropMode` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/wav_file.rs:113:26 [INFO] [stdout] | [INFO] [stdout] 113 | let w = unsafe { std::mem::transmute::(w) }; [INFO] [stdout] | -------------------------------^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `u16::cast_signed` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unnecessary_transmutes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `COIN_REPEAT` should have a snake case name [INFO] [stdout] --> src/oml_audio_main.rs:30:6 [INFO] [stdout] | [INFO] [stdout] 30 | let COIN_REPEAT = 0.5; [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `coin_repeat` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `POWERUP_REPEAT` should have a snake case name [INFO] [stdout] --> src/oml_audio_main.rs:33:6 [INFO] [stdout] | [INFO] [stdout] 33 | let POWERUP_REPEAT = 3.1; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `powerup_repeat` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.76s [INFO] running `Command { std: "docker" "inspect" "dd765cc66229e97392a1924a3d5031775eab82a96ebf7a0fb07ec167e8cff8bb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dd765cc66229e97392a1924a3d5031775eab82a96ebf7a0fb07ec167e8cff8bb", kill_on_drop: false }` [INFO] [stdout] dd765cc66229e97392a1924a3d5031775eab82a96ebf7a0fb07ec167e8cff8bb [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--no-run" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] b14a04f4c50abdc3ed0a4394b84b2d1c3ce03018d2e8dea975b1fa18679b8376 [INFO] running `Command { std: "docker" "start" "-a" "b14a04f4c50abdc3ed0a4394b84b2d1c3ce03018d2e8dea975b1fa18679b8376", kill_on_drop: false }` [INFO] [stdout] warning: unexpected `cfg` condition name: `use_apple` [INFO] [stdout] --> src/audio.rs:1:7 [INFO] [stdout] | [INFO] [stdout] 1 | #[cfg(use_apple)] [INFO] [stdout] | ^^^^^^^^^ help: found config with similar value: `feature = "use_apple"` [INFO] [stdout] | [INFO] [stdout] = help: expected names are: `docsrs`, `feature`, and `test` and 31 more [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(use_apple)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(use_apple)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `use_apple` [INFO] [stdout] --> src/audio.rs:3:7 [INFO] [stdout] | [INFO] [stdout] 3 | #[cfg(use_apple)] [INFO] [stdout] | ^^^^^^^^^ help: found config with similar value: `feature = "use_apple"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(use_apple)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(use_apple)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `use_miniaudio` [INFO] [stdout] --> src/audio.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | #[cfg(use_miniaudio)] [INFO] [stdout] | ^^^^^^^^^^^^^ help: found config with similar value: `feature = "use_miniaudio"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(use_miniaudio)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(use_miniaudio)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `use_miniaudio` [INFO] [stdout] --> src/audio.rs:8:7 [INFO] [stdout] | [INFO] [stdout] 8 | #[cfg(use_miniaudio)] [INFO] [stdout] | ^^^^^^^^^^^^^ help: found config with similar value: `feature = "use_miniaudio"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(use_miniaudio)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(use_miniaudio)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `use_stub` [INFO] [stdout] --> src/audio.rs:11:7 [INFO] [stdout] | [INFO] [stdout] 11 | #[cfg(use_stub)] [INFO] [stdout] | ^^^^^^^^ help: found config with similar value: `feature = "use_stub"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(use_stub)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(use_stub)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `use_stub` [INFO] [stdout] --> src/audio.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 13 | #[cfg(use_stub)] [INFO] [stdout] | ^^^^^^^^ help: found config with similar value: `feature = "use_stub"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(use_stub)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(use_stub)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::music::MusicStub` [INFO] [stdout] --> src/audio/audio_stub.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::music::MusicStub; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `use_apple` [INFO] [stdout] --> src/audio.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | #[cfg(use_apple)] [INFO] [stdout] | ^^^^^^^^^ help: found config with similar value: `feature = "use_apple"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(use_apple)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(use_apple)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `use_miniaudio` [INFO] [stdout] --> src/audio.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | #[cfg(use_miniaudio)] [INFO] [stdout] | ^^^^^^^^^^^^^ help: found config with similar value: `feature = "use_miniaudio"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(use_miniaudio)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(use_miniaudio)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `use_stub` [INFO] [stdout] --> src/audio.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | #[cfg(use_stub)] [INFO] [stdout] | ^^^^^^^^ help: found config with similar value: `feature = "use_stub"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(use_stub)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(use_stub)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `use_apple` [INFO] [stdout] --> src/audio.rs:54:10 [INFO] [stdout] | [INFO] [stdout] 54 | #[cfg(use_apple)] [INFO] [stdout] | ^^^^^^^^^ help: found config with similar value: `feature = "use_apple"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(use_apple)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(use_apple)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `use_miniaudio` [INFO] [stdout] --> src/audio.rs:56:10 [INFO] [stdout] | [INFO] [stdout] 56 | #[cfg(use_miniaudio)] [INFO] [stdout] | ^^^^^^^^^^^^^ help: found config with similar value: `feature = "use_miniaudio"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(use_miniaudio)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(use_miniaudio)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `use_stub` [INFO] [stdout] --> src/audio.rs:58:10 [INFO] [stdout] | [INFO] [stdout] 58 | #[cfg(use_stub)] [INFO] [stdout] | ^^^^^^^^ help: found config with similar value: `feature = "use_stub"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(use_stub)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(use_stub)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `use_stub` [INFO] [stdout] --> src/audio.rs:60:14 [INFO] [stdout] | [INFO] [stdout] 60 | #[cfg(not(use_stub))] [INFO] [stdout] | ^^^^^^^^ help: found config with similar value: `feature = "use_stub"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(use_stub)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(use_stub)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `use_apple` [INFO] [stdout] --> src/music.rs:1:7 [INFO] [stdout] | [INFO] [stdout] 1 | #[cfg(use_apple)] [INFO] [stdout] | ^^^^^^^^^ help: found config with similar value: `feature = "use_apple"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(use_apple)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(use_apple)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `use_apple` [INFO] [stdout] --> src/music.rs:3:7 [INFO] [stdout] | [INFO] [stdout] 3 | #[cfg(use_apple)] [INFO] [stdout] | ^^^^^^^^^ help: found config with similar value: `feature = "use_apple"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(use_apple)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(use_apple)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `use_miniaudio` [INFO] [stdout] --> src/music.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | #[cfg(use_miniaudio)] [INFO] [stdout] | ^^^^^^^^^^^^^ help: found config with similar value: `feature = "use_miniaudio"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(use_miniaudio)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(use_miniaudio)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `use_miniaudio` [INFO] [stdout] --> src/music.rs:8:7 [INFO] [stdout] | [INFO] [stdout] 8 | #[cfg(use_miniaudio)] [INFO] [stdout] | ^^^^^^^^^^^^^ help: found config with similar value: `feature = "use_miniaudio"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(use_miniaudio)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(use_miniaudio)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `use_stub` [INFO] [stdout] --> src/music.rs:11:7 [INFO] [stdout] | [INFO] [stdout] 11 | #[cfg(use_stub)] [INFO] [stdout] | ^^^^^^^^ help: found config with similar value: `feature = "use_stub"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(use_stub)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(use_stub)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `use_stub` [INFO] [stdout] --> src/music.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 13 | #[cfg(use_stub)] [INFO] [stdout] | ^^^^^^^^ help: found config with similar value: `feature = "use_stub"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(use_stub)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(use_stub)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `drop_mode::DropMode` [INFO] [stdout] --> src/sound.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | pub use drop_mode::DropMode; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/fileloader.rs:55:3 [INFO] [stdout] | [INFO] [stdout] 54 | todo!("seek"); [INFO] [stdout] | ------------- any code following this expression is unreachable [INFO] [stdout] 55 | eprintln!("Seeking {:?}", &pos); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] = note: this warning originates in the macro `eprintln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/fileloader.rs:60:5 [INFO] [stdout] | [INFO] [stdout] 59 | panic!("SeekFrom::End not supported {}", delta); [INFO] [stdout] | ----------------------------------------------- any code following this expression is unreachable [INFO] [stdout] 60 | 0 [INFO] [stdout] | ^ unreachable expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `size` [INFO] [stdout] --> src/audio/audio_stub.rs:48:28 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn capture(&mut self, size: usize) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_size` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fileloader` [INFO] [stdout] --> src/music/music_stub.rs:10:25 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn load(&mut self, fileloader: &mut impl FileLoader, filename: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_fileloader` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `filename` [INFO] [stdout] --> src/music/music_stub.rs:10:59 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn load(&mut self, fileloader: &mut impl FileLoader, filename: &str) -> bool { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_filename` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fileloader` [INFO] [stdout] --> src/sound/sound_stub.rs:13:25 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn load(&mut self, fileloader: &mut impl FileLoader, name: &str, number: u16) -> bool { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_fileloader` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/sound/sound_stub.rs:13:59 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn load(&mut self, fileloader: &mut impl FileLoader, name: &str, number: u16) -> bool { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `number` [INFO] [stdout] --> src/sound/sound_stub.rs:13:71 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn load(&mut self, fileloader: &mut impl FileLoader, name: &str, number: u16) -> bool { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_number` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `old_sound` [INFO] [stdout] --> src/sound/sound_bank.rs:34:15 [INFO] [stdout] | [INFO] [stdout] 34 | if let Some(old_sound) = self.sound_pools.insert(name.to_string(), sound_pool) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_old_sound` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/sound/sound_bank.rs:166:7 [INFO] [stdout] | [INFO] [stdout] 166 | for e in 0..ne { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `drop_mode` [INFO] [stdout] --> src/sound/sound_bank.rs:204:8 [INFO] [stdout] | [INFO] [stdout] 204 | let drop_mode = f.read_u16(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_drop_mode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `flags` [INFO] [stdout] --> src/sound/sound_bank.rs:205:8 [INFO] [stdout] | [INFO] [stdout] 205 | let flags = f.read_u32(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_flags` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time` [INFO] [stdout] --> src/wav_player.rs:34:37 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn set_current_time(&mut self, time: f64) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pos` [INFO] [stdout] --> src/fileloader.rs:53:21 [INFO] [stdout] | [INFO] [stdout] 53 | fn seek(&mut self, pos: SeekFrom) -> std::io::Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_pos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `capture_buffer` and `sound_bank` are never read [INFO] [stdout] --> src/audio/audio_stub.rs:12:2 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct AudioStub { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 11 | last_now: Instant, [INFO] [stdout] 12 | capture_buffer: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 13 | sound_bank: SoundBank, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AudioStub` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/audio/audio_stub.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 16 | impl AudioStub { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn start(&mut self) {} [INFO] [stdout] | ^^^^^ [INFO] [stdout] 27 | [INFO] [stdout] 28 | pub fn get_sound_bank_mut(&mut self) -> &mut SoundBank { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn fill_buffer( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn drain_buffer(_consumer: &mut ringbuf::Consumer) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | pub fn load_music(&mut self, _fileloader: &mut impl FileLoader, _filename: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn capture(&mut self, size: usize) {} [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 49 | [INFO] [stdout] 50 | pub fn capture_buffer_slice(&self) -> &[f32] { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MusicStub` is never constructed [INFO] [stdout] --> src/music/music_stub.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct MusicStub {} [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MusicStub` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `load`, `play`, `pause`, `stop`, and `update` are never used [INFO] [stdout] --> src/music/music_stub.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 6 | impl MusicStub { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 7 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 10 | pub fn load(&mut self, fileloader: &mut impl FileLoader, filename: &str) -> bool { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 14 | pub fn play(&mut self) {} [INFO] [stdout] | ^^^^ [INFO] [stdout] 15 | [INFO] [stdout] 16 | pub fn pause(&mut self) {} [INFO] [stdout] | ^^^^^ [INFO] [stdout] 17 | [INFO] [stdout] 18 | pub fn stop(&mut self) {} [INFO] [stdout] | ^^^^ [INFO] [stdout] 19 | [INFO] [stdout] 20 | pub fn update(&mut self, _time_step: f64) {} [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Drop` is never constructed [INFO] [stdout] --> src/sound/sound_bank.rs:95:2 [INFO] [stdout] | [INFO] [stdout] 94 | pub enum DropMode { [INFO] [stdout] | -------- variant in this enum [INFO] [stdout] 95 | Drop, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DropMode` 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: fields `id_crc`, `drop_mode`, and `do_loop` are never read [INFO] [stdout] --> src/sound/sound_bank.rs:102:2 [INFO] [stdout] | [INFO] [stdout] 100 | pub struct Entry { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 101 | id: String, [INFO] [stdout] 102 | id_crc: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 105 | drop_mode: DropMode, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 106 | do_loop: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Entry` 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: enum `DropMode` is never used [INFO] [stdout] --> src/sound/drop_mode.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum DropMode { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DropMode` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/wav_file.rs:113:26 [INFO] [stdout] | [INFO] [stdout] 113 | let w = unsafe { std::mem::transmute::(w) }; [INFO] [stdout] | -------------------------------^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `u16::cast_signed` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unnecessary_transmutes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling oml-audio v0.8.8-alpha (/opt/rustwide/workdir) [INFO] [stdout] warning: unexpected `cfg` condition name: `use_apple` [INFO] [stdout] --> src/audio.rs:1:7 [INFO] [stdout] | [INFO] [stdout] 1 | #[cfg(use_apple)] [INFO] [stdout] | ^^^^^^^^^ help: found config with similar value: `feature = "use_apple"` [INFO] [stdout] | [INFO] [stdout] = help: expected names are: `docsrs`, `feature`, and `test` and 31 more [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(use_apple)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(use_apple)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `use_apple` [INFO] [stdout] --> src/audio.rs:3:7 [INFO] [stdout] | [INFO] [stdout] 3 | #[cfg(use_apple)] [INFO] [stdout] | ^^^^^^^^^ help: found config with similar value: `feature = "use_apple"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(use_apple)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(use_apple)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `use_miniaudio` [INFO] [stdout] --> src/audio.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | #[cfg(use_miniaudio)] [INFO] [stdout] | ^^^^^^^^^^^^^ help: found config with similar value: `feature = "use_miniaudio"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(use_miniaudio)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(use_miniaudio)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `use_miniaudio` [INFO] [stdout] --> src/audio.rs:8:7 [INFO] [stdout] | [INFO] [stdout] 8 | #[cfg(use_miniaudio)] [INFO] [stdout] | ^^^^^^^^^^^^^ help: found config with similar value: `feature = "use_miniaudio"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(use_miniaudio)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(use_miniaudio)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `use_stub` [INFO] [stdout] --> src/audio.rs:11:7 [INFO] [stdout] | [INFO] [stdout] 11 | #[cfg(use_stub)] [INFO] [stdout] | ^^^^^^^^ help: found config with similar value: `feature = "use_stub"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(use_stub)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(use_stub)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `use_stub` [INFO] [stdout] --> src/audio.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 13 | #[cfg(use_stub)] [INFO] [stdout] | ^^^^^^^^ help: found config with similar value: `feature = "use_stub"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(use_stub)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(use_stub)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::music::MusicStub` [INFO] [stdout] --> src/audio/audio_stub.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::music::MusicStub; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `use_apple` [INFO] [stdout] --> src/audio.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | #[cfg(use_apple)] [INFO] [stdout] | ^^^^^^^^^ help: found config with similar value: `feature = "use_apple"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(use_apple)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(use_apple)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `use_miniaudio` [INFO] [stdout] --> src/audio.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | #[cfg(use_miniaudio)] [INFO] [stdout] | ^^^^^^^^^^^^^ help: found config with similar value: `feature = "use_miniaudio"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(use_miniaudio)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(use_miniaudio)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `use_stub` [INFO] [stdout] --> src/audio.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | #[cfg(use_stub)] [INFO] [stdout] | ^^^^^^^^ help: found config with similar value: `feature = "use_stub"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(use_stub)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(use_stub)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `use_apple` [INFO] [stdout] --> src/audio.rs:54:10 [INFO] [stdout] | [INFO] [stdout] 54 | #[cfg(use_apple)] [INFO] [stdout] | ^^^^^^^^^ help: found config with similar value: `feature = "use_apple"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(use_apple)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(use_apple)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `use_miniaudio` [INFO] [stdout] --> src/audio.rs:56:10 [INFO] [stdout] | [INFO] [stdout] 56 | #[cfg(use_miniaudio)] [INFO] [stdout] | ^^^^^^^^^^^^^ help: found config with similar value: `feature = "use_miniaudio"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(use_miniaudio)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(use_miniaudio)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `use_stub` [INFO] [stdout] --> src/audio.rs:58:10 [INFO] [stdout] | [INFO] [stdout] 58 | #[cfg(use_stub)] [INFO] [stdout] | ^^^^^^^^ help: found config with similar value: `feature = "use_stub"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(use_stub)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(use_stub)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `use_stub` [INFO] [stdout] --> src/audio.rs:60:14 [INFO] [stdout] | [INFO] [stdout] 60 | #[cfg(not(use_stub))] [INFO] [stdout] | ^^^^^^^^ help: found config with similar value: `feature = "use_stub"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(use_stub)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(use_stub)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `use_apple` [INFO] [stdout] --> src/music.rs:1:7 [INFO] [stdout] | [INFO] [stdout] 1 | #[cfg(use_apple)] [INFO] [stdout] | ^^^^^^^^^ help: found config with similar value: `feature = "use_apple"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(use_apple)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(use_apple)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `use_apple` [INFO] [stdout] --> src/music.rs:3:7 [INFO] [stdout] | [INFO] [stdout] 3 | #[cfg(use_apple)] [INFO] [stdout] | ^^^^^^^^^ help: found config with similar value: `feature = "use_apple"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(use_apple)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(use_apple)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `use_miniaudio` [INFO] [stdout] --> src/music.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | #[cfg(use_miniaudio)] [INFO] [stdout] | ^^^^^^^^^^^^^ help: found config with similar value: `feature = "use_miniaudio"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(use_miniaudio)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(use_miniaudio)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `use_miniaudio` [INFO] [stdout] --> src/music.rs:8:7 [INFO] [stdout] | [INFO] [stdout] 8 | #[cfg(use_miniaudio)] [INFO] [stdout] | ^^^^^^^^^^^^^ help: found config with similar value: `feature = "use_miniaudio"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(use_miniaudio)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(use_miniaudio)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `use_stub` [INFO] [stdout] --> src/music.rs:11:7 [INFO] [stdout] | [INFO] [stdout] 11 | #[cfg(use_stub)] [INFO] [stdout] | ^^^^^^^^ help: found config with similar value: `feature = "use_stub"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(use_stub)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(use_stub)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `use_stub` [INFO] [stdout] --> src/music.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 13 | #[cfg(use_stub)] [INFO] [stdout] | ^^^^^^^^ help: found config with similar value: `feature = "use_stub"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(use_stub)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(use_stub)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `drop_mode::DropMode` [INFO] [stdout] --> src/sound.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | pub use drop_mode::DropMode; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/fileloader.rs:55:3 [INFO] [stdout] | [INFO] [stdout] 54 | todo!("seek"); [INFO] [stdout] | ------------- any code following this expression is unreachable [INFO] [stdout] 55 | eprintln!("Seeking {:?}", &pos); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] = note: this warning originates in the macro `eprintln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/fileloader.rs:60:5 [INFO] [stdout] | [INFO] [stdout] 59 | panic!("SeekFrom::End not supported {}", delta); [INFO] [stdout] | ----------------------------------------------- any code following this expression is unreachable [INFO] [stdout] 60 | 0 [INFO] [stdout] | ^ unreachable expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `size` [INFO] [stdout] --> src/audio/audio_stub.rs:48:28 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn capture(&mut self, size: usize) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_size` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fileloader` [INFO] [stdout] --> src/music/music_stub.rs:10:25 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn load(&mut self, fileloader: &mut impl FileLoader, filename: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_fileloader` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `filename` [INFO] [stdout] --> src/music/music_stub.rs:10:59 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn load(&mut self, fileloader: &mut impl FileLoader, filename: &str) -> bool { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_filename` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fileloader` [INFO] [stdout] --> src/sound/sound_stub.rs:13:25 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn load(&mut self, fileloader: &mut impl FileLoader, name: &str, number: u16) -> bool { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_fileloader` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/sound/sound_stub.rs:13:59 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn load(&mut self, fileloader: &mut impl FileLoader, name: &str, number: u16) -> bool { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `number` [INFO] [stdout] --> src/sound/sound_stub.rs:13:71 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn load(&mut self, fileloader: &mut impl FileLoader, name: &str, number: u16) -> bool { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_number` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `old_sound` [INFO] [stdout] --> src/sound/sound_bank.rs:34:15 [INFO] [stdout] | [INFO] [stdout] 34 | if let Some(old_sound) = self.sound_pools.insert(name.to_string(), sound_pool) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_old_sound` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `COIN_REPEAT` should have a snake case name [INFO] [stdout] --> src/oml_audio_main.rs:30:6 [INFO] [stdout] | [INFO] [stdout] 30 | let COIN_REPEAT = 0.5; [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `coin_repeat` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `POWERUP_REPEAT` should have a snake case name [INFO] [stdout] --> src/oml_audio_main.rs:33:6 [INFO] [stdout] | [INFO] [stdout] 33 | let POWERUP_REPEAT = 3.1; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `powerup_repeat` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/sound/sound_bank.rs:166:7 [INFO] [stdout] | [INFO] [stdout] 166 | for e in 0..ne { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `drop_mode` [INFO] [stdout] --> src/sound/sound_bank.rs:204:8 [INFO] [stdout] | [INFO] [stdout] 204 | let drop_mode = f.read_u16(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_drop_mode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `flags` [INFO] [stdout] --> src/sound/sound_bank.rs:205:8 [INFO] [stdout] | [INFO] [stdout] 205 | let flags = f.read_u32(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_flags` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `time` [INFO] [stdout] --> src/wav_player.rs:34:37 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn set_current_time(&mut self, time: f64) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pos` [INFO] [stdout] --> src/fileloader.rs:53:21 [INFO] [stdout] | [INFO] [stdout] 53 | fn seek(&mut self, pos: SeekFrom) -> std::io::Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_pos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `capture_buffer` and `sound_bank` are never read [INFO] [stdout] --> src/audio/audio_stub.rs:12:2 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct AudioStub { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 11 | last_now: Instant, [INFO] [stdout] 12 | capture_buffer: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 13 | sound_bank: SoundBank, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AudioStub` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/audio/audio_stub.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 16 | impl AudioStub { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn start(&mut self) {} [INFO] [stdout] | ^^^^^ [INFO] [stdout] 27 | [INFO] [stdout] 28 | pub fn get_sound_bank_mut(&mut self) -> &mut SoundBank { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn fill_buffer( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn drain_buffer(_consumer: &mut ringbuf::Consumer) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | pub fn load_music(&mut self, _fileloader: &mut impl FileLoader, _filename: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn capture(&mut self, size: usize) {} [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 49 | [INFO] [stdout] 50 | pub fn capture_buffer_slice(&self) -> &[f32] { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MusicStub` is never constructed [INFO] [stdout] --> src/music/music_stub.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct MusicStub {} [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MusicStub` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `load`, `play`, `pause`, `stop`, and `update` are never used [INFO] [stdout] --> src/music/music_stub.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 6 | impl MusicStub { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 7 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 10 | pub fn load(&mut self, fileloader: &mut impl FileLoader, filename: &str) -> bool { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 14 | pub fn play(&mut self) {} [INFO] [stdout] | ^^^^ [INFO] [stdout] 15 | [INFO] [stdout] 16 | pub fn pause(&mut self) {} [INFO] [stdout] | ^^^^^ [INFO] [stdout] 17 | [INFO] [stdout] 18 | pub fn stop(&mut self) {} [INFO] [stdout] | ^^^^ [INFO] [stdout] 19 | [INFO] [stdout] 20 | pub fn update(&mut self, _time_step: f64) {} [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Drop` is never constructed [INFO] [stdout] --> src/sound/sound_bank.rs:95:2 [INFO] [stdout] | [INFO] [stdout] 94 | pub enum DropMode { [INFO] [stdout] | -------- variant in this enum [INFO] [stdout] 95 | Drop, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DropMode` 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: fields `id_crc`, `drop_mode`, and `do_loop` are never read [INFO] [stdout] --> src/sound/sound_bank.rs:102:2 [INFO] [stdout] | [INFO] [stdout] 100 | pub struct Entry { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 101 | id: String, [INFO] [stdout] 102 | id_crc: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 105 | drop_mode: DropMode, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 106 | do_loop: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Entry` 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: enum `DropMode` is never used [INFO] [stdout] --> src/sound/drop_mode.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum DropMode { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DropMode` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/wav_file.rs:113:26 [INFO] [stdout] | [INFO] [stdout] 113 | let w = unsafe { std::mem::transmute::(w) }; [INFO] [stdout] | -------------------------------^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `u16::cast_signed` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unnecessary_transmutes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.88s [INFO] running `Command { std: "docker" "inspect" "b14a04f4c50abdc3ed0a4394b84b2d1c3ce03018d2e8dea975b1fa18679b8376", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b14a04f4c50abdc3ed0a4394b84b2d1c3ce03018d2e8dea975b1fa18679b8376", kill_on_drop: false }` [INFO] [stdout] b14a04f4c50abdc3ed0a4394b84b2d1c3ce03018d2e8dea975b1fa18679b8376 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 30c8557a5a66f047c8297273b482615d9bfdf193cb86bf34e2bd109e7507eee3 [INFO] running `Command { std: "docker" "start" "-a" "30c8557a5a66f047c8297273b482615d9bfdf193cb86bf34e2bd109e7507eee3", kill_on_drop: false }` [INFO] [stderr] warning: unexpected `cfg` condition name: `use_apple` [INFO] [stderr] --> src/audio.rs:1:7 [INFO] [stderr] | [INFO] [stderr] 1 | #[cfg(use_apple)] [INFO] [stderr] | ^^^^^^^^^ help: found config with similar value: `feature = "use_apple"` [INFO] [stderr] | [INFO] [stderr] = help: expected names are: `docsrs`, `feature`, and `test` and 31 more [INFO] [stderr] = help: consider using a Cargo feature instead [INFO] [stderr] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stderr] [lints.rust] [INFO] [stderr] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(use_apple)'] } [INFO] [stderr] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(use_apple)");` to the top of the `build.rs` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition name: `use_apple` [INFO] [stderr] --> src/audio.rs:3:7 [INFO] [stderr] | [INFO] [stderr] 3 | #[cfg(use_apple)] [INFO] [stderr] | ^^^^^^^^^ help: found config with similar value: `feature = "use_apple"` [INFO] [stderr] | [INFO] [stderr] = help: consider using a Cargo feature instead [INFO] [stderr] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stderr] [lints.rust] [INFO] [stderr] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(use_apple)'] } [INFO] [stderr] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(use_apple)");` to the top of the `build.rs` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition name: `use_miniaudio` [INFO] [stderr] --> src/audio.rs:6:7 [INFO] [stderr] | [INFO] [stderr] 6 | #[cfg(use_miniaudio)] [INFO] [stderr] | ^^^^^^^^^^^^^ help: found config with similar value: `feature = "use_miniaudio"` [INFO] [stderr] | [INFO] [stderr] = help: consider using a Cargo feature instead [INFO] [stderr] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stderr] [lints.rust] [INFO] [stderr] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(use_miniaudio)'] } [INFO] [stderr] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(use_miniaudio)");` to the top of the `build.rs` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition name: `use_miniaudio` [INFO] [stderr] --> src/audio.rs:8:7 [INFO] [stderr] | [INFO] [stderr] 8 | #[cfg(use_miniaudio)] [INFO] [stderr] | ^^^^^^^^^^^^^ help: found config with similar value: `feature = "use_miniaudio"` [INFO] [stderr] | [INFO] [stderr] = help: consider using a Cargo feature instead [INFO] [stderr] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stderr] [lints.rust] [INFO] [stderr] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(use_miniaudio)'] } [INFO] [stderr] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(use_miniaudio)");` to the top of the `build.rs` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition name: `use_stub` [INFO] [stderr] --> src/audio.rs:11:7 [INFO] [stderr] | [INFO] [stderr] 11 | #[cfg(use_stub)] [INFO] [stderr] | ^^^^^^^^ help: found config with similar value: `feature = "use_stub"` [INFO] [stderr] | [INFO] [stderr] = help: consider using a Cargo feature instead [INFO] [stderr] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stderr] [lints.rust] [INFO] [stderr] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(use_stub)'] } [INFO] [stderr] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(use_stub)");` to the top of the `build.rs` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition name: `use_stub` [INFO] [stderr] --> src/audio.rs:13:7 [INFO] [stderr] | [INFO] [stderr] 13 | #[cfg(use_stub)] [INFO] [stderr] | ^^^^^^^^ help: found config with similar value: `feature = "use_stub"` [INFO] [stderr] | [INFO] [stderr] = help: consider using a Cargo feature instead [INFO] [stderr] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stderr] [lints.rust] [INFO] [stderr] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(use_stub)'] } [INFO] [stderr] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(use_stub)");` to the top of the `build.rs` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] [INFO] [stderr] warning: unused import: `crate::music::MusicStub` [INFO] [stderr] --> src/audio/audio_stub.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use crate::music::MusicStub; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition name: `use_apple` [INFO] [stderr] --> src/audio.rs:38:9 [INFO] [stderr] | [INFO] [stderr] 38 | #[cfg(use_apple)] [INFO] [stderr] | ^^^^^^^^^ help: found config with similar value: `feature = "use_apple"` [INFO] [stderr] | [INFO] [stderr] = help: consider using a Cargo feature instead [INFO] [stderr] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stderr] [lints.rust] [INFO] [stderr] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(use_apple)'] } [INFO] [stderr] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(use_apple)");` to the top of the `build.rs` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition name: `use_miniaudio` [INFO] [stderr] --> src/audio.rs:42:9 [INFO] [stderr] | [INFO] [stderr] 42 | #[cfg(use_miniaudio)] [INFO] [stderr] | ^^^^^^^^^^^^^ help: found config with similar value: `feature = "use_miniaudio"` [INFO] [stderr] | [INFO] [stderr] = help: consider using a Cargo feature instead [INFO] [stderr] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stderr] [lints.rust] [INFO] [stderr] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(use_miniaudio)'] } [INFO] [stderr] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(use_miniaudio)");` to the top of the `build.rs` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition name: `use_stub` [INFO] [stderr] --> src/audio.rs:46:9 [INFO] [stderr] | [INFO] [stderr] 46 | #[cfg(use_stub)] [INFO] [stderr] | ^^^^^^^^ help: found config with similar value: `feature = "use_stub"` [INFO] [stderr] | [INFO] [stderr] = help: consider using a Cargo feature instead [INFO] [stderr] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stderr] [lints.rust] [INFO] [stderr] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(use_stub)'] } [INFO] [stderr] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(use_stub)");` to the top of the `build.rs` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition name: `use_apple` [INFO] [stderr] --> src/audio.rs:54:10 [INFO] [stderr] | [INFO] [stderr] 54 | #[cfg(use_apple)] [INFO] [stderr] | ^^^^^^^^^ help: found config with similar value: `feature = "use_apple"` [INFO] [stderr] | [INFO] [stderr] = help: consider using a Cargo feature instead [INFO] [stderr] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stderr] [lints.rust] [INFO] [stderr] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(use_apple)'] } [INFO] [stderr] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(use_apple)");` to the top of the `build.rs` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition name: `use_miniaudio` [INFO] [stderr] --> src/audio.rs:56:10 [INFO] [stderr] | [INFO] [stderr] 56 | #[cfg(use_miniaudio)] [INFO] [stderr] | ^^^^^^^^^^^^^ help: found config with similar value: `feature = "use_miniaudio"` [INFO] [stderr] | [INFO] [stderr] = help: consider using a Cargo feature instead [INFO] [stderr] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stderr] [lints.rust] [INFO] [stderr] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(use_miniaudio)'] } [INFO] [stderr] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(use_miniaudio)");` to the top of the `build.rs` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition name: `use_stub` [INFO] [stderr] --> src/audio.rs:58:10 [INFO] [stderr] | [INFO] [stderr] 58 | #[cfg(use_stub)] [INFO] [stderr] | ^^^^^^^^ help: found config with similar value: `feature = "use_stub"` [INFO] [stderr] | [INFO] [stderr] = help: consider using a Cargo feature instead [INFO] [stderr] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stderr] [lints.rust] [INFO] [stderr] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(use_stub)'] } [INFO] [stderr] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(use_stub)");` to the top of the `build.rs` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition name: `use_stub` [INFO] [stderr] --> src/audio.rs:60:14 [INFO] [stderr] | [INFO] [stderr] 60 | #[cfg(not(use_stub))] [INFO] [stderr] | ^^^^^^^^ help: found config with similar value: `feature = "use_stub"` [INFO] [stderr] | [INFO] [stderr] = help: consider using a Cargo feature instead [INFO] [stderr] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stderr] [lints.rust] [INFO] [stderr] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(use_stub)'] } [INFO] [stderr] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(use_stub)");` to the top of the `build.rs` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition name: `use_apple` [INFO] [stderr] --> src/music.rs:1:7 [INFO] [stderr] | [INFO] [stderr] 1 | #[cfg(use_apple)] [INFO] [stderr] | ^^^^^^^^^ help: found config with similar value: `feature = "use_apple"` [INFO] [stderr] | [INFO] [stderr] = help: consider using a Cargo feature instead [INFO] [stderr] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stderr] [lints.rust] [INFO] [stderr] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(use_apple)'] } [INFO] [stderr] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(use_apple)");` to the top of the `build.rs` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition name: `use_apple` [INFO] [stderr] --> src/music.rs:3:7 [INFO] [stderr] | [INFO] [stderr] 3 | #[cfg(use_apple)] [INFO] [stderr] | ^^^^^^^^^ help: found config with similar value: `feature = "use_apple"` [INFO] [stderr] | [INFO] [stderr] = help: consider using a Cargo feature instead [INFO] [stderr] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stderr] [lints.rust] [INFO] [stderr] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(use_apple)'] } [INFO] [stderr] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(use_apple)");` to the top of the `build.rs` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition name: `use_miniaudio` [INFO] [stderr] --> src/music.rs:6:7 [INFO] [stderr] | [INFO] [stderr] 6 | #[cfg(use_miniaudio)] [INFO] [stderr] | ^^^^^^^^^^^^^ help: found config with similar value: `feature = "use_miniaudio"` [INFO] [stderr] | [INFO] [stderr] = help: consider using a Cargo feature instead [INFO] [stderr] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stderr] [lints.rust] [INFO] [stderr] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(use_miniaudio)'] } [INFO] [stderr] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(use_miniaudio)");` to the top of the `build.rs` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition name: `use_miniaudio` [INFO] [stderr] --> src/music.rs:8:7 [INFO] [stderr] | [INFO] [stderr] 8 | #[cfg(use_miniaudio)] [INFO] [stderr] | ^^^^^^^^^^^^^ help: found config with similar value: `feature = "use_miniaudio"` [INFO] [stderr] | [INFO] [stderr] = help: consider using a Cargo feature instead [INFO] [stderr] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stderr] [lints.rust] [INFO] [stderr] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(use_miniaudio)'] } [INFO] [stderr] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(use_miniaudio)");` to the top of the `build.rs` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition name: `use_stub` [INFO] [stderr] --> src/music.rs:11:7 [INFO] [stderr] | [INFO] [stderr] 11 | #[cfg(use_stub)] [INFO] [stderr] | ^^^^^^^^ help: found config with similar value: `feature = "use_stub"` [INFO] [stderr] | [INFO] [stderr] = help: consider using a Cargo feature instead [INFO] [stderr] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stderr] [lints.rust] [INFO] [stderr] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(use_stub)'] } [INFO] [stderr] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(use_stub)");` to the top of the `build.rs` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition name: `use_stub` [INFO] [stderr] --> src/music.rs:13:7 [INFO] [stderr] | [INFO] [stderr] 13 | #[cfg(use_stub)] [INFO] [stderr] | ^^^^^^^^ help: found config with similar value: `feature = "use_stub"` [INFO] [stderr] | [INFO] [stderr] = help: consider using a Cargo feature instead [INFO] [stderr] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stderr] [lints.rust] [INFO] [stderr] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(use_stub)'] } [INFO] [stderr] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(use_stub)");` to the top of the `build.rs` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] [INFO] [stderr] warning: unused import: `drop_mode::DropMode` [INFO] [stderr] --> src/sound.rs:30:9 [INFO] [stderr] | [INFO] [stderr] 30 | pub use drop_mode::DropMode; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unreachable statement [INFO] [stderr] --> src/fileloader.rs:55:3 [INFO] [stderr] | [INFO] [stderr] 54 | todo!("seek"); [INFO] [stderr] | ------------- any code following this expression is unreachable [INFO] [stderr] 55 | eprintln!("Seeking {:?}", &pos); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unreachable_code)]` on by default [INFO] [stderr] = note: this warning originates in the macro `eprintln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unreachable expression [INFO] [stderr] --> src/fileloader.rs:60:5 [INFO] [stderr] | [INFO] [stderr] 59 | panic!("SeekFrom::End not supported {}", delta); [INFO] [stderr] | ----------------------------------------------- any code following this expression is unreachable [INFO] [stderr] 60 | 0 [INFO] [stderr] | ^ unreachable expression [INFO] [stderr] [INFO] [stderr] warning: unused variable: `size` [INFO] [stderr] --> src/audio/audio_stub.rs:48:28 [INFO] [stderr] | [INFO] [stderr] 48 | pub fn capture(&mut self, size: usize) {} [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_size` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `fileloader` [INFO] [stderr] --> src/music/music_stub.rs:10:25 [INFO] [stderr] | [INFO] [stderr] 10 | pub fn load(&mut self, fileloader: &mut impl FileLoader, filename: &str) -> bool { [INFO] [stderr] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_fileloader` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `filename` [INFO] [stderr] --> src/music/music_stub.rs:10:59 [INFO] [stderr] | [INFO] [stderr] 10 | pub fn load(&mut self, fileloader: &mut impl FileLoader, filename: &str) -> bool { [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_filename` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `fileloader` [INFO] [stderr] --> src/sound/sound_stub.rs:13:25 [INFO] [stderr] | [INFO] [stderr] 13 | pub fn load(&mut self, fileloader: &mut impl FileLoader, name: &str, number: u16) -> bool { [INFO] [stderr] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_fileloader` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `name` [INFO] [stderr] --> src/sound/sound_stub.rs:13:59 [INFO] [stderr] | [INFO] [stderr] 13 | pub fn load(&mut self, fileloader: &mut impl FileLoader, name: &str, number: u16) -> bool { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `number` [INFO] [stderr] --> src/sound/sound_stub.rs:13:71 [INFO] [stderr] | [INFO] [stderr] 13 | pub fn load(&mut self, fileloader: &mut impl FileLoader, name: &str, number: u16) -> bool { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_number` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `old_sound` [INFO] [stderr] --> src/sound/sound_bank.rs:34:15 [INFO] [stderr] | [INFO] [stderr] 34 | if let Some(old_sound) = self.sound_pools.insert(name.to_string(), sound_pool) { [INFO] [stderr] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_old_sound` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `e` [INFO] [stderr] --> src/sound/sound_bank.rs:166:7 [INFO] [stderr] | [INFO] [stderr] 166 | for e in 0..ne { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `drop_mode` [INFO] [stderr] --> src/sound/sound_bank.rs:204:8 [INFO] [stderr] | [INFO] [stderr] 204 | let drop_mode = f.read_u16(); [INFO] [stderr] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_drop_mode` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `flags` [INFO] [stderr] --> src/sound/sound_bank.rs:205:8 [INFO] [stderr] | [INFO] [stderr] 205 | let flags = f.read_u32(); [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_flags` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `time` [INFO] [stderr] --> src/wav_player.rs:34:37 [INFO] [stderr] | [INFO] [stderr] 34 | pub fn set_current_time(&mut self, time: f64) { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_time` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `pos` [INFO] [stderr] --> src/fileloader.rs:53:21 [INFO] [stderr] | [INFO] [stderr] 53 | fn seek(&mut self, pos: SeekFrom) -> std::io::Result { [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_pos` [INFO] [stderr] [INFO] [stderr] warning: fields `capture_buffer` and `sound_bank` are never read [INFO] [stderr] --> src/audio/audio_stub.rs:12:2 [INFO] [stderr] | [INFO] [stderr] 10 | pub struct AudioStub { [INFO] [stderr] | --------- fields in this struct [INFO] [stderr] 11 | last_now: Instant, [INFO] [stderr] 12 | capture_buffer: Vec, [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] 13 | sound_bank: SoundBank, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `AudioStub` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: multiple associated items are never used [INFO] [stderr] --> src/audio/audio_stub.rs:26:9 [INFO] [stderr] | [INFO] [stderr] 16 | impl AudioStub { [INFO] [stderr] | -------------- associated items in this implementation [INFO] [stderr] ... [INFO] [stderr] 26 | pub fn start(&mut self) {} [INFO] [stderr] | ^^^^^ [INFO] [stderr] 27 | [INFO] [stderr] 28 | pub fn get_sound_bank_mut(&mut self) -> &mut SoundBank { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 32 | pub fn fill_buffer( [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 39 | pub fn drain_buffer(_consumer: &mut ringbuf::Consumer) -> usize { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 43 | pub fn load_music(&mut self, _fileloader: &mut impl FileLoader, _filename: &str) -> bool { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 48 | pub fn capture(&mut self, size: usize) {} [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] 49 | [INFO] [stderr] 50 | pub fn capture_buffer_slice(&self) -> &[f32] { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `MusicStub` is never constructed [INFO] [stderr] --> src/music/music_stub.rs:4:12 [INFO] [stderr] | [INFO] [stderr] 4 | pub struct MusicStub {} [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `MusicStub` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: associated items `new`, `load`, `play`, `pause`, `stop`, and `update` are never used [INFO] [stderr] --> src/music/music_stub.rs:7:9 [INFO] [stderr] | [INFO] [stderr] 6 | impl MusicStub { [INFO] [stderr] | -------------- associated items in this implementation [INFO] [stderr] 7 | pub fn new() -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 10 | pub fn load(&mut self, fileloader: &mut impl FileLoader, filename: &str) -> bool { [INFO] [stderr] | ^^^^ [INFO] [stderr] ... [INFO] [stderr] 14 | pub fn play(&mut self) {} [INFO] [stderr] | ^^^^ [INFO] [stderr] 15 | [INFO] [stderr] 16 | pub fn pause(&mut self) {} [INFO] [stderr] | ^^^^^ [INFO] [stderr] 17 | [INFO] [stderr] 18 | pub fn stop(&mut self) {} [INFO] [stderr] | ^^^^ [INFO] [stderr] 19 | [INFO] [stderr] 20 | pub fn update(&mut self, _time_step: f64) {} [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variant `Drop` is never constructed [INFO] [stderr] --> src/sound/sound_bank.rs:95:2 [INFO] [stderr] | [INFO] [stderr] 94 | pub enum DropMode { [INFO] [stderr] | -------- variant in this enum [INFO] [stderr] 95 | Drop, [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `DropMode` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: fields `id_crc`, `drop_mode`, and `do_loop` are never read [INFO] [stderr] --> src/sound/sound_bank.rs:102:2 [INFO] [stderr] | [INFO] [stderr] 100 | pub struct Entry { [INFO] [stderr] | ----- fields in this struct [INFO] [stderr] 101 | id: String, [INFO] [stderr] 102 | id_crc: u32, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 105 | drop_mode: DropMode, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] 106 | do_loop: bool, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `Entry` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: enum `DropMode` is never used [INFO] [stderr] --> src/sound/drop_mode.rs:2:10 [INFO] [stderr] | [INFO] [stderr] 2 | pub enum DropMode { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `DropMode` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: unnecessary transmute [INFO] [stderr] --> src/wav_file.rs:113:26 [INFO] [stderr] | [INFO] [stderr] 113 | let w = unsafe { std::mem::transmute::(w) }; [INFO] [stderr] | -------------------------------^^^ [INFO] [stderr] | | [INFO] [stderr] | help: replace this with: `u16::cast_signed` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unnecessary_transmutes)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `oml-audio` (lib) generated 43 warnings (run `cargo fix --lib -p oml-audio` to apply 3 suggestions) [INFO] [stderr] warning: variable `COIN_REPEAT` should have a snake case name [INFO] [stderr] --> src/oml_audio_main.rs:30:6 [INFO] [stderr] | [INFO] [stderr] 30 | let COIN_REPEAT = 0.5; [INFO] [stderr] | ^^^^^^^^^^^ help: convert the identifier to snake case: `coin_repeat` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_snake_case)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable `POWERUP_REPEAT` should have a snake case name [INFO] [stderr] --> src/oml_audio_main.rs:33:6 [INFO] [stderr] | [INFO] [stderr] 33 | let POWERUP_REPEAT = 3.1; [INFO] [stderr] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `powerup_repeat` [INFO] [stderr] [INFO] [stderr] warning: `oml-audio` (bin "oml-audio" test) generated 2 warnings [INFO] [stderr] warning: `oml-audio` (lib test) generated 43 warnings (43 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.04s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/x86_64-unknown-linux-musl/debug/deps/oml_audio-4bdc8648c2f66a52) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s [INFO] [stdout] [INFO] [stderr] Running unittests src/oml_audio_main.rs (/opt/rustwide/target/x86_64-unknown-linux-musl/debug/deps/oml_audio-03832f9c17591ee9) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "30c8557a5a66f047c8297273b482615d9bfdf193cb86bf34e2bd109e7507eee3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "30c8557a5a66f047c8297273b482615d9bfdf193cb86bf34e2bd109e7507eee3", kill_on_drop: false }` [INFO] [stdout] 30c8557a5a66f047c8297273b482615d9bfdf193cb86bf34e2bd109e7507eee3