[INFO] fetching crate range-encoding 0.2.1... [INFO] linting range-encoding-0.2.1 against nightly for clippy-nonminimal_bool-denied [INFO] extracting crate range-encoding 0.2.1 into /workspace/builds/worker-5-tc1/source [INFO] started tweaking crates.io crate range-encoding 0.2.1 [INFO] finished tweaking crates.io crate range-encoding 0.2.1 [INFO] tweaked toml for crates.io crate range-encoding 0.2.1 written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate range-encoding 0.2.1 on toolchain nightly [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly" "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" "+nightly" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 25 packages to latest compatible versions [INFO] [stderr] Adding env_logger v0.5.13 (available: v0.11.9) [INFO] [stderr] Adding rand v0.5.6 (available: v0.10.0) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: `package.edition` is unspecified, defaulting to `2015` while the latest is `2024` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded rand v0.5.6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ab97c94324ed0469bb59332a3a1b9b0f1518f2d51b593c2ec8e49421e93fa0cd [INFO] running `Command { std: "docker" "start" "-a" "ab97c94324ed0469bb59332a3a1b9b0f1518f2d51b593c2ec8e49421e93fa0cd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ab97c94324ed0469bb59332a3a1b9b0f1518f2d51b593c2ec8e49421e93fa0cd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ab97c94324ed0469bb59332a3a1b9b0f1518f2d51b593c2ec8e49421e93fa0cd", kill_on_drop: false }` [INFO] [stdout] ab97c94324ed0469bb59332a3a1b9b0f1518f2d51b593c2ec8e49421e93fa0cd [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "clippy" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 87a707289689b7440a77deadfc74fb099e633901f36a61523ba6375f6e0869a9 [INFO] running `Command { std: "docker" "start" "-a" "87a707289689b7440a77deadfc74fb099e633901f36a61523ba6375f6e0869a9", kill_on_drop: false }` [INFO] [stderr] warning: `package.edition` is unspecified, defaulting to `2015` while the latest is `2024` [INFO] [stderr] Checking rand_core v0.4.2 [INFO] [stderr] Checking range-encoding v0.2.1 (/opt/rustwide/workdir) [INFO] [stderr] Checking env_logger v0.5.13 [INFO] [stdout] warning: operator precedence might not be obvious [INFO] [stdout] --> src/opus/imported_decode.rs:49:20 [INFO] [stdout] | [INFO] [stdout] 49 | (*_this).rng = 1u32 << (32i32 - 2i32) % 8i32 + 1i32; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider parenthesizing your expression: `1u32 << ((32i32 - 2i32) % 8i32 + 1i32)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#precedence [INFO] [stdout] = note: `#[warn(clippy::precedence)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: operator precedence might not be obvious [INFO] [stdout] --> src/opus/imported_decode.rs:55:14 [INFO] [stdout] | [INFO] [stdout] 55 | ((*_this).rem >> 8i32 - ((32i32 - 2i32) % 8i32 + 1i32)) as std::os::raw::c_uint, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider parenthesizing your expression: `(*_this).rem >> (8i32 - ((32i32 - 2i32) % 8i32 + 1i32))` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#precedence [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: operator precedence might not be obvious [INFO] [stdout] --> src/opus/imported_decode.rs:63:27 [INFO] [stdout] | [INFO] [stdout] 63 | while (*_this).rng <= 1u32 << 32i32 - 1i32 >> 8i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: consider parenthesizing your expression: `1u32 << (32i32 - 1i32)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#precedence [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: operator precedence might not be obvious [INFO] [stdout] --> src/opus/imported_decode.rs:68:15 [INFO] [stdout] | [INFO] [stdout] 68 | sym = (sym << 8i32 | (*_this).rem) >> 8i32 - ((32i32 - 2i32) % 8i32 + 1i32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider parenthesizing your expression: `(sym << 8i32 | (*_this).rem) >> (8i32 - ((32i32 - 2i32) % 8i32 + 1i32))` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#precedence [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: operator precedence might not be obvious [INFO] [stdout] --> src/opus/imported_decode.rs:72:14 [INFO] [stdout] | [INFO] [stdout] 72 | ) & (1u32 << 32i32 - 1i32).wrapping_sub(1i32 as std::os::raw::c_uint) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: consider parenthesizing your expression: `1u32 << (32i32 - 1i32)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#precedence [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: operator precedence might not be obvious [INFO] [stdout] --> src/opus/imported_encode.rs:85:27 [INFO] [stdout] | [INFO] [stdout] 85 | while (*_this).rng <= 1u32 << 32i32 - 1i32 >> 8i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: consider parenthesizing your expression: `1u32 << (32i32 - 1i32)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#precedence [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: operator precedence might not be obvious [INFO] [stdout] --> src/opus/imported_encode.rs:88:14 [INFO] [stdout] | [INFO] [stdout] 88 | ((*_this).val >> 32i32 - 8i32 - 1i32) as std::os::raw::c_int, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider parenthesizing your expression: `(*_this).val >> (32i32 - 8i32 - 1i32)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#precedence [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: operator precedence might not be obvious [INFO] [stdout] --> src/opus/imported_encode.rs:91:16 [INFO] [stdout] | [INFO] [stdout] 91 | & (1u32 << 32i32 - 1i32).wrapping_sub(1i32 as std::os::raw::c_uint); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: consider parenthesizing your expression: `1u32 << (32i32 - 1i32)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#precedence [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: operator precedence might not be obvious [INFO] [stdout] --> src/opus/imported_encode.rs:280:20 [INFO] [stdout] | [INFO] [stdout] 280 | let mut msk = (1u32 << 32i32 - 1i32).wrapping_sub(1i32 as std::os::raw::c_uint) >> l; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: consider parenthesizing your expression: `1u32 << (32i32 - 1i32)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#precedence [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: operator precedence might not be obvious [INFO] [stdout] --> src/opus/imported_encode.rs:288:34 [INFO] [stdout] | [INFO] [stdout] 288 | ec_enc_carry_out(_this, (end >> 32i32 - 8i32 - 1i32) as std::os::raw::c_int)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider parenthesizing your expression: `end >> (32i32 - 8i32 - 1i32)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#precedence [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: operator precedence might not be obvious [INFO] [stdout] --> src/opus/imported_encode.rs:289:30 [INFO] [stdout] | [INFO] [stdout] 289 | end = end << 8i32 & (1u32 << 32i32 - 1i32).wrapping_sub(1i32 as std::os::raw::c_uint); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: consider parenthesizing your expression: `1u32 << (32i32 - 1i32)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#precedence [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/opus/imported_decode.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | return n.wrapping_div(d); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] = note: `#[warn(clippy::needless_return)]` on by default [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 37 - return n.wrapping_div(d); [INFO] [stdout] 37 + n.wrapping_div(d) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/opus/imported_decode.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | return n / d; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 40 - return n / d; [INFO] [stdout] 40 + n / d [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/opus/imported_decode.rs:98:5 [INFO] [stdout] | [INFO] [stdout] 98 | / return _ft.wrapping_sub(s.wrapping_add(1i32 as std::os::raw::c_uint).wrapping_add( [INFO] [stdout] 99 | | _ft.wrapping_sub(s.wrapping_add(1i32 as std::os::raw::c_uint)) [INFO] [stdout] 100 | | & -((_ft < s.wrapping_add(1i32 as std::os::raw::c_uint)) as std::os::raw::c_int) [INFO] [stdout] 101 | | as std::os::raw::c_uint, [INFO] [stdout] 102 | | )); [INFO] [stdout] | |______^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 98 ~ _ft.wrapping_sub(s.wrapping_add(1i32 as std::os::raw::c_uint).wrapping_add( [INFO] [stdout] 99 + _ft.wrapping_sub(s.wrapping_add(1i32 as std::os::raw::c_uint)) [INFO] [stdout] 100 + & -((_ft < s.wrapping_add(1i32 as std::os::raw::c_uint)) as std::os::raw::c_int) [INFO] [stdout] 101 + as std::os::raw::c_uint, [INFO] [stdout] 102 ~ )) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/opus/imported_decode.rs:111:5 [INFO] [stdout] | [INFO] [stdout] 111 | / return (1u32 << _bits).wrapping_sub(s.wrapping_add(1u32).wrapping_add( [INFO] [stdout] 112 | | (1u32 << _bits).wrapping_sub(s.wrapping_add(1u32)) [INFO] [stdout] 113 | | & -((1u32 << _bits < s.wrapping_add(1u32)) as std::os::raw::c_int) [INFO] [stdout] 114 | | as std::os::raw::c_uint, [INFO] [stdout] 115 | | )); [INFO] [stdout] | |______^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 111 ~ (1u32 << _bits).wrapping_sub(s.wrapping_add(1u32).wrapping_add( [INFO] [stdout] 112 + (1u32 << _bits).wrapping_sub(s.wrapping_add(1u32)) [INFO] [stdout] 113 + & -((1u32 << _bits < s.wrapping_add(1u32)) as std::os::raw::c_int) [INFO] [stdout] 114 + as std::os::raw::c_uint, [INFO] [stdout] 115 ~ )) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/opus/imported_decode.rs:166:12 [INFO] [stdout] | [INFO] [stdout] 166 | if !(d < s) { [INFO] [stdout] | ^^^^^^^^ help: try: `(d >= s)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] = note: `#[warn(clippy::nonminimal_bool)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/opus/imported_encode.rs:59:5 [INFO] [stdout] | [INFO] [stdout] 59 | return n.wrapping_div(d); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 59 - return n.wrapping_div(d); [INFO] [stdout] 59 + n.wrapping_div(d) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/opus/imported_encode.rs:114:20 [INFO] [stdout] | [INFO] [stdout] 114 | if !((*_this).ext > 0i32 as std::os::raw::c_uint) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `((*_this).ext <= 0i32 as std::os::raw::c_uint)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/opus/imported_encode.rs:230:5 [INFO] [stdout] | [INFO] [stdout] 230 | return Ok(()); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 230 - return Ok(()); [INFO] [stdout] 230 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/opus/imported_encode.rs:252:16 [INFO] [stdout] | [INFO] [stdout] 252 | if !(used >= 8i32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: try: `(used < 8i32)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/opus/imported_encode.rs:264:5 [INFO] [stdout] | [INFO] [stdout] 264 | return Ok(()); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 264 - return Ok(()); [INFO] [stdout] 264 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/opus/encode.rs:21:22 [INFO] [stdout] | [INFO] [stdout] 21 | rng: std::u32::MAX / 2 + 1, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] = note: `#[warn(clippy::legacy_numeric_constants)]` on by default [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 21 - rng: std::u32::MAX / 2 + 1, [INFO] [stdout] 21 + rng: u32::MAX / 2 + 1, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/lib.rs:93:21 [INFO] [stdout] | [INFO] [stdout] 93 | pub fn at_index<'a>(&'a self, index: usize) -> Option<&'a Segment> { [INFO] [stdout] | ^^ ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] = note: `#[warn(clippy::needless_lifetimes)]` on by default [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 93 - pub fn at_index<'a>(&'a self, index: usize) -> Option<&'a Segment> { [INFO] [stdout] 93 + pub fn at_index(&self, index: usize) -> Option<&Segment> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CumulativeDistributionFrequency` has a public `len` method, but no `is_empty` method [INFO] [stdout] --> src/lib.rs:101:5 [INFO] [stdout] | [INFO] [stdout] 101 | pub fn len(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_without_is_empty [INFO] [stdout] = note: `#[warn(clippy::len_without_is_empty)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `std::result::Result<(), std::io::Error>`, which is not FFI-safe [INFO] [stdout] --> src/opus/imported_decode.rs:45:6 [INFO] [stdout] | [INFO] [stdout] 45 | ) -> Result<(), std::io::Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum [INFO] [stdout] = note: enum has no representation hint [INFO] [stdout] = note: `#[warn(improper_ctypes_definitions)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `std::result::Result<(), std::io::Error>`, which is not FFI-safe [INFO] [stdout] --> src/opus/imported_decode.rs:62:6 [INFO] [stdout] | [INFO] [stdout] 62 | ) -> Result<(), std::io::Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum [INFO] [stdout] = note: enum has no representation hint [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `std::result::Result`, which is not FFI-safe [INFO] [stdout] --> src/opus/imported_decode.rs:78:6 [INFO] [stdout] | [INFO] [stdout] 78 | ) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum [INFO] [stdout] = note: enum has no representation hint [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `std::result::Result<(), std::io::Error>`, which is not FFI-safe [INFO] [stdout] --> src/opus/imported_decode.rs:123:6 [INFO] [stdout] | [INFO] [stdout] 123 | ) -> Result<(), std::io::Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum [INFO] [stdout] = note: enum has no representation hint [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `std::result::Result`, which is not FFI-safe [INFO] [stdout] --> src/opus/imported_decode.rs:139:6 [INFO] [stdout] | [INFO] [stdout] 139 | ) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum [INFO] [stdout] = note: enum has no representation hint [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `std::result::Result`, which is not FFI-safe [INFO] [stdout] --> src/opus/imported_decode.rs:156:6 [INFO] [stdout] | [INFO] [stdout] 156 | ) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum [INFO] [stdout] = note: enum has no representation hint [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking rand_core v0.3.1 [INFO] [stderr] Checking rand v0.5.6 [INFO] [stdout] warning: called `iter().cloned().collect()` on a slice to create a `Vec`. Calling `to_vec()` is both faster and more readable [INFO] [stdout] --> tests/simple.rs:11:68 [INFO] [stdout] | [INFO] [stdout] 11 | let probabilities = CumulativeDistributionFrequency::new(widths.iter().cloned().collect()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `.to_vec()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#iter_cloned_collect [INFO] [stdout] = note: `#[warn(clippy::iter_cloned_collect)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: operator precedence might not be obvious [INFO] [stdout] --> src/opus/imported_decode.rs:49:20 [INFO] [stdout] | [INFO] [stdout] 49 | (*_this).rng = 1u32 << (32i32 - 2i32) % 8i32 + 1i32; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider parenthesizing your expression: `1u32 << ((32i32 - 2i32) % 8i32 + 1i32)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#precedence [INFO] [stdout] = note: `#[warn(clippy::precedence)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: operator precedence might not be obvious [INFO] [stdout] --> src/opus/imported_decode.rs:55:14 [INFO] [stdout] | [INFO] [stdout] 55 | ((*_this).rem >> 8i32 - ((32i32 - 2i32) % 8i32 + 1i32)) as std::os::raw::c_uint, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider parenthesizing your expression: `(*_this).rem >> (8i32 - ((32i32 - 2i32) % 8i32 + 1i32))` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#precedence [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: operator precedence might not be obvious [INFO] [stdout] --> src/opus/imported_decode.rs:63:27 [INFO] [stdout] | [INFO] [stdout] 63 | while (*_this).rng <= 1u32 << 32i32 - 1i32 >> 8i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: consider parenthesizing your expression: `1u32 << (32i32 - 1i32)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#precedence [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: operator precedence might not be obvious [INFO] [stdout] --> src/opus/imported_decode.rs:68:15 [INFO] [stdout] | [INFO] [stdout] 68 | sym = (sym << 8i32 | (*_this).rem) >> 8i32 - ((32i32 - 2i32) % 8i32 + 1i32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider parenthesizing your expression: `(sym << 8i32 | (*_this).rem) >> (8i32 - ((32i32 - 2i32) % 8i32 + 1i32))` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#precedence [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: operator precedence might not be obvious [INFO] [stdout] --> src/opus/imported_decode.rs:72:14 [INFO] [stdout] | [INFO] [stdout] 72 | ) & (1u32 << 32i32 - 1i32).wrapping_sub(1i32 as std::os::raw::c_uint) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: consider parenthesizing your expression: `1u32 << (32i32 - 1i32)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#precedence [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: operator precedence might not be obvious [INFO] [stdout] --> src/opus/imported_encode.rs:85:27 [INFO] [stdout] | [INFO] [stdout] 85 | while (*_this).rng <= 1u32 << 32i32 - 1i32 >> 8i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: consider parenthesizing your expression: `1u32 << (32i32 - 1i32)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#precedence [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: operator precedence might not be obvious [INFO] [stdout] --> src/opus/imported_encode.rs:88:14 [INFO] [stdout] | [INFO] [stdout] 88 | ((*_this).val >> 32i32 - 8i32 - 1i32) as std::os::raw::c_int, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider parenthesizing your expression: `(*_this).val >> (32i32 - 8i32 - 1i32)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#precedence [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the method `symbol` doesn't need a mutable reference [INFO] [stdout] --> tests/simple.rs:29:32 [INFO] [stdout] | [INFO] [stdout] 29 | .symbol(index, &mut probabilities) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_mut_passed [INFO] [stdout] = note: `#[warn(clippy::unnecessary_mut_passed)]` on by default [INFO] [stdout] help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] 29 - .symbol(index, &mut probabilities) [INFO] [stdout] 29 + .symbol(index, &probabilities) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the method `symbol` doesn't need a mutable reference [INFO] [stdout] --> tests/simple.rs:40:25 [INFO] [stdout] | [INFO] [stdout] 40 | .symbol(&mut probabilities) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_mut_passed [INFO] [stdout] help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] 40 - .symbol(&mut probabilities) [INFO] [stdout] 40 + .symbol(&probabilities) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: operator precedence might not be obvious [INFO] [stdout] --> src/opus/imported_encode.rs:91:16 [INFO] [stdout] | [INFO] [stdout] 91 | & (1u32 << 32i32 - 1i32).wrapping_sub(1i32 as std::os::raw::c_uint); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: consider parenthesizing your expression: `1u32 << (32i32 - 1i32)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#precedence [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: operator precedence might not be obvious [INFO] [stdout] --> src/opus/imported_encode.rs:280:20 [INFO] [stdout] | [INFO] [stdout] 280 | let mut msk = (1u32 << 32i32 - 1i32).wrapping_sub(1i32 as std::os::raw::c_uint) >> l; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: consider parenthesizing your expression: `1u32 << (32i32 - 1i32)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#precedence [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: operator precedence might not be obvious [INFO] [stdout] --> src/opus/imported_encode.rs:288:34 [INFO] [stdout] | [INFO] [stdout] 288 | ec_enc_carry_out(_this, (end >> 32i32 - 8i32 - 1i32) as std::os::raw::c_int)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider parenthesizing your expression: `end >> (32i32 - 8i32 - 1i32)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#precedence [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: operator precedence might not be obvious [INFO] [stdout] --> src/opus/imported_encode.rs:289:30 [INFO] [stdout] | [INFO] [stdout] 289 | end = end << 8i32 & (1u32 << 32i32 - 1i32).wrapping_sub(1i32 as std::os::raw::c_uint); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: consider parenthesizing your expression: `1u32 << (32i32 - 1i32)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#precedence [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/opus/imported_decode.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | return n.wrapping_div(d); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] = note: `#[warn(clippy::needless_return)]` on by default [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 37 - return n.wrapping_div(d); [INFO] [stdout] 37 + n.wrapping_div(d) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/opus/imported_decode.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | return n / d; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 40 - return n / d; [INFO] [stdout] 40 + n / d [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/opus/imported_decode.rs:98:5 [INFO] [stdout] | [INFO] [stdout] 98 | / return _ft.wrapping_sub(s.wrapping_add(1i32 as std::os::raw::c_uint).wrapping_add( [INFO] [stdout] 99 | | _ft.wrapping_sub(s.wrapping_add(1i32 as std::os::raw::c_uint)) [INFO] [stdout] 100 | | & -((_ft < s.wrapping_add(1i32 as std::os::raw::c_uint)) as std::os::raw::c_int) [INFO] [stdout] 101 | | as std::os::raw::c_uint, [INFO] [stdout] 102 | | )); [INFO] [stdout] | |______^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 98 ~ _ft.wrapping_sub(s.wrapping_add(1i32 as std::os::raw::c_uint).wrapping_add( [INFO] [stdout] 99 + _ft.wrapping_sub(s.wrapping_add(1i32 as std::os::raw::c_uint)) [INFO] [stdout] 100 + & -((_ft < s.wrapping_add(1i32 as std::os::raw::c_uint)) as std::os::raw::c_int) [INFO] [stdout] 101 + as std::os::raw::c_uint, [INFO] [stdout] 102 ~ )) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/opus/imported_decode.rs:111:5 [INFO] [stdout] | [INFO] [stdout] 111 | / return (1u32 << _bits).wrapping_sub(s.wrapping_add(1u32).wrapping_add( [INFO] [stdout] 112 | | (1u32 << _bits).wrapping_sub(s.wrapping_add(1u32)) [INFO] [stdout] 113 | | & -((1u32 << _bits < s.wrapping_add(1u32)) as std::os::raw::c_int) [INFO] [stdout] 114 | | as std::os::raw::c_uint, [INFO] [stdout] 115 | | )); [INFO] [stdout] | |______^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 111 ~ (1u32 << _bits).wrapping_sub(s.wrapping_add(1u32).wrapping_add( [INFO] [stdout] 112 + (1u32 << _bits).wrapping_sub(s.wrapping_add(1u32)) [INFO] [stdout] 113 + & -((1u32 << _bits < s.wrapping_add(1u32)) as std::os::raw::c_int) [INFO] [stdout] 114 + as std::os::raw::c_uint, [INFO] [stdout] 115 ~ )) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/opus/imported_decode.rs:166:12 [INFO] [stdout] | [INFO] [stdout] 166 | if !(d < s) { [INFO] [stdout] | ^^^^^^^^ help: try: `(d >= s)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] = note: `#[warn(clippy::nonminimal_bool)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/opus/imported_encode.rs:59:5 [INFO] [stdout] | [INFO] [stdout] 59 | return n.wrapping_div(d); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 59 - return n.wrapping_div(d); [INFO] [stdout] 59 + n.wrapping_div(d) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/opus/imported_encode.rs:114:20 [INFO] [stdout] | [INFO] [stdout] 114 | if !((*_this).ext > 0i32 as std::os::raw::c_uint) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `((*_this).ext <= 0i32 as std::os::raw::c_uint)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/opus/imported_encode.rs:230:5 [INFO] [stdout] | [INFO] [stdout] 230 | return Ok(()); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 230 - return Ok(()); [INFO] [stdout] 230 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/opus/imported_encode.rs:252:16 [INFO] [stdout] | [INFO] [stdout] 252 | if !(used >= 8i32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: try: `(used < 8i32)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/opus/imported_encode.rs:264:5 [INFO] [stdout] | [INFO] [stdout] 264 | return Ok(()); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 264 - return Ok(()); [INFO] [stdout] 264 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/opus/encode.rs:21:22 [INFO] [stdout] | [INFO] [stdout] 21 | rng: std::u32::MAX / 2 + 1, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] = note: `#[warn(clippy::legacy_numeric_constants)]` on by default [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 21 - rng: std::u32::MAX / 2 + 1, [INFO] [stdout] 21 + rng: u32::MAX / 2 + 1, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/lib.rs:93:21 [INFO] [stdout] | [INFO] [stdout] 93 | pub fn at_index<'a>(&'a self, index: usize) -> Option<&'a Segment> { [INFO] [stdout] | ^^ ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] = note: `#[warn(clippy::needless_lifetimes)]` on by default [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 93 - pub fn at_index<'a>(&'a self, index: usize) -> Option<&'a Segment> { [INFO] [stdout] 93 + pub fn at_index(&self, index: usize) -> Option<&Segment> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CumulativeDistributionFrequency` has a public `len` method, but no `is_empty` method [INFO] [stdout] --> src/lib.rs:101:5 [INFO] [stdout] | [INFO] [stdout] 101 | pub fn len(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_without_is_empty [INFO] [stdout] = note: `#[warn(clippy::len_without_is_empty)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `std::result::Result<(), std::io::Error>`, which is not FFI-safe [INFO] [stdout] --> src/opus/imported_decode.rs:45:6 [INFO] [stdout] | [INFO] [stdout] 45 | ) -> Result<(), std::io::Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum [INFO] [stdout] = note: enum has no representation hint [INFO] [stdout] = note: `#[warn(improper_ctypes_definitions)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `std::result::Result<(), std::io::Error>`, which is not FFI-safe [INFO] [stdout] --> src/opus/imported_decode.rs:62:6 [INFO] [stdout] | [INFO] [stdout] 62 | ) -> Result<(), std::io::Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum [INFO] [stdout] = note: enum has no representation hint [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `std::result::Result`, which is not FFI-safe [INFO] [stdout] --> src/opus/imported_decode.rs:78:6 [INFO] [stdout] | [INFO] [stdout] 78 | ) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum [INFO] [stdout] = note: enum has no representation hint [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `std::result::Result<(), std::io::Error>`, which is not FFI-safe [INFO] [stdout] --> src/opus/imported_decode.rs:123:6 [INFO] [stdout] | [INFO] [stdout] 123 | ) -> Result<(), std::io::Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum [INFO] [stdout] = note: enum has no representation hint [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `std::result::Result`, which is not FFI-safe [INFO] [stdout] --> src/opus/imported_decode.rs:139:6 [INFO] [stdout] | [INFO] [stdout] 139 | ) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum [INFO] [stdout] = note: enum has no representation hint [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `std::result::Result`, which is not FFI-safe [INFO] [stdout] --> src/opus/imported_decode.rs:156:6 [INFO] [stdout] | [INFO] [stdout] 156 | ) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum [INFO] [stdout] = note: enum has no representation hint [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.88s [INFO] running `Command { std: "docker" "inspect" "87a707289689b7440a77deadfc74fb099e633901f36a61523ba6375f6e0869a9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "87a707289689b7440a77deadfc74fb099e633901f36a61523ba6375f6e0869a9", kill_on_drop: false }` [INFO] [stdout] 87a707289689b7440a77deadfc74fb099e633901f36a61523ba6375f6e0869a9