[INFO] fetching crate mixr 0.3.5... [INFO] checking mixr-0.3.5 against try#a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d for pr-145342-1 [INFO] extracting crate mixr 0.3.5 into /workspace/builds/worker-3-tc2/source [INFO] started tweaking crates.io crate mixr 0.3.5 [INFO] finished tweaking crates.io crate mixr 0.3.5 [INFO] tweaked toml for crates.io crate mixr 0.3.5 written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate mixr 0.3.5 on toolchain a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 7 packages to latest compatible versions [INFO] [stderr] Adding sdl2 v0.35.2 (available: v0.38.0) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 89cc1d62cea03c352b40b680e8cf4ad96c768932ffc0c3ee3fd123cbf5e0efc2 [INFO] running `Command { std: "docker" "start" "-a" "89cc1d62cea03c352b40b680e8cf4ad96c768932ffc0c3ee3fd123cbf5e0efc2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "89cc1d62cea03c352b40b680e8cf4ad96c768932ffc0c3ee3fd123cbf5e0efc2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "89cc1d62cea03c352b40b680e8cf4ad96c768932ffc0c3ee3fd123cbf5e0efc2", kill_on_drop: false }` [INFO] [stdout] 89cc1d62cea03c352b40b680e8cf4ad96c768932ffc0c3ee3fd123cbf5e0efc2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 27462abd6dec9748e222f2917047c19cb98e6b5c14872285775bfd4994bff4d8 [INFO] running `Command { std: "docker" "start" "-a" "27462abd6dec9748e222f2917047c19cb98e6b5c14872285775bfd4994bff4d8", kill_on_drop: false }` [INFO] [stderr] Compiling cfg-if v1.0.3 [INFO] [stderr] Compiling version-compare v0.1.1 [INFO] [stderr] Compiling libc v0.2.175 [INFO] [stderr] Compiling sdl2 v0.35.2 [INFO] [stderr] Checking lazy_static v1.5.0 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Checking mixr v0.3.5 (/opt/rustwide/workdir) [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/system.rs:114:13 [INFO] [stdout] | [INFO] [stdout] 114 | let mut i_buffer = self.buffers.get_mut(&buffer).ok_or(AudioError::new(AudioErrorType::InvalidBuffer))?; [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/system.rs:142:13 [INFO] [stdout] | [INFO] [stdout] 142 | let mut channel = &mut self.channels.get_mut(channel as usize).ok_or(AudioError::new(AudioErrorType::InvalidChannel))?; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/system.rs:151:13 [INFO] [stdout] | [INFO] [stdout] 151 | let mut channel = &mut self.channels.get_mut(channel as usize).ok_or(AudioError::new(AudioErrorType::InvalidChannel))?; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/system.rs:158:13 [INFO] [stdout] | [INFO] [stdout] 158 | let mut channel = &mut self.channels.get_mut(channel as usize).ok_or(AudioError::new(AudioErrorType::InvalidChannel))?; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/system.rs:165:13 [INFO] [stdout] | [INFO] [stdout] 165 | let mut channel = &mut self.channels.get_mut(channel as usize).ok_or(AudioError::new(AudioErrorType::InvalidChannel))?; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/system.rs:100:26 [INFO] [stdout] | [INFO] [stdout] 100 | pub fn delete_buffer(&mut self, buffer: i32) -> Result<(), AudioError> { [INFO] [stdout] | ^^^^^^^^^ the lifetime is elided here ---------- the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 100 | pub fn delete_buffer(&mut self, buffer: i32) -> Result<(), AudioError<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/system.rs:112:26 [INFO] [stdout] | [INFO] [stdout] 112 | pub fn update_buffer(&mut self, buffer: i32, data: &[u8], format: AudioFormat) -> Result<(), AudioError> { [INFO] [stdout] | ^^^^^^^^^ the lifetime is elided here ---------- the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 112 | pub fn update_buffer(&mut self, buffer: i32, data: &[u8], format: AudioFormat) -> Result<(), AudioError<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/system.rs:123:24 [INFO] [stdout] | [INFO] [stdout] 123 | pub fn play_buffer(&mut self, buffer: i32, channel: u16, properties: ChannelProperties) -> Result<(), AudioError> { [INFO] [stdout] | ^^^^^^^^^ the lifetime is elided here ---------- the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 123 | pub fn play_buffer(&mut self, buffer: i32, channel: u16, properties: ChannelProperties) -> Result<(), AudioError<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/system.rs:141:35 [INFO] [stdout] | [INFO] [stdout] 141 | pub fn set_channel_properties(&mut self, channel: u16, properties: ChannelProperties) -> Result<(), AudioError> { [INFO] [stdout] | ^^^^^^^^^ the lifetime is elided here ---------- the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 141 | pub fn set_channel_properties(&mut self, channel: u16, properties: ChannelProperties) -> Result<(), AudioError<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/system.rs:150:17 [INFO] [stdout] | [INFO] [stdout] 150 | pub fn play(&mut self, channel: u16) -> Result<(), AudioError> { [INFO] [stdout] | ^^^^^^^^^ the lifetime is elided here ---------- the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 150 | pub fn play(&mut self, channel: u16) -> Result<(), AudioError<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/system.rs:157:18 [INFO] [stdout] | [INFO] [stdout] 157 | pub fn pause(&mut self, channel: u16) -> Result<(), AudioError> { [INFO] [stdout] | ^^^^^^^^^ the lifetime is elided here ---------- the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 157 | pub fn pause(&mut self, channel: u16) -> Result<(), AudioError<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/system.rs:164:17 [INFO] [stdout] | [INFO] [stdout] 164 | pub fn stop(&mut self, channel: u16) -> Result<(), AudioError> { [INFO] [stdout] | ^^^^^^^^^ the lifetime is elided here ---------- the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 164 | pub fn stop(&mut self, channel: u16) -> Result<(), AudioError<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/system.rs:178:25 [INFO] [stdout] | [INFO] [stdout] 178 | pub fn queue_buffer(&mut self, buffer: i32, channel: u16) -> Result<(), AudioError> { [INFO] [stdout] | ^^^^^^^^^ the lifetime is elided here ---------- the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 178 | pub fn queue_buffer(&mut self, buffer: i32, channel: u16) -> Result<(), AudioError<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/system.rs:307:34 [INFO] [stdout] | [INFO] [stdout] 307 | pub fn get_available_channel(&self) -> Result { [INFO] [stdout] | ^^^^^ ---------- the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 307 | pub fn get_available_channel(&self) -> Result> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `Box::::from_raw` that must be used [INFO] [stdout] --> src/cmixr.rs:17:14 [INFO] [stdout] | [INFO] [stdout] 17 | unsafe { Box::from_raw(system) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: call `drop(Box::from_raw(ptr))` if you intend to drop the `Box` [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 17 | unsafe { let _ = Box::from_raw(system); }; [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling sdl2-sys v0.35.2 [INFO] [stdout] warning: unused variable: `length` [INFO] [stdout] --> tests/test_audio.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | let length = pcm1.data.len(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_length` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rate` [INFO] [stdout] --> tests/test_audio.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | let rate = pcm1.format.sample_rate; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_rate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `channel` [INFO] [stdout] --> tests/test_audio.rs:25:42 [INFO] [stdout] | [INFO] [stdout] 25 | system.set_buffer_finished_callback(|channel, buf| println!("{}", buf)); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_channel` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> tests/test_audio.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | let mut format: Option = None; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> tests/test_audio.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | system.update_buffer(buffer1, &pcm1.data, pcm1.format); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 34 | let _ = system.update_buffer(buffer1, &pcm1.data, pcm1.format); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> tests/test_audio.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | system.update_buffer(buffer2, &pcm2.data, pcm2.format); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 37 | let _ = system.update_buffer(buffer2, &pcm2.data, pcm2.format); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> tests/test_audio.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 39 | system.play_buffer(buffer1, 0, ChannelProperties { volume: 1.0, speed: 0.1, panning: 0.5, looping: false, interpolation_type: mixr::InterpolationType::Linear }); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 39 | let _ = system.play_buffer(buffer1, 0, ChannelProperties { volume: 1.0, speed: 0.1, panning: 0.5, looping: false, interpolation_type: mixr::InterpolationType::Linear }); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> tests/test_audio.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | system.queue_buffer(buffer2, 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 40 | let _ = system.queue_buffer(buffer2, 0); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/system.rs:114:13 [INFO] [stdout] | [INFO] [stdout] 114 | let mut i_buffer = self.buffers.get_mut(&buffer).ok_or(AudioError::new(AudioErrorType::InvalidBuffer))?; [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/system.rs:142:13 [INFO] [stdout] | [INFO] [stdout] 142 | let mut channel = &mut self.channels.get_mut(channel as usize).ok_or(AudioError::new(AudioErrorType::InvalidChannel))?; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/system.rs:151:13 [INFO] [stdout] | [INFO] [stdout] 151 | let mut channel = &mut self.channels.get_mut(channel as usize).ok_or(AudioError::new(AudioErrorType::InvalidChannel))?; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/system.rs:158:13 [INFO] [stdout] | [INFO] [stdout] 158 | let mut channel = &mut self.channels.get_mut(channel as usize).ok_or(AudioError::new(AudioErrorType::InvalidChannel))?; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/system.rs:165:13 [INFO] [stdout] | [INFO] [stdout] 165 | let mut channel = &mut self.channels.get_mut(channel as usize).ok_or(AudioError::new(AudioErrorType::InvalidChannel))?; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/system.rs:100:26 [INFO] [stdout] | [INFO] [stdout] 100 | pub fn delete_buffer(&mut self, buffer: i32) -> Result<(), AudioError> { [INFO] [stdout] | ^^^^^^^^^ the lifetime is elided here ---------- the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 100 | pub fn delete_buffer(&mut self, buffer: i32) -> Result<(), AudioError<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/system.rs:112:26 [INFO] [stdout] | [INFO] [stdout] 112 | pub fn update_buffer(&mut self, buffer: i32, data: &[u8], format: AudioFormat) -> Result<(), AudioError> { [INFO] [stdout] | ^^^^^^^^^ the lifetime is elided here ---------- the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 112 | pub fn update_buffer(&mut self, buffer: i32, data: &[u8], format: AudioFormat) -> Result<(), AudioError<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/system.rs:123:24 [INFO] [stdout] | [INFO] [stdout] 123 | pub fn play_buffer(&mut self, buffer: i32, channel: u16, properties: ChannelProperties) -> Result<(), AudioError> { [INFO] [stdout] | ^^^^^^^^^ the lifetime is elided here ---------- the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 123 | pub fn play_buffer(&mut self, buffer: i32, channel: u16, properties: ChannelProperties) -> Result<(), AudioError<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/system.rs:141:35 [INFO] [stdout] | [INFO] [stdout] 141 | pub fn set_channel_properties(&mut self, channel: u16, properties: ChannelProperties) -> Result<(), AudioError> { [INFO] [stdout] | ^^^^^^^^^ the lifetime is elided here ---------- the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 141 | pub fn set_channel_properties(&mut self, channel: u16, properties: ChannelProperties) -> Result<(), AudioError<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/system.rs:150:17 [INFO] [stdout] | [INFO] [stdout] 150 | pub fn play(&mut self, channel: u16) -> Result<(), AudioError> { [INFO] [stdout] | ^^^^^^^^^ the lifetime is elided here ---------- the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 150 | pub fn play(&mut self, channel: u16) -> Result<(), AudioError<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/system.rs:157:18 [INFO] [stdout] | [INFO] [stdout] 157 | pub fn pause(&mut self, channel: u16) -> Result<(), AudioError> { [INFO] [stdout] | ^^^^^^^^^ the lifetime is elided here ---------- the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 157 | pub fn pause(&mut self, channel: u16) -> Result<(), AudioError<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/system.rs:164:17 [INFO] [stdout] | [INFO] [stdout] 164 | pub fn stop(&mut self, channel: u16) -> Result<(), AudioError> { [INFO] [stdout] | ^^^^^^^^^ the lifetime is elided here ---------- the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 164 | pub fn stop(&mut self, channel: u16) -> Result<(), AudioError<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/system.rs:178:25 [INFO] [stdout] | [INFO] [stdout] 178 | pub fn queue_buffer(&mut self, buffer: i32, channel: u16) -> Result<(), AudioError> { [INFO] [stdout] | ^^^^^^^^^ the lifetime is elided here ---------- the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 178 | pub fn queue_buffer(&mut self, buffer: i32, channel: u16) -> Result<(), AudioError<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/system.rs:307:34 [INFO] [stdout] | [INFO] [stdout] 307 | pub fn get_available_channel(&self) -> Result { [INFO] [stdout] | ^^^^^ ---------- the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 307 | pub fn get_available_channel(&self) -> Result> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `buffer1` in this scope [INFO] [stdout] --> tests/test_streaming.rs:29:24 [INFO] [stdout] | [INFO] [stdout] 29 | system.play_buffer(buffer1, 0, ChannelProperties { volume: 1.0, speed: 0.1, panning: 0.5, looping: false, interpolation_type: mixr::I... [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `Box::::from_raw` that must be used [INFO] [stdout] --> src/cmixr.rs:17:14 [INFO] [stdout] | [INFO] [stdout] 17 | unsafe { Box::from_raw(system) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: call `drop(Box::from_raw(ptr))` if you intend to drop the `Box` [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 17 | unsafe { let _ = Box::from_raw(system); }; [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: the `#[register_tool]` attribute is an experimental feature [INFO] [stdout] --> tests/stb_vorbis.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | #![register_tool(c2rust)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #66079 for more information [INFO] [stdout] = help: add `#![feature(register_tool)]` to the crate attributes to enable [INFO] [stdout] = note: this compiler was built on 2025-08-13; consider upgrading it if it is out of date [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> tests/stb_vorbis.rs:2055:13 [INFO] [stdout] | [INFO] [stdout] 2055 | fresh22.as_mut_ptr() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ expected `*mut c_void`, found `*mut {integer}` [INFO] [stdout] | [INFO] [stdout] = note: expected raw pointer `*mut c_void` [INFO] [stdout] found raw pointer `*mut {integer}` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: `if` and `else` have incompatible types [INFO] [stdout] --> tests/stb_vorbis.rs:2779:9 [INFO] [stdout] | [INFO] [stdout] 2765 | let mut buf2: *mut libc::c_float = (if !((*f).alloc.alloc_buffer).is_null() { [INFO] [stdout] | _________________________________________- [INFO] [stdout] 2766 | |/ setup_temp_malloc( [INFO] [stdout] 2767 | || f, [INFO] [stdout] 2768 | || (n2 as libc::c_ulong) [INFO] [stdout] 2769 | || .wrapping_mul(::std::mem::size_of::() as libc::c_ulong) [INFO] [stdout] 2770 | || as libc::c_int, [INFO] [stdout] 2771 | || ) [INFO] [stdout] | ||_________- expected because of this [INFO] [stdout] ... | [INFO] [stdout] 2779 | | fresh26.as_mut_ptr() [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^ expected `*mut c_void`, found `*mut {integer}` [INFO] [stdout] 2780 | | }) as *mut libc::c_float; [INFO] [stdout] | |_______- `if` and `else` have incompatible types [INFO] [stdout] | [INFO] [stdout] = note: expected raw pointer `*mut c_void` [INFO] [stdout] found raw pointer `*mut {integer}` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate-level attribute should be in the root module [INFO] [stdout] --> tests/stb_vorbis.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | #![register_tool(c2rust)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_attributes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate-level attribute should be in the root module [INFO] [stdout] --> tests/stb_vorbis.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | #![feature(register_tool)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> tests/stb_vorbis.rs:2055:13 [INFO] [stdout] | [INFO] [stdout] 2055 | fresh22.as_mut_ptr() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ expected `*mut c_void`, found `*mut {integer}` [INFO] [stdout] | [INFO] [stdout] = note: expected raw pointer `*mut c_void` [INFO] [stdout] found raw pointer `*mut {integer}` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: `if` and `else` have incompatible types [INFO] [stdout] --> tests/stb_vorbis.rs:2779:9 [INFO] [stdout] | [INFO] [stdout] 2765 | let mut buf2: *mut libc::c_float = (if !((*f).alloc.alloc_buffer).is_null() { [INFO] [stdout] | _________________________________________- [INFO] [stdout] 2766 | |/ setup_temp_malloc( [INFO] [stdout] 2767 | || f, [INFO] [stdout] 2768 | || (n2 as libc::c_ulong) [INFO] [stdout] 2769 | || .wrapping_mul(::std::mem::size_of::() as libc::c_ulong) [INFO] [stdout] 2770 | || as libc::c_int, [INFO] [stdout] 2771 | || ) [INFO] [stdout] | ||_________- expected because of this [INFO] [stdout] ... | [INFO] [stdout] 2779 | | fresh26.as_mut_ptr() [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^ expected `*mut c_void`, found `*mut {integer}` [INFO] [stdout] 2780 | | }) as *mut libc::c_float; [INFO] [stdout] | |_______- `if` and `else` have incompatible types [INFO] [stdout] | [INFO] [stdout] = note: expected raw pointer `*mut c_void` [INFO] [stdout] found raw pointer `*mut {integer}` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `step2_flag` [INFO] [stdout] --> tests/stb_vorbis.rs:3182:9 [INFO] [stdout] | [INFO] [stdout] 3182 | mut step2_flag: *mut uint8, [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_step2_flag` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `left_end` [INFO] [stdout] --> tests/stb_vorbis.rs:3296:9 [INFO] [stdout] | [INFO] [stdout] 3296 | mut left_end: libc::c_int, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_left_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `mixr` (test "stb_vorbis") due to 2 previous errors; 2 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused variable: `step2_flag` [INFO] [stdout] --> tests/stb_vorbis.rs:3182:9 [INFO] [stdout] | [INFO] [stdout] 3182 | mut step2_flag: *mut uint8, [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_step2_flag` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `left_end` [INFO] [stdout] --> tests/stb_vorbis.rs:3296:9 [INFO] [stdout] | [INFO] [stdout] 3296 | mut left_end: libc::c_int, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_left_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0425, E0658. [INFO] [stdout] [INFO] [stderr] error: could not compile `mixr` (test "test_streaming") due to 4 previous errors; 4 warnings emitted [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "27462abd6dec9748e222f2917047c19cb98e6b5c14872285775bfd4994bff4d8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "27462abd6dec9748e222f2917047c19cb98e6b5c14872285775bfd4994bff4d8", kill_on_drop: false }` [INFO] [stdout] 27462abd6dec9748e222f2917047c19cb98e6b5c14872285775bfd4994bff4d8