[INFO] fetching crate unopus 0.0.1... [INFO] checking unopus-0.0.1 against master#8c32e313cccf7df531e2d49ffb8227bb92304aee for pr-145608-1 [INFO] extracting crate unopus 0.0.1 into /workspace/builds/worker-7-tc1/source [INFO] started tweaking crates.io crate unopus 0.0.1 [INFO] finished tweaking crates.io crate unopus 0.0.1 [INFO] tweaked toml for crates.io crate unopus 0.0.1 written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate unopus 0.0.1 on toolchain 8c32e313cccf7df531e2d49ffb8227bb92304aee [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8c32e313cccf7df531e2d49ffb8227bb92304aee" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate unopus 0.0.1 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" "+8c32e313cccf7df531e2d49ffb8227bb92304aee" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded similar v2.5.0 [INFO] [stderr] Downloaded libc-stdhandle v0.1.0 [INFO] [stderr] Downloaded insta v1.39.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+8c32e313cccf7df531e2d49ffb8227bb92304aee" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a38d4ee903bb2fa298cb6374caebae4d6d30a470a6bb3543e8ce81b640811eb8 [INFO] running `Command { std: "docker" "start" "-a" "a38d4ee903bb2fa298cb6374caebae4d6d30a470a6bb3543e8ce81b640811eb8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a38d4ee903bb2fa298cb6374caebae4d6d30a470a6bb3543e8ce81b640811eb8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a38d4ee903bb2fa298cb6374caebae4d6d30a470a6bb3543e8ce81b640811eb8", kill_on_drop: false }` [INFO] [stdout] a38d4ee903bb2fa298cb6374caebae4d6d30a470a6bb3543e8ce81b640811eb8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+8c32e313cccf7df531e2d49ffb8227bb92304aee" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 87cb380790b775865669ef9acdd69899c094f147487612ff93272735e4ff8701 [INFO] running `Command { std: "docker" "start" "-a" "87cb380790b775865669ef9acdd69899c094f147487612ff93272735e4ff8701", kill_on_drop: false }` [INFO] [stderr] Compiling cc v1.0.99 [INFO] [stderr] Checking arrayref v0.3.7 [INFO] [stderr] Checking similar v2.5.0 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking console v0.15.8 [INFO] [stderr] Checking insta v1.39.0 [INFO] [stderr] Checking num-complex v0.4.6 [INFO] [stderr] Compiling libc-stdhandle v0.1.0 [INFO] [stderr] Checking unopus v0.0.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: useless assignment of variable of type `f32` to itself [INFO] [stdout] --> src/src/analysis.rs:1098:5 [INFO] [stdout] | [INFO] [stdout] 1098 | E = E; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless assignment of variable of type `f32` to itself [INFO] [stdout] --> src/src/analysis.rs:1114:13 [INFO] [stdout] | [INFO] [stdout] 1114 | binE_0 = binE_0; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless assignment of variable of type `f32` to itself [INFO] [stdout] --> src/src/analysis.rs:1313:9 [INFO] [stdout] | [INFO] [stdout] 1313 | E_1 = E_1; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: union `sFIR_union` is never used [INFO] [stdout] --> src/silk/resampler/mod.rs:106:11 [INFO] [stdout] | [INFO] [stdout] 106 | pub union sFIR_union { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/celt/bands.rs:578:34 [INFO] [stdout] | [INFO] [stdout] 578 | let ordery: *const i32 = ordery_table [INFO] [stdout] | __________________________________^ [INFO] [stdout] 579 | | .as_ptr() [INFO] [stdout] | |_____________________^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/celt/bands.rs:621:34 [INFO] [stdout] | [INFO] [stdout] 621 | let ordery: *const i32 = ordery_table [INFO] [stdout] | __________________________________^ [INFO] [stdout] 622 | | .as_ptr() [INFO] [stdout] | |_____________________^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/celt/celt_encoder.rs:2884:13 [INFO] [stdout] | [INFO] [stdout] 2884 | intensity_thresholds.as_ptr(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/celt/celt_encoder.rs:2885:13 [INFO] [stdout] | [INFO] [stdout] 2885 | intensity_histeresis.as_ptr(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/celt/entdec.rs:47:25 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn ec_dec_init(buf: &mut [u8]) -> ec_dec { [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] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 47 | pub fn ec_dec_init(buf: &mut [u8]) -> ec_dec<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/celt/entenc.rs:69:25 [INFO] [stdout] | [INFO] [stdout] 69 | pub fn ec_enc_init(buf: &mut [u8]) -> ec_enc { [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] 69 | pub fn ec_enc_init(buf: &mut [u8]) -> ec_enc<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/celt/modes/static_modes_float_h.rs:877:15 [INFO] [stdout] | [INFO] [stdout] 877 | unsafe { [&mode48000_960_120 as *const OpusCustomMode] }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 877 | unsafe { [&raw const mode48000_960_120 as *const OpusCustomMode] }; [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/celt/quant_bands.rs:239:63 [INFO] [stdout] | [INFO] [stdout] 239 | ec_enc_icdf(enc, 2 * qi ^ -((qi < 0) as i32), &small_energy_icdf, 2); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 239 | ec_enc_icdf(enc, 2 * qi ^ -((qi < 0) as i32), &raw const small_energy_icdf, 2); [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/celt/quant_bands.rs:582:39 [INFO] [stdout] | [INFO] [stdout] 582 | qi = ec_dec_icdf(dec, &small_energy_icdf, 2); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 582 | qi = ec_dec_icdf(dec, &raw const small_energy_icdf, 2); [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/silk/control_SNR.rs:47:21 [INFO] [stdout] | [INFO] [stdout] 47 | snr_table = silk_TargetRate_NB_21.as_ptr(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/silk/control_SNR.rs:50:21 [INFO] [stdout] | [INFO] [stdout] 50 | snr_table = silk_TargetRate_MB_21.as_ptr(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/silk/control_SNR.rs:53:21 [INFO] [stdout] | [INFO] [stdout] 53 | snr_table = silk_TargetRate_WB_21.as_ptr(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> src/silk/decode_parameters.rs:32:10 [INFO] [stdout] | [INFO] [stdout] 32 | &(*psDec).indices.NLSFIndices[..(*psDec).psNLSF_CB.order as usize + 1], [INFO] [stdout] | ^^-----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this raw pointer has type `*mut silk_decoder_state` [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] note: autoref is being applied to this expression, resulting in: `&[i8; 17]` [INFO] [stdout] --> src/silk/decode_parameters.rs:32:10 [INFO] [stdout] | [INFO] [stdout] 32 | &(*psDec).indices.NLSFIndices[..(*psDec).psNLSF_CB.order as usize + 1], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[deny(dangerous_implicit_autorefs)]` on by default [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 32 | &(&(*psDec).indices.NLSFIndices)[..(*psDec).psNLSF_CB.order as usize + 1], [INFO] [stdout] | ++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> src/silk/enc_API.rs:351:22 [INFO] [stdout] | [INFO] [stdout] 351 | &mut (*psEnc).state_Fxx[0].sCmn.inputBuf [INFO] [stdout] | ^ ----- this raw pointer has type `*mut silk_encoder` [INFO] [stdout] | ______________________| [INFO] [stdout] | | [INFO] [stdout] 352 | | [((*psEnc).state_Fxx[0].sCmn.inputBufIx + 2) as usize..] [INFO] [stdout] 353 | | [..nSamplesToBuffer as usize], [INFO] [stdout] | |_________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] note: autoref is being applied to this expression, resulting in: `&mut [i16]` [INFO] [stdout] --> src/silk/enc_API.rs:351:22 [INFO] [stdout] | [INFO] [stdout] 351 | &mut (*psEnc).state_Fxx[0].sCmn.inputBuf [INFO] [stdout] | ______________________^ [INFO] [stdout] 352 | | [((*psEnc).state_Fxx[0].sCmn.inputBufIx + 2) as usize..] [INFO] [stdout] | |____________________________________________________________________________^ [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 351 ~ &mut (&mut (*psEnc).state_Fxx[0].sCmn.inputBuf [INFO] [stdout] 352 ~ [((*psEnc).state_Fxx[0].sCmn.inputBufIx + 2) as usize..]) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> src/silk/enc_API.rs:351:22 [INFO] [stdout] | [INFO] [stdout] 351 | &mut (*psEnc).state_Fxx[0].sCmn.inputBuf [INFO] [stdout] | ^ ----- this raw pointer has type `*mut silk_encoder` [INFO] [stdout] | ______________________| [INFO] [stdout] | | [INFO] [stdout] 352 | | [((*psEnc).state_Fxx[0].sCmn.inputBufIx + 2) as usize..] [INFO] [stdout] | |____________________________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] note: autoref is being applied to this expression, resulting in: `&mut [i16; 322]` [INFO] [stdout] --> src/silk/enc_API.rs:351:22 [INFO] [stdout] | [INFO] [stdout] 351 | &mut (*psEnc).state_Fxx[0].sCmn.inputBuf [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 351 | &mut (&mut (*psEnc).state_Fxx[0].sCmn.inputBuf) [INFO] [stdout] | +++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> src/silk/enc_API.rs:376:22 [INFO] [stdout] | [INFO] [stdout] 376 | &mut (*psEnc).state_Fxx[1].sCmn.inputBuf [INFO] [stdout] | ^ ----- this raw pointer has type `*mut silk_encoder` [INFO] [stdout] | ______________________| [INFO] [stdout] | | [INFO] [stdout] 377 | | [((*psEnc).state_Fxx[1].sCmn.inputBufIx + 2) as usize..] [INFO] [stdout] 378 | | [..nSamplesToBuffer as usize], [INFO] [stdout] | |_________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] note: autoref is being applied to this expression, resulting in: `&mut [i16]` [INFO] [stdout] --> src/silk/enc_API.rs:376:22 [INFO] [stdout] | [INFO] [stdout] 376 | &mut (*psEnc).state_Fxx[1].sCmn.inputBuf [INFO] [stdout] | ______________________^ [INFO] [stdout] 377 | | [((*psEnc).state_Fxx[1].sCmn.inputBufIx + 2) as usize..] [INFO] [stdout] | |____________________________________________________________________________^ [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 376 ~ &mut (&mut (*psEnc).state_Fxx[1].sCmn.inputBuf [INFO] [stdout] 377 ~ [((*psEnc).state_Fxx[1].sCmn.inputBufIx + 2) as usize..]) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> src/silk/enc_API.rs:376:22 [INFO] [stdout] | [INFO] [stdout] 376 | &mut (*psEnc).state_Fxx[1].sCmn.inputBuf [INFO] [stdout] | ^ ----- this raw pointer has type `*mut silk_encoder` [INFO] [stdout] | ______________________| [INFO] [stdout] | | [INFO] [stdout] 377 | | [((*psEnc).state_Fxx[1].sCmn.inputBufIx + 2) as usize..] [INFO] [stdout] | |____________________________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] note: autoref is being applied to this expression, resulting in: `&mut [i16; 322]` [INFO] [stdout] --> src/silk/enc_API.rs:376:22 [INFO] [stdout] | [INFO] [stdout] 376 | &mut (*psEnc).state_Fxx[1].sCmn.inputBuf [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 376 | &mut (&mut (*psEnc).state_Fxx[1].sCmn.inputBuf) [INFO] [stdout] | +++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> src/silk/enc_API.rs:399:22 [INFO] [stdout] | [INFO] [stdout] 399 | &mut (*psEnc).state_Fxx[0].sCmn.inputBuf [INFO] [stdout] | ^ ----- this raw pointer has type `*mut silk_encoder` [INFO] [stdout] | ______________________| [INFO] [stdout] | | [INFO] [stdout] 400 | | [((*psEnc).state_Fxx[0].sCmn.inputBufIx + 2) as usize..] [INFO] [stdout] 401 | | [..nSamplesToBuffer as usize], [INFO] [stdout] | |_________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] note: autoref is being applied to this expression, resulting in: `&mut [i16]` [INFO] [stdout] --> src/silk/enc_API.rs:399:22 [INFO] [stdout] | [INFO] [stdout] 399 | &mut (*psEnc).state_Fxx[0].sCmn.inputBuf [INFO] [stdout] | ______________________^ [INFO] [stdout] 400 | | [((*psEnc).state_Fxx[0].sCmn.inputBufIx + 2) as usize..] [INFO] [stdout] | |____________________________________________________________________________^ [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 399 ~ &mut (&mut (*psEnc).state_Fxx[0].sCmn.inputBuf [INFO] [stdout] 400 ~ [((*psEnc).state_Fxx[0].sCmn.inputBufIx + 2) as usize..]) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> src/silk/enc_API.rs:399:22 [INFO] [stdout] | [INFO] [stdout] 399 | &mut (*psEnc).state_Fxx[0].sCmn.inputBuf [INFO] [stdout] | ^ ----- this raw pointer has type `*mut silk_encoder` [INFO] [stdout] | ______________________| [INFO] [stdout] | | [INFO] [stdout] 400 | | [((*psEnc).state_Fxx[0].sCmn.inputBufIx + 2) as usize..] [INFO] [stdout] | |____________________________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] note: autoref is being applied to this expression, resulting in: `&mut [i16; 322]` [INFO] [stdout] --> src/silk/enc_API.rs:399:22 [INFO] [stdout] | [INFO] [stdout] 399 | &mut (*psEnc).state_Fxx[0].sCmn.inputBuf [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 399 | &mut (&mut (*psEnc).state_Fxx[0].sCmn.inputBuf) [INFO] [stdout] | +++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> src/silk/enc_API.rs:410:26 [INFO] [stdout] | [INFO] [stdout] 410 | &mut (*psEnc).state_Fxx[1].sCmn.inputBuf [INFO] [stdout] | ^ ----- this raw pointer has type `*mut silk_encoder` [INFO] [stdout] | __________________________| [INFO] [stdout] | | [INFO] [stdout] 411 | | [((*psEnc).state_Fxx[1].sCmn.inputBufIx + 2) as usize..], [INFO] [stdout] | |________________________________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] note: autoref is being applied to this expression, resulting in: `&mut [i16; 322]` [INFO] [stdout] --> src/silk/enc_API.rs:410:26 [INFO] [stdout] | [INFO] [stdout] 410 | &mut (*psEnc).state_Fxx[1].sCmn.inputBuf [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 410 | &mut (&mut (*psEnc).state_Fxx[1].sCmn.inputBuf) [INFO] [stdout] | +++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> src/silk/enc_API.rs:440:22 [INFO] [stdout] | [INFO] [stdout] 440 | &mut (*psEnc).state_Fxx[0].sCmn.inputBuf [INFO] [stdout] | ^ ----- this raw pointer has type `*mut silk_encoder` [INFO] [stdout] | ______________________| [INFO] [stdout] | | [INFO] [stdout] 441 | | [((*psEnc).state_Fxx[0].sCmn.inputBufIx + 2) as usize..] [INFO] [stdout] 442 | | [..nSamplesToBuffer as usize], [INFO] [stdout] | |_________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] note: autoref is being applied to this expression, resulting in: `&mut [i16]` [INFO] [stdout] --> src/silk/enc_API.rs:440:22 [INFO] [stdout] | [INFO] [stdout] 440 | &mut (*psEnc).state_Fxx[0].sCmn.inputBuf [INFO] [stdout] | ______________________^ [INFO] [stdout] 441 | | [((*psEnc).state_Fxx[0].sCmn.inputBufIx + 2) as usize..] [INFO] [stdout] | |____________________________________________________________________________^ [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 440 ~ &mut (&mut (*psEnc).state_Fxx[0].sCmn.inputBuf [INFO] [stdout] 441 ~ [((*psEnc).state_Fxx[0].sCmn.inputBufIx + 2) as usize..]) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> src/silk/enc_API.rs:440:22 [INFO] [stdout] | [INFO] [stdout] 440 | &mut (*psEnc).state_Fxx[0].sCmn.inputBuf [INFO] [stdout] | ^ ----- this raw pointer has type `*mut silk_encoder` [INFO] [stdout] | ______________________| [INFO] [stdout] | | [INFO] [stdout] 441 | | [((*psEnc).state_Fxx[0].sCmn.inputBufIx + 2) as usize..] [INFO] [stdout] | |____________________________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] note: autoref is being applied to this expression, resulting in: `&mut [i16; 322]` [INFO] [stdout] --> src/silk/enc_API.rs:440:22 [INFO] [stdout] | [INFO] [stdout] 440 | &mut (*psEnc).state_Fxx[0].sCmn.inputBuf [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 440 | &mut (&mut (*psEnc).state_Fxx[0].sCmn.inputBuf) [INFO] [stdout] | +++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> src/silk/float/find_LPC_FLP.rs:66:18 [INFO] [stdout] | [INFO] [stdout] 66 | &(*psEncC).prev_NLSFq_Q15[..(*psEncC).predictLPCOrder as usize], [INFO] [stdout] | ^^------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this raw pointer has type `*mut silk_encoder_state` [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] note: autoref is being applied to this expression, resulting in: `&[i16; 16]` [INFO] [stdout] --> src/silk/float/find_LPC_FLP.rs:66:18 [INFO] [stdout] | [INFO] [stdout] 66 | &(*psEncC).prev_NLSFq_Q15[..(*psEncC).predictLPCOrder as usize], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 66 | &(&(*psEncC).prev_NLSFq_Q15)[..(*psEncC).predictLPCOrder as usize], [INFO] [stdout] | ++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/src/analysis.rs:1513:19 [INFO] [stdout] | [INFO] [stdout] 1513 | compute_dense(&layer0, layer_out.as_mut_ptr(), features.as_mut_ptr()); [INFO] [stdout] | ^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 1513 | compute_dense(&raw const layer0, layer_out.as_mut_ptr(), features.as_mut_ptr()); [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/src/analysis.rs:1515:9 [INFO] [stdout] | [INFO] [stdout] 1515 | &layer1, [INFO] [stdout] | ^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 1515 | &raw const layer1, [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/src/analysis.rs:1520:9 [INFO] [stdout] | [INFO] [stdout] 1520 | &layer2, [INFO] [stdout] | ^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 1520 | &raw const layer2, [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/src/mlp_data.rs:250:19 [INFO] [stdout] | [INFO] [stdout] 250 | bias: layer0_bias.as_ptr(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/src/mlp_data.rs:251:28 [INFO] [stdout] | [INFO] [stdout] 251 | input_weights: layer0_weights.as_ptr(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/src/mlp_data.rs:262:19 [INFO] [stdout] | [INFO] [stdout] 262 | bias: layer1_bias.as_ptr(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/src/mlp_data.rs:263:28 [INFO] [stdout] | [INFO] [stdout] 263 | input_weights: layer1_weights.as_ptr(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/src/mlp_data.rs:264:32 [INFO] [stdout] | [INFO] [stdout] 264 | recurrent_weights: layer1_recur_weights.as_ptr(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/src/mlp_data.rs:274:19 [INFO] [stdout] | [INFO] [stdout] 274 | bias: layer2_bias.as_ptr(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/src/mlp_data.rs:275:28 [INFO] [stdout] | [INFO] [stdout] 275 | input_weights: layer2_weights.as_ptr(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/src/opus_encoder.rs:1554:42 [INFO] [stdout] | [INFO] [stdout] 1554 | voice_bandwidth_thresholds = stereo_voice_bandwidth_thresholds.as_ptr(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/src/opus_encoder.rs:1555:42 [INFO] [stdout] | [INFO] [stdout] 1555 | music_bandwidth_thresholds = stereo_music_bandwidth_thresholds.as_ptr(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/src/opus_encoder.rs:1557:42 [INFO] [stdout] | [INFO] [stdout] 1557 | voice_bandwidth_thresholds = mono_voice_bandwidth_thresholds.as_ptr(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/src/opus_encoder.rs:1558:42 [INFO] [stdout] | [INFO] [stdout] 1558 | music_bandwidth_thresholds = mono_music_bandwidth_thresholds.as_ptr(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/src/opus_projection_encoder.rs:239:17 [INFO] [stdout] | [INFO] [stdout] 239 | mapping_matrix_foa_mixing_data.as_ptr(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/src/opus_projection_encoder.rs:248:17 [INFO] [stdout] | [INFO] [stdout] 248 | mapping_matrix_soa_mixing_data.as_ptr(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/src/opus_projection_encoder.rs:257:17 [INFO] [stdout] | [INFO] [stdout] 257 | mapping_matrix_toa_mixing_data.as_ptr(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/src/opus_projection_encoder.rs:275:17 [INFO] [stdout] | [INFO] [stdout] 275 | mapping_matrix_foa_demixing_data.as_ptr(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/src/opus_projection_encoder.rs:284:17 [INFO] [stdout] | [INFO] [stdout] 284 | mapping_matrix_soa_demixing_data.as_ptr(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/src/opus_projection_encoder.rs:293:17 [INFO] [stdout] | [INFO] [stdout] 293 | mapping_matrix_toa_demixing_data.as_ptr(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `unopus` (lib) due to 11 previous errors; 36 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: useless assignment of variable of type `f32` to itself [INFO] [stdout] --> src/src/analysis.rs:1098:5 [INFO] [stdout] | [INFO] [stdout] 1098 | E = E; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless assignment of variable of type `f32` to itself [INFO] [stdout] --> src/src/analysis.rs:1114:13 [INFO] [stdout] | [INFO] [stdout] 1114 | binE_0 = binE_0; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless assignment of variable of type `f32` to itself [INFO] [stdout] --> src/src/analysis.rs:1313:9 [INFO] [stdout] | [INFO] [stdout] 1313 | E_1 = E_1; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: union `sFIR_union` is never used [INFO] [stdout] --> src/silk/resampler/mod.rs:106:11 [INFO] [stdout] | [INFO] [stdout] 106 | pub union sFIR_union { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/celt/bands.rs:578:34 [INFO] [stdout] | [INFO] [stdout] 578 | let ordery: *const i32 = ordery_table [INFO] [stdout] | __________________________________^ [INFO] [stdout] 579 | | .as_ptr() [INFO] [stdout] | |_____________________^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/celt/bands.rs:621:34 [INFO] [stdout] | [INFO] [stdout] 621 | let ordery: *const i32 = ordery_table [INFO] [stdout] | __________________________________^ [INFO] [stdout] 622 | | .as_ptr() [INFO] [stdout] | |_____________________^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/celt/celt_encoder.rs:2884:13 [INFO] [stdout] | [INFO] [stdout] 2884 | intensity_thresholds.as_ptr(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/celt/celt_encoder.rs:2885:13 [INFO] [stdout] | [INFO] [stdout] 2885 | intensity_histeresis.as_ptr(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/celt/entdec.rs:47:25 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn ec_dec_init(buf: &mut [u8]) -> ec_dec { [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] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 47 | pub fn ec_dec_init(buf: &mut [u8]) -> ec_dec<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/celt/entenc.rs:69:25 [INFO] [stdout] | [INFO] [stdout] 69 | pub fn ec_enc_init(buf: &mut [u8]) -> ec_enc { [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] 69 | pub fn ec_enc_init(buf: &mut [u8]) -> ec_enc<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/celt/modes/static_modes_float_h.rs:877:15 [INFO] [stdout] | [INFO] [stdout] 877 | unsafe { [&mode48000_960_120 as *const OpusCustomMode] }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 877 | unsafe { [&raw const mode48000_960_120 as *const OpusCustomMode] }; [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/celt/quant_bands.rs:239:63 [INFO] [stdout] | [INFO] [stdout] 239 | ec_enc_icdf(enc, 2 * qi ^ -((qi < 0) as i32), &small_energy_icdf, 2); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 239 | ec_enc_icdf(enc, 2 * qi ^ -((qi < 0) as i32), &raw const small_energy_icdf, 2); [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/celt/quant_bands.rs:582:39 [INFO] [stdout] | [INFO] [stdout] 582 | qi = ec_dec_icdf(dec, &small_energy_icdf, 2); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 582 | qi = ec_dec_icdf(dec, &raw const small_energy_icdf, 2); [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/silk/control_SNR.rs:47:21 [INFO] [stdout] | [INFO] [stdout] 47 | snr_table = silk_TargetRate_NB_21.as_ptr(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/silk/control_SNR.rs:50:21 [INFO] [stdout] | [INFO] [stdout] 50 | snr_table = silk_TargetRate_MB_21.as_ptr(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/silk/control_SNR.rs:53:21 [INFO] [stdout] | [INFO] [stdout] 53 | snr_table = silk_TargetRate_WB_21.as_ptr(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> src/silk/decode_parameters.rs:32:10 [INFO] [stdout] | [INFO] [stdout] 32 | &(*psDec).indices.NLSFIndices[..(*psDec).psNLSF_CB.order as usize + 1], [INFO] [stdout] | ^^-----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this raw pointer has type `*mut silk_decoder_state` [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] note: autoref is being applied to this expression, resulting in: `&[i8; 17]` [INFO] [stdout] --> src/silk/decode_parameters.rs:32:10 [INFO] [stdout] | [INFO] [stdout] 32 | &(*psDec).indices.NLSFIndices[..(*psDec).psNLSF_CB.order as usize + 1], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[deny(dangerous_implicit_autorefs)]` on by default [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 32 | &(&(*psDec).indices.NLSFIndices)[..(*psDec).psNLSF_CB.order as usize + 1], [INFO] [stdout] | ++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> src/silk/enc_API.rs:351:22 [INFO] [stdout] | [INFO] [stdout] 351 | &mut (*psEnc).state_Fxx[0].sCmn.inputBuf [INFO] [stdout] | ^ ----- this raw pointer has type `*mut silk_encoder` [INFO] [stdout] | ______________________| [INFO] [stdout] | | [INFO] [stdout] 352 | | [((*psEnc).state_Fxx[0].sCmn.inputBufIx + 2) as usize..] [INFO] [stdout] 353 | | [..nSamplesToBuffer as usize], [INFO] [stdout] | |_________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] note: autoref is being applied to this expression, resulting in: `&mut [i16]` [INFO] [stdout] --> src/silk/enc_API.rs:351:22 [INFO] [stdout] | [INFO] [stdout] 351 | &mut (*psEnc).state_Fxx[0].sCmn.inputBuf [INFO] [stdout] | ______________________^ [INFO] [stdout] 352 | | [((*psEnc).state_Fxx[0].sCmn.inputBufIx + 2) as usize..] [INFO] [stdout] | |____________________________________________________________________________^ [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 351 ~ &mut (&mut (*psEnc).state_Fxx[0].sCmn.inputBuf [INFO] [stdout] 352 ~ [((*psEnc).state_Fxx[0].sCmn.inputBufIx + 2) as usize..]) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> src/silk/enc_API.rs:351:22 [INFO] [stdout] | [INFO] [stdout] 351 | &mut (*psEnc).state_Fxx[0].sCmn.inputBuf [INFO] [stdout] | ^ ----- this raw pointer has type `*mut silk_encoder` [INFO] [stdout] | ______________________| [INFO] [stdout] | | [INFO] [stdout] 352 | | [((*psEnc).state_Fxx[0].sCmn.inputBufIx + 2) as usize..] [INFO] [stdout] | |____________________________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] note: autoref is being applied to this expression, resulting in: `&mut [i16; 322]` [INFO] [stdout] --> src/silk/enc_API.rs:351:22 [INFO] [stdout] | [INFO] [stdout] 351 | &mut (*psEnc).state_Fxx[0].sCmn.inputBuf [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 351 | &mut (&mut (*psEnc).state_Fxx[0].sCmn.inputBuf) [INFO] [stdout] | +++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> src/silk/enc_API.rs:376:22 [INFO] [stdout] | [INFO] [stdout] 376 | &mut (*psEnc).state_Fxx[1].sCmn.inputBuf [INFO] [stdout] | ^ ----- this raw pointer has type `*mut silk_encoder` [INFO] [stdout] | ______________________| [INFO] [stdout] | | [INFO] [stdout] 377 | | [((*psEnc).state_Fxx[1].sCmn.inputBufIx + 2) as usize..] [INFO] [stdout] 378 | | [..nSamplesToBuffer as usize], [INFO] [stdout] | |_________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] note: autoref is being applied to this expression, resulting in: `&mut [i16]` [INFO] [stdout] --> src/silk/enc_API.rs:376:22 [INFO] [stdout] | [INFO] [stdout] 376 | &mut (*psEnc).state_Fxx[1].sCmn.inputBuf [INFO] [stdout] | ______________________^ [INFO] [stdout] 377 | | [((*psEnc).state_Fxx[1].sCmn.inputBufIx + 2) as usize..] [INFO] [stdout] | |____________________________________________________________________________^ [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 376 ~ &mut (&mut (*psEnc).state_Fxx[1].sCmn.inputBuf [INFO] [stdout] 377 ~ [((*psEnc).state_Fxx[1].sCmn.inputBufIx + 2) as usize..]) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> src/silk/enc_API.rs:376:22 [INFO] [stdout] | [INFO] [stdout] 376 | &mut (*psEnc).state_Fxx[1].sCmn.inputBuf [INFO] [stdout] | ^ ----- this raw pointer has type `*mut silk_encoder` [INFO] [stdout] | ______________________| [INFO] [stdout] | | [INFO] [stdout] 377 | | [((*psEnc).state_Fxx[1].sCmn.inputBufIx + 2) as usize..] [INFO] [stdout] | |____________________________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] note: autoref is being applied to this expression, resulting in: `&mut [i16; 322]` [INFO] [stdout] --> src/silk/enc_API.rs:376:22 [INFO] [stdout] | [INFO] [stdout] 376 | &mut (*psEnc).state_Fxx[1].sCmn.inputBuf [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 376 | &mut (&mut (*psEnc).state_Fxx[1].sCmn.inputBuf) [INFO] [stdout] | +++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> src/silk/enc_API.rs:399:22 [INFO] [stdout] | [INFO] [stdout] 399 | &mut (*psEnc).state_Fxx[0].sCmn.inputBuf [INFO] [stdout] | ^ ----- this raw pointer has type `*mut silk_encoder` [INFO] [stdout] | ______________________| [INFO] [stdout] | | [INFO] [stdout] 400 | | [((*psEnc).state_Fxx[0].sCmn.inputBufIx + 2) as usize..] [INFO] [stdout] 401 | | [..nSamplesToBuffer as usize], [INFO] [stdout] | |_________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] note: autoref is being applied to this expression, resulting in: `&mut [i16]` [INFO] [stdout] --> src/silk/enc_API.rs:399:22 [INFO] [stdout] | [INFO] [stdout] 399 | &mut (*psEnc).state_Fxx[0].sCmn.inputBuf [INFO] [stdout] | ______________________^ [INFO] [stdout] 400 | | [((*psEnc).state_Fxx[0].sCmn.inputBufIx + 2) as usize..] [INFO] [stdout] | |____________________________________________________________________________^ [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 399 ~ &mut (&mut (*psEnc).state_Fxx[0].sCmn.inputBuf [INFO] [stdout] 400 ~ [((*psEnc).state_Fxx[0].sCmn.inputBufIx + 2) as usize..]) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> src/silk/enc_API.rs:399:22 [INFO] [stdout] | [INFO] [stdout] 399 | &mut (*psEnc).state_Fxx[0].sCmn.inputBuf [INFO] [stdout] | ^ ----- this raw pointer has type `*mut silk_encoder` [INFO] [stdout] | ______________________| [INFO] [stdout] | | [INFO] [stdout] 400 | | [((*psEnc).state_Fxx[0].sCmn.inputBufIx + 2) as usize..] [INFO] [stdout] | |____________________________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] note: autoref is being applied to this expression, resulting in: `&mut [i16; 322]` [INFO] [stdout] --> src/silk/enc_API.rs:399:22 [INFO] [stdout] | [INFO] [stdout] 399 | &mut (*psEnc).state_Fxx[0].sCmn.inputBuf [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 399 | &mut (&mut (*psEnc).state_Fxx[0].sCmn.inputBuf) [INFO] [stdout] | +++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> src/silk/enc_API.rs:410:26 [INFO] [stdout] | [INFO] [stdout] 410 | &mut (*psEnc).state_Fxx[1].sCmn.inputBuf [INFO] [stdout] | ^ ----- this raw pointer has type `*mut silk_encoder` [INFO] [stdout] | __________________________| [INFO] [stdout] | | [INFO] [stdout] 411 | | [((*psEnc).state_Fxx[1].sCmn.inputBufIx + 2) as usize..], [INFO] [stdout] | |________________________________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] note: autoref is being applied to this expression, resulting in: `&mut [i16; 322]` [INFO] [stdout] --> src/silk/enc_API.rs:410:26 [INFO] [stdout] | [INFO] [stdout] 410 | &mut (*psEnc).state_Fxx[1].sCmn.inputBuf [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 410 | &mut (&mut (*psEnc).state_Fxx[1].sCmn.inputBuf) [INFO] [stdout] | +++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> src/silk/enc_API.rs:440:22 [INFO] [stdout] | [INFO] [stdout] 440 | &mut (*psEnc).state_Fxx[0].sCmn.inputBuf [INFO] [stdout] | ^ ----- this raw pointer has type `*mut silk_encoder` [INFO] [stdout] | ______________________| [INFO] [stdout] | | [INFO] [stdout] 441 | | [((*psEnc).state_Fxx[0].sCmn.inputBufIx + 2) as usize..] [INFO] [stdout] 442 | | [..nSamplesToBuffer as usize], [INFO] [stdout] | |_________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] note: autoref is being applied to this expression, resulting in: `&mut [i16]` [INFO] [stdout] --> src/silk/enc_API.rs:440:22 [INFO] [stdout] | [INFO] [stdout] 440 | &mut (*psEnc).state_Fxx[0].sCmn.inputBuf [INFO] [stdout] | ______________________^ [INFO] [stdout] 441 | | [((*psEnc).state_Fxx[0].sCmn.inputBufIx + 2) as usize..] [INFO] [stdout] | |____________________________________________________________________________^ [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 440 ~ &mut (&mut (*psEnc).state_Fxx[0].sCmn.inputBuf [INFO] [stdout] 441 ~ [((*psEnc).state_Fxx[0].sCmn.inputBufIx + 2) as usize..]) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> src/silk/enc_API.rs:440:22 [INFO] [stdout] | [INFO] [stdout] 440 | &mut (*psEnc).state_Fxx[0].sCmn.inputBuf [INFO] [stdout] | ^ ----- this raw pointer has type `*mut silk_encoder` [INFO] [stdout] | ______________________| [INFO] [stdout] | | [INFO] [stdout] 441 | | [((*psEnc).state_Fxx[0].sCmn.inputBufIx + 2) as usize..] [INFO] [stdout] | |____________________________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] note: autoref is being applied to this expression, resulting in: `&mut [i16; 322]` [INFO] [stdout] --> src/silk/enc_API.rs:440:22 [INFO] [stdout] | [INFO] [stdout] 440 | &mut (*psEnc).state_Fxx[0].sCmn.inputBuf [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 440 | &mut (&mut (*psEnc).state_Fxx[0].sCmn.inputBuf) [INFO] [stdout] | +++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implicit autoref creates a reference to the dereference of a raw pointer [INFO] [stdout] --> src/silk/float/find_LPC_FLP.rs:66:18 [INFO] [stdout] | [INFO] [stdout] 66 | &(*psEncC).prev_NLSFq_Q15[..(*psEncC).predictLPCOrder as usize], [INFO] [stdout] | ^^------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this raw pointer has type `*mut silk_encoder_state` [INFO] [stdout] | [INFO] [stdout] = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements [INFO] [stdout] note: autoref is being applied to this expression, resulting in: `&[i16; 16]` [INFO] [stdout] --> src/silk/float/find_LPC_FLP.rs:66:18 [INFO] [stdout] | [INFO] [stdout] 66 | &(*psEncC).prev_NLSFq_Q15[..(*psEncC).predictLPCOrder as usize], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: try using a raw pointer method instead; or if this reference is intentional, make it explicit [INFO] [stdout] | [INFO] [stdout] 66 | &(&(*psEncC).prev_NLSFq_Q15)[..(*psEncC).predictLPCOrder as usize], [INFO] [stdout] | ++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/src/analysis.rs:1513:19 [INFO] [stdout] | [INFO] [stdout] 1513 | compute_dense(&layer0, layer_out.as_mut_ptr(), features.as_mut_ptr()); [INFO] [stdout] | ^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 1513 | compute_dense(&raw const layer0, layer_out.as_mut_ptr(), features.as_mut_ptr()); [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/src/analysis.rs:1515:9 [INFO] [stdout] | [INFO] [stdout] 1515 | &layer1, [INFO] [stdout] | ^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 1515 | &raw const layer1, [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/src/analysis.rs:1520:9 [INFO] [stdout] | [INFO] [stdout] 1520 | &layer2, [INFO] [stdout] | ^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 1520 | &raw const layer2, [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/src/mlp_data.rs:250:19 [INFO] [stdout] | [INFO] [stdout] 250 | bias: layer0_bias.as_ptr(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/src/mlp_data.rs:251:28 [INFO] [stdout] | [INFO] [stdout] 251 | input_weights: layer0_weights.as_ptr(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/src/mlp_data.rs:262:19 [INFO] [stdout] | [INFO] [stdout] 262 | bias: layer1_bias.as_ptr(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/src/mlp_data.rs:263:28 [INFO] [stdout] | [INFO] [stdout] 263 | input_weights: layer1_weights.as_ptr(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/src/mlp_data.rs:264:32 [INFO] [stdout] | [INFO] [stdout] 264 | recurrent_weights: layer1_recur_weights.as_ptr(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/src/mlp_data.rs:274:19 [INFO] [stdout] | [INFO] [stdout] 274 | bias: layer2_bias.as_ptr(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/src/mlp_data.rs:275:28 [INFO] [stdout] | [INFO] [stdout] 275 | input_weights: layer2_weights.as_ptr(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/src/opus_encoder.rs:1554:42 [INFO] [stdout] | [INFO] [stdout] 1554 | voice_bandwidth_thresholds = stereo_voice_bandwidth_thresholds.as_ptr(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/src/opus_encoder.rs:1555:42 [INFO] [stdout] | [INFO] [stdout] 1555 | music_bandwidth_thresholds = stereo_music_bandwidth_thresholds.as_ptr(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/src/opus_encoder.rs:1557:42 [INFO] [stdout] | [INFO] [stdout] 1557 | voice_bandwidth_thresholds = mono_voice_bandwidth_thresholds.as_ptr(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/src/opus_encoder.rs:1558:42 [INFO] [stdout] | [INFO] [stdout] 1558 | music_bandwidth_thresholds = mono_music_bandwidth_thresholds.as_ptr(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/src/opus_projection_encoder.rs:239:17 [INFO] [stdout] | [INFO] [stdout] 239 | mapping_matrix_foa_mixing_data.as_ptr(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/src/opus_projection_encoder.rs:248:17 [INFO] [stdout] | [INFO] [stdout] 248 | mapping_matrix_soa_mixing_data.as_ptr(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/src/opus_projection_encoder.rs:257:17 [INFO] [stdout] | [INFO] [stdout] 257 | mapping_matrix_toa_mixing_data.as_ptr(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/src/opus_projection_encoder.rs:275:17 [INFO] [stdout] | [INFO] [stdout] 275 | mapping_matrix_foa_demixing_data.as_ptr(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/src/opus_projection_encoder.rs:284:17 [INFO] [stdout] | [INFO] [stdout] 284 | mapping_matrix_soa_demixing_data.as_ptr(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/src/opus_projection_encoder.rs:293:17 [INFO] [stdout] | [INFO] [stdout] 293 | mapping_matrix_toa_demixing_data.as_ptr(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `unopus` (lib test) due to 11 previous errors; 36 warnings emitted [INFO] running `Command { std: "docker" "inspect" "87cb380790b775865669ef9acdd69899c094f147487612ff93272735e4ff8701", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "87cb380790b775865669ef9acdd69899c094f147487612ff93272735e4ff8701", kill_on_drop: false }` [INFO] [stdout] 87cb380790b775865669ef9acdd69899c094f147487612ff93272735e4ff8701