[INFO] fetching crate ldpc-toolbox 0.6.3... [INFO] checking ldpc-toolbox-0.6.3 against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] extracting crate ldpc-toolbox 0.6.3 into /workspace/builds/worker-5-tc2/source [INFO] validating manifest of crates.io crate ldpc-toolbox 0.6.3 on toolchain ccf408f4326a858c00dd845a64a86b16f360a801 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate ldpc-toolbox 0.6.3 [INFO] finished tweaking crates.io crate ldpc-toolbox 0.6.3 [INFO] tweaked toml for crates.io crate ldpc-toolbox 0.6.3 written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] crate crates.io crate ldpc-toolbox 0.6.3 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" "+ccf408f4326a858c00dd845a64a86b16f360a801" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 647291725d7ab0258a26f75c63b8ff1cfc3e092104a2d1281b98fb8aac34447f [INFO] running `Command { std: "docker" "start" "-a" "647291725d7ab0258a26f75c63b8ff1cfc3e092104a2d1281b98fb8aac34447f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "647291725d7ab0258a26f75c63b8ff1cfc3e092104a2d1281b98fb8aac34447f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "647291725d7ab0258a26f75c63b8ff1cfc3e092104a2d1281b98fb8aac34447f", kill_on_drop: false }` [INFO] [stdout] 647291725d7ab0258a26f75c63b8ff1cfc3e092104a2d1281b98fb8aac34447f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] fa370a9ef684445ae67865c78389791e9485bfa6448f2bc6c53d7f6aad3557b8 [INFO] running `Command { std: "docker" "start" "-a" "fa370a9ef684445ae67865c78389791e9485bfa6448f2bc6c53d7f6aad3557b8", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Migrating Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Compiling libm v0.2.8 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling cfg_aliases v0.1.1 [INFO] [stderr] Compiling matrixmultiply v0.3.8 [INFO] [stderr] Checking anstyle v1.0.7 [INFO] [stderr] Checking ppv-lite86 v0.2.17 [INFO] [stderr] Checking colorchoice v1.0.1 [INFO] [stderr] Checking is_terminal_polyfill v1.70.0 [INFO] [stderr] Checking anstyle-query v1.1.0 [INFO] [stderr] Checking rawpointer v0.2.1 [INFO] [stderr] Checking anstyle-parse v0.2.4 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Compiling thiserror v1.0.61 [INFO] [stderr] Checking clap_lex v0.7.1 [INFO] [stderr] Compiling nix v0.28.0 [INFO] [stderr] Checking either v1.12.0 [INFO] [stderr] Checking unicode-width v0.1.13 [INFO] [stderr] Checking humantime v2.1.0 [INFO] [stderr] Checking console v0.15.8 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking anstream v0.6.14 [INFO] [stderr] Checking rayon v1.10.0 [INFO] [stderr] Checking clap_builder v4.5.7 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Compiling syn v2.0.68 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking num-complex v0.4.6 [INFO] [stderr] Checking rand_distr v0.4.3 [INFO] [stderr] Checking ctrlc v3.4.4 [INFO] [stderr] Checking ndarray v0.15.6 [INFO] [stderr] Compiling termination_attrib v0.1.1 [INFO] [stderr] Checking termination v0.1.2 [INFO] [stderr] Compiling clap_derive v4.5.5 [INFO] [stderr] Compiling thiserror-impl v1.0.61 [INFO] [stderr] Compiling enum-iterator-derive v1.4.0 [INFO] [stderr] Checking enum-iterator v2.1.0 [INFO] [stderr] Checking clap v4.5.7 [INFO] [stderr] Checking ldpc-toolbox v0.6.3 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `ldpc_toolbox` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/decoder/arithmetic.rs [INFO] [stderr] * src/decoder/factory.rs [INFO] [stderr] * src/simulation/ber.rs [INFO] [stderr] [INFO] [stderr] This likely indicates a bug in either rustc or cargo itself, [INFO] [stderr] and we would appreciate a bug report! You're likely to see [INFO] [stderr] a number of compiler warnings after this message which cargo [INFO] [stderr] attempted to fix but failed. If you could open an issue at [INFO] [stderr] https://github.com/rust-lang/rust/issues [INFO] [stderr] quoting the full output of this command we'd be very appreciative! [INFO] [stderr] Note that you may be able to make some more progress in the near-term [INFO] [stderr] fixing code with the `--broken-code` flag [INFO] [stderr] [INFO] [stderr] The following errors were reported: [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/decoder/arithmetic.rs:159:24 [INFO] [stderr] | [INFO] [stderr] 159 | ($ty:ident, $f:ty, $min_x:expr_2021) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/decoder/arithmetic.rs:301:24 [INFO] [stderr] | [INFO] [stderr] 301 | ($ty:ident, $f:ty, $tanh_clamp:expr_2021) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/decoder/arithmetic.rs:627:6 [INFO] [stderr] | [INFO] [stderr] 627 | ($degree_one_clip:expr_2021, $jones_clip:expr_2021) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/decoder/arithmetic.rs:627:34 [INFO] [stderr] | [INFO] [stderr] 627 | ($degree_one_clip:expr_2021, $jones_clip:expr_2021) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/decoder/arithmetic.rs:661:17 [INFO] [stderr] | [INFO] [stderr] 661 | ($ty:ident, $jones_clip:expr_2021, $check_hardlimit:expr_2021, $degree_one_clip:expr_2021) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/decoder/arithmetic.rs:661:40 [INFO] [stderr] | [INFO] [stderr] 661 | ($ty:ident, $jones_clip:expr_2021, $check_hardlimit:expr_2021, $degree_one_clip:expr_2021) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/decoder/arithmetic.rs:661:68 [INFO] [stderr] | [INFO] [stderr] 661 | ($ty:ident, $jones_clip:expr_2021, $check_hardlimit:expr_2021, $degree_one_clip:expr_2021) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/decoder/arithmetic.rs:1081:17 [INFO] [stderr] | [INFO] [stderr] 1081 | ($ty:ident, $jones_clip:expr_2021, $check_hardlimit:expr_2021, $degree_one_clip:expr_2021) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/decoder/arithmetic.rs:1081:40 [INFO] [stderr] | [INFO] [stderr] 1081 | ($ty:ident, $jones_clip:expr_2021, $check_hardlimit:expr_2021, $degree_one_clip:expr_2021) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/decoder/arithmetic.rs:1081:68 [INFO] [stderr] | [INFO] [stderr] 1081 | ($ty:ident, $jones_clip:expr_2021, $check_hardlimit:expr_2021, $degree_one_clip:expr_2021) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/decoder/factory.rs:189:27 [INFO] [stderr] | [INFO] [stderr] 189 | (flooding, $arith:ty, $h:expr_2021) => { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/decoder/factory.rs:192:37 [INFO] [stderr] | [INFO] [stderr] 192 | (horizontal_layered, $arith:ty, $h:expr_2021) => { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/encoder.rs:54:17 [INFO] [stdout] | [INFO] [stdout] 54 | Staircase { gen: SparseMatrix }, [INFO] [stdout] | ^^^ help: you can use a raw identifier to stay compatible: `r#gen` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #49716 [INFO] [stdout] = note: `--force-warn keyword-idents-2024` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/decoder/factory.rs:198:43 [INFO] [stderr] | [INFO] [stderr] 198 | ($($var:path, $arith:ty, $decoder:tt, $text:expr_2021);+;) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/simulation/ber.rs:176:6 [INFO] [stderr] | [INFO] [stderr] 176 | ($self:expr_2021, $current_statistics:expr_2021, $ebn0_db:expr_2021, $final:expr_2021) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/simulation/ber.rs:176:23 [INFO] [stderr] | [INFO] [stderr] 176 | ($self:expr_2021, $current_statistics:expr_2021, $ebn0_db:expr_2021, $final:expr_2021) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/simulation/ber.rs:176:54 [INFO] [stderr] | [INFO] [stderr] 176 | ($self:expr_2021, $current_statistics:expr_2021, $ebn0_db:expr_2021, $final:expr_2021) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/simulation/ber.rs:176:74 [INFO] [stderr] | [INFO] [stderr] 176 | ($self:expr_2021, $current_statistics:expr_2021, $ebn0_db:expr_2021, $final:expr_2021) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error: aborting due to 17 previous errors [INFO] [stderr] [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/encoder.rs:68:21 [INFO] [stdout] | [INFO] [stdout] 68 | let mut gen = SparseMatrix::new(n, m - n); [INFO] [stdout] | ^^^ help: you can use a raw identifier to stay compatible: `r#gen` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #49716 [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] For more information about this error, try `rustc --explain E0658`. [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/encoder.rs:71:21 [INFO] [stdout] | [INFO] [stdout] 71 | gen.insert(j, k); [INFO] [stdout] | ^^^ help: you can use a raw identifier to stay compatible: `r#gen` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #49716 [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/encoder.rs:74:38 [INFO] [stdout] | [INFO] [stdout] 74 | EncoderType::Staircase { gen } [INFO] [stdout] | ^^^ help: you can use a raw identifier to stay compatible: `r#gen` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #49716 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/encoder.rs:105:38 [INFO] [stdout] | [INFO] [stdout] 105 | EncoderType::Staircase { gen } => { [INFO] [stdout] | ^^^ help: you can use a raw identifier to stay compatible: `r#gen` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #49716 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/encoder.rs:108:25 [INFO] [stdout] | [INFO] [stdout] 108 | (0..gen.num_rows()).map(|j| gen.iter_row(j).map(|&k| message[k]).sum()), [INFO] [stdout] | ^^^ help: you can use a raw identifier to stay compatible: `r#gen` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #49716 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/encoder.rs:108:49 [INFO] [stdout] | [INFO] [stdout] 108 | (0..gen.num_rows()).map(|j| gen.iter_row(j).map(|&k| message[k]).sum()), [INFO] [stdout] | ^^^ help: you can use a raw identifier to stay compatible: `r#gen` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #49716 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/c_api/decoder.rs:75:3 [INFO] [stdout] | [INFO] [stdout] 75 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] = note: `--force-warn unsafe-attr-outside-unsafe` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 75 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/c_api/decoder.rs:91:3 [INFO] [stdout] | [INFO] [stdout] 91 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 91 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/c_api/decoder.rs:107:3 [INFO] [stdout] | [INFO] [stdout] 107 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 107 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/c_api/decoder.rs:112:3 [INFO] [stdout] | [INFO] [stdout] 112 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 112 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/c_api/decoder.rs:127:3 [INFO] [stdout] | [INFO] [stdout] 127 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 127 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/c_api/encoder.rs:59:3 [INFO] [stdout] | [INFO] [stdout] 59 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 59 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/c_api/encoder.rs:73:3 [INFO] [stdout] | [INFO] [stdout] 73 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 73 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/c_api/encoder.rs:87:3 [INFO] [stdout] | [INFO] [stdout] 87 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 87 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/c_api/encoder.rs:92:3 [INFO] [stdout] | [INFO] [stdout] 92 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 92 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/decoder/arithmetic.rs:159:31 [INFO] [stdout] | [INFO] [stdout] 159 | ($ty:ident, $f:ty, $min_x:expr) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] = note: `--force-warn edition-2024-expr-fragment-specifier` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 159 | ($ty:ident, $f:ty, $min_x:expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/decoder/arithmetic.rs:301:36 [INFO] [stdout] | [INFO] [stdout] 301 | ($ty:ident, $f:ty, $tanh_clamp:expr) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 301 | ($ty:ident, $f:ty, $tanh_clamp:expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/decoder/arithmetic.rs:627:23 [INFO] [stdout] | [INFO] [stdout] 627 | ($degree_one_clip:expr, $jones_clip:expr) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 627 | ($degree_one_clip:expr_2021, $jones_clip:expr) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/decoder/arithmetic.rs:627:41 [INFO] [stdout] | [INFO] [stdout] 627 | ($degree_one_clip:expr, $jones_clip:expr) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 627 | ($degree_one_clip:expr, $jones_clip:expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/decoder/arithmetic.rs:661:29 [INFO] [stdout] | [INFO] [stdout] 661 | ($ty:ident, $jones_clip:expr, $check_hardlimit:expr, $degree_one_clip:expr) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 661 | ($ty:ident, $jones_clip:expr_2021, $check_hardlimit:expr, $degree_one_clip:expr) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/decoder/arithmetic.rs:661:52 [INFO] [stdout] | [INFO] [stdout] 661 | ($ty:ident, $jones_clip:expr, $check_hardlimit:expr, $degree_one_clip:expr) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 661 | ($ty:ident, $jones_clip:expr, $check_hardlimit:expr_2021, $degree_one_clip:expr) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/decoder/arithmetic.rs:661:75 [INFO] [stdout] | [INFO] [stdout] 661 | ($ty:ident, $jones_clip:expr, $check_hardlimit:expr, $degree_one_clip:expr) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 661 | ($ty:ident, $jones_clip:expr, $check_hardlimit:expr, $degree_one_clip:expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/decoder/arithmetic.rs:1081:29 [INFO] [stdout] | [INFO] [stdout] 1081 | ($ty:ident, $jones_clip:expr, $check_hardlimit:expr, $degree_one_clip:expr) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 1081 | ($ty:ident, $jones_clip:expr_2021, $check_hardlimit:expr, $degree_one_clip:expr) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/decoder/arithmetic.rs:1081:52 [INFO] [stdout] | [INFO] [stdout] 1081 | ($ty:ident, $jones_clip:expr, $check_hardlimit:expr, $degree_one_clip:expr) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 1081 | ($ty:ident, $jones_clip:expr, $check_hardlimit:expr_2021, $degree_one_clip:expr) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/decoder/arithmetic.rs:1081:75 [INFO] [stdout] | [INFO] [stdout] 1081 | ($ty:ident, $jones_clip:expr, $check_hardlimit:expr, $degree_one_clip:expr) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 1081 | ($ty:ident, $jones_clip:expr, $check_hardlimit:expr, $degree_one_clip:expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/decoder/factory.rs:189:30 [INFO] [stdout] | [INFO] [stdout] 189 | (flooding, $arith:ty, $h:expr) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 189 | (flooding, $arith:ty, $h:expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/decoder/factory.rs:192:40 [INFO] [stdout] | [INFO] [stdout] 192 | (horizontal_layered, $arith:ty, $h:expr) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 192 | (horizontal_layered, $arith:ty, $h:expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/decoder/factory.rs:198:49 [INFO] [stdout] | [INFO] [stdout] 198 | ($($var:path, $arith:ty, $decoder:tt, $text:expr);+;) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 198 | ($($var:path, $arith:ty, $decoder:tt, $text:expr_2021);+;) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/simulation/ber.rs:176:12 [INFO] [stdout] | [INFO] [stdout] 176 | ($self:expr, $current_statistics:expr, $ebn0_db:expr, $final:expr) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 176 | ($self:expr_2021, $current_statistics:expr, $ebn0_db:expr, $final:expr) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/simulation/ber.rs:176:38 [INFO] [stdout] | [INFO] [stdout] 176 | ($self:expr, $current_statistics:expr, $ebn0_db:expr, $final:expr) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 176 | ($self:expr, $current_statistics:expr_2021, $ebn0_db:expr, $final:expr) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/simulation/ber.rs:176:53 [INFO] [stdout] | [INFO] [stdout] 176 | ($self:expr, $current_statistics:expr, $ebn0_db:expr, $final:expr) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 176 | ($self:expr, $current_statistics:expr, $ebn0_db:expr_2021, $final:expr) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/simulation/ber.rs:176:66 [INFO] [stdout] | [INFO] [stdout] 176 | ($self:expr, $current_statistics:expr, $ebn0_db:expr, $final:expr) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 176 | ($self:expr, $current_statistics:expr, $ebn0_db:expr, $final:expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `c_api::c_to_string` is unsafe and requires unsafe block [INFO] [stdout] --> src/c_api/decoder.rs:81:27 [INFO] [stdout] | [INFO] [stdout] 81 | let alist_file_path = c_to_string(alist_file_path); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/c_api/decoder.rs:76:1 [INFO] [stdout] | [INFO] [stdout] 76 | / unsafe extern "C" fn ldpc_toolbox_decoder_ctor( [INFO] [stdout] 77 | | alist_file_path: *const c_char, [INFO] [stdout] 78 | | implementation: *const c_char, [INFO] [stdout] 79 | | puncturing: *const c_char, [INFO] [stdout] 80 | | ) -> *mut c_void { [INFO] [stdout] | |________________^ [INFO] [stdout] = note: `--force-warn unsafe-op-in-unsafe-fn` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `c_api::c_to_string` is unsafe and requires unsafe block [INFO] [stdout] --> src/c_api/decoder.rs:82:26 [INFO] [stdout] | [INFO] [stdout] 82 | let implementation = c_to_string(implementation); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `c_api::c_to_string` is unsafe and requires unsafe block [INFO] [stdout] --> src/c_api/decoder.rs:83:22 [INFO] [stdout] | [INFO] [stdout] 83 | let puncturing = c_to_string(puncturing); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `c_api::c_to_string` is unsafe and requires unsafe block [INFO] [stdout] --> src/c_api/decoder.rs:97:17 [INFO] [stdout] | [INFO] [stdout] 97 | let alist = c_to_string(alist); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/c_api/decoder.rs:92:1 [INFO] [stdout] | [INFO] [stdout] 92 | / unsafe extern "C" fn ldpc_toolbox_decoder_ctor_alist_string( [INFO] [stdout] 93 | | alist: *const c_char, [INFO] [stdout] 94 | | implementation: *const c_char, [INFO] [stdout] 95 | | puncturing: *const c_char, [INFO] [stdout] 96 | | ) -> *mut c_void { [INFO] [stdout] | |________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `c_api::c_to_string` is unsafe and requires unsafe block [INFO] [stdout] --> src/c_api/decoder.rs:98:26 [INFO] [stdout] | [INFO] [stdout] 98 | let implementation = c_to_string(implementation); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `c_api::c_to_string` is unsafe and requires unsafe block [INFO] [stdout] --> src/c_api/decoder.rs:99:22 [INFO] [stdout] | [INFO] [stdout] 99 | let puncturing = c_to_string(puncturing); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::boxed::Box::::from_raw` is unsafe and requires unsafe block [INFO] [stdout] --> src/c_api/decoder.rs:109:10 [INFO] [stdout] | [INFO] [stdout] 109 | drop(Box::from_raw(decoder as *mut Decoder)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/c_api/decoder.rs:108:1 [INFO] [stdout] | [INFO] [stdout] 108 | unsafe extern "C" fn ldpc_toolbox_decoder_dtor(decoder: *mut c_void) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::slice::from_raw_parts_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/c_api/decoder.rs:121:18 [INFO] [stdout] | [INFO] [stdout] 121 | let output = std::slice::from_raw_parts_mut(output, size_t_to_usize(output_len)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/c_api/decoder.rs:113:1 [INFO] [stdout] | [INFO] [stdout] 113 | / unsafe extern "C" fn ldpc_toolbox_decoder_decode_f64( [INFO] [stdout] 114 | | decoder: *mut c_void, [INFO] [stdout] 115 | | output: *mut u8, [INFO] [stdout] 116 | | output_len: size_t, [INFO] [stdout] ... | [INFO] [stdout] 119 | | max_iterations: u32, [INFO] [stdout] 120 | | ) -> i32 { [INFO] [stdout] | |________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::slice::from_raw_parts` is unsafe and requires unsafe block [INFO] [stdout] --> src/c_api/decoder.rs:122:16 [INFO] [stdout] | [INFO] [stdout] 122 | let llrs = std::slice::from_raw_parts(llrs, size_t_to_usize(llrs_len)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/c_api/decoder.rs:123:24 [INFO] [stdout] | [INFO] [stdout] 123 | let decoder = &mut *(decoder as *mut Decoder); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::slice::from_raw_parts_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/c_api/decoder.rs:136:18 [INFO] [stdout] | [INFO] [stdout] 136 | let output = std::slice::from_raw_parts_mut(output, size_t_to_usize(output_len)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/c_api/decoder.rs:128:1 [INFO] [stdout] | [INFO] [stdout] 128 | / unsafe extern "C" fn ldpc_toolbox_decoder_decode_f32( [INFO] [stdout] 129 | | decoder: *mut c_void, [INFO] [stdout] 130 | | output: *mut u8, [INFO] [stdout] 131 | | output_len: size_t, [INFO] [stdout] ... | [INFO] [stdout] 134 | | max_iterations: u32, [INFO] [stdout] 135 | | ) -> i32 { [INFO] [stdout] | |________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::slice::from_raw_parts` is unsafe and requires unsafe block [INFO] [stdout] --> src/c_api/decoder.rs:137:16 [INFO] [stdout] | [INFO] [stdout] 137 | let llrs = std::slice::from_raw_parts(llrs, size_t_to_usize(llrs_len)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/c_api/decoder.rs:138:24 [INFO] [stdout] | [INFO] [stdout] 138 | let decoder = &mut *(decoder as *mut Decoder); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `c_api::c_to_string` is unsafe and requires unsafe block [INFO] [stdout] --> src/c_api/encoder.rs:64:27 [INFO] [stdout] | [INFO] [stdout] 64 | let alist_file_path = c_to_string(alist_file_path); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/c_api/encoder.rs:60:1 [INFO] [stdout] | [INFO] [stdout] 60 | / unsafe extern "C" fn ldpc_toolbox_encoder_ctor( [INFO] [stdout] 61 | | alist_file_path: *const c_char, [INFO] [stdout] 62 | | puncturing: *const c_char, [INFO] [stdout] 63 | | ) -> *mut c_void { [INFO] [stdout] | |________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `c_api::c_to_string` is unsafe and requires unsafe block [INFO] [stdout] --> src/c_api/encoder.rs:65:22 [INFO] [stdout] | [INFO] [stdout] 65 | let puncturing = c_to_string(puncturing); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `c_api::c_to_string` is unsafe and requires unsafe block [INFO] [stdout] --> src/c_api/encoder.rs:78:17 [INFO] [stdout] | [INFO] [stdout] 78 | let alist = c_to_string(alist); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/c_api/encoder.rs:74:1 [INFO] [stdout] | [INFO] [stdout] 74 | / unsafe extern "C" fn ldpc_toolbox_encoder_ctor_alist_string( [INFO] [stdout] 75 | | alist: *const c_char, [INFO] [stdout] 76 | | puncturing: *const c_char, [INFO] [stdout] 77 | | ) -> *mut c_void { [INFO] [stdout] | |________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `c_api::c_to_string` is unsafe and requires unsafe block [INFO] [stdout] --> src/c_api/encoder.rs:79:22 [INFO] [stdout] | [INFO] [stdout] 79 | let puncturing = c_to_string(puncturing); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::boxed::Box::::from_raw` is unsafe and requires unsafe block [INFO] [stdout] --> src/c_api/encoder.rs:89:10 [INFO] [stdout] | [INFO] [stdout] 89 | drop(Box::from_raw(encoder as *mut Encoder)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/c_api/encoder.rs:88:1 [INFO] [stdout] | [INFO] [stdout] 88 | unsafe extern "C" fn ldpc_toolbox_encoder_dtor(encoder: *mut c_void) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::slice::from_raw_parts_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/c_api/encoder.rs:100:18 [INFO] [stdout] | [INFO] [stdout] 100 | let output = std::slice::from_raw_parts_mut(output, size_t_to_usize(output_len)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/c_api/encoder.rs:93:1 [INFO] [stdout] | [INFO] [stdout] 93 | / unsafe extern "C" fn ldpc_toolbox_encoder_encode( [INFO] [stdout] 94 | | encoder: *mut c_void, [INFO] [stdout] 95 | | output: *mut u8, [INFO] [stdout] 96 | | output_len: size_t, [INFO] [stdout] 97 | | input: *const u8, [INFO] [stdout] 98 | | input_len: size_t, [INFO] [stdout] 99 | | ) { [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::slice::from_raw_parts` is unsafe and requires unsafe block [INFO] [stdout] --> src/c_api/encoder.rs:101:17 [INFO] [stdout] | [INFO] [stdout] 101 | let input = std::slice::from_raw_parts(input, size_t_to_usize(input_len)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/c_api/encoder.rs:102:24 [INFO] [stdout] | [INFO] [stdout] 102 | let encoder = &mut *(encoder as *mut Encoder); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ffi::CStr::from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/c_api.rs:11:29 [INFO] [stdout] | [INFO] [stdout] 11 | String::from_utf8_lossy(CStr::from_ptr(s).to_bytes()).to_string() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/c_api.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | unsafe fn c_to_string(s: *const c_char) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/c_api/decoder.rs:84:8 [INFO] [stdout] | [INFO] [stdout] 84 | if let Ok(decoder) = Decoder::from_alist_file(&alist_file_path, &implementation, &puncturing) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^------------------------------------------------------------------------ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/c_api/decoder.rs:86:5 [INFO] [stdout] | [INFO] [stdout] 86 | } else { [INFO] [stdout] | ^ [INFO] [stdout] = note: `--force-warn if-let-rescope` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 84 ~ match Decoder::from_alist_file(&alist_file_path, &implementation, &puncturing) { Ok(decoder) => { [INFO] [stdout] 85 | Box::into_raw(Box::new(decoder)) as *mut c_void [INFO] [stdout] 86 ~ } _ => { [INFO] [stdout] 87 | std::ptr::null_mut() [INFO] [stdout] 88 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/c_api/decoder.rs:100:8 [INFO] [stdout] | [INFO] [stdout] 100 | if let Ok(decoder) = Decoder::new(&alist, &implementation, &puncturing) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^-------------------------------------------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/c_api/decoder.rs:102:5 [INFO] [stdout] | [INFO] [stdout] 102 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 100 ~ match Decoder::new(&alist, &implementation, &puncturing) { Ok(decoder) => { [INFO] [stdout] 101 | Box::into_raw(Box::new(decoder)) as *mut c_void [INFO] [stdout] 102 ~ } _ => { [INFO] [stdout] 103 | std::ptr::null_mut() [INFO] [stdout] 104 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/c_api/encoder.rs:47:26 [INFO] [stdout] | [INFO] [stdout] 47 | let encoded = if let Some(p) = &self.puncturer { [INFO] [stdout] | ^^^^^^^^^^^^^^^-------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/c_api/encoder.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 49 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 47 ~ let encoded = match &self.puncturer { Some(p) => { [INFO] [stdout] 48 | p.puncture(&encoded).unwrap() [INFO] [stdout] 49 ~ } _ => { [INFO] [stdout] 50 | encoded [INFO] [stdout] 51 ~ }}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/c_api/encoder.rs:66:8 [INFO] [stdout] | [INFO] [stdout] 66 | if let Ok(encoder) = Encoder::from_alist_file(&alist_file_path, &puncturing) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^------------------------------------------------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/c_api/encoder.rs:68:5 [INFO] [stdout] | [INFO] [stdout] 68 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 66 ~ match Encoder::from_alist_file(&alist_file_path, &puncturing) { Ok(encoder) => { [INFO] [stdout] 67 | Box::into_raw(Box::new(encoder)) as *mut c_void [INFO] [stdout] 68 ~ } _ => { [INFO] [stdout] 69 | std::ptr::null_mut() [INFO] [stdout] 70 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/c_api/encoder.rs:80:8 [INFO] [stdout] | [INFO] [stdout] 80 | if let Ok(encoder) = Encoder::new(&alist, &puncturing) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^--------------------------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/c_api/encoder.rs:82:5 [INFO] [stdout] | [INFO] [stdout] 82 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 80 ~ match Encoder::new(&alist, &puncturing) { Ok(encoder) => { [INFO] [stdout] 81 | Box::into_raw(Box::new(encoder)) as *mut c_void [INFO] [stdout] 82 ~ } _ => { [INFO] [stdout] 83 | std::ptr::null_mut() [INFO] [stdout] 84 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/cli/ber.rs:279:24 [INFO] [stdout] | [INFO] [stdout] 279 | if let Some(f) = &mut self.output_file_ldpc { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^--------------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/cli/ber.rs:281:21 [INFO] [stdout] | [INFO] [stdout] 281 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 279 ~ match &mut self.output_file_ldpc { Some(f) => { [INFO] [stdout] 280 | writeln!(f, "{}", &Self::format_progress(s, true))?; [INFO] [stdout] 281 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/simulation/ber.rs:222:33 [INFO] [stdout] | [INFO] [stdout] 222 | let puncturer_rate = if let Some(p) = puncturer.as_ref() { [INFO] [stdout] | ^^^^^^^^^^^^^^---------^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/simulation/ber.rs:224:9 [INFO] [stdout] | [INFO] [stdout] 224 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 222 ~ let puncturer_rate = match puncturer.as_ref() { Some(p) => { [INFO] [stdout] 223 | p.rate() [INFO] [stdout] 224 ~ } _ => { [INFO] [stdout] 225 | 1.0 [INFO] [stdout] 226 ~ }}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/simulation/ber.rs:316:20 [INFO] [stdout] | [INFO] [stdout] 316 | if let Err(e) = handle.join().unwrap() { [INFO] [stdout] | ^^^^^^^^^^^^^---------------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/simulation/ber.rs:318:17 [INFO] [stdout] | [INFO] [stdout] 318 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 316 ~ match handle.join().unwrap() { Err(e) => { [INFO] [stdout] 317 | join_error = Some(e); [INFO] [stdout] 318 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 63 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `ldpc_toolbox` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/decoder/arithmetic.rs [INFO] [stderr] * src/decoder/factory.rs [INFO] [stderr] * src/simulation/ber.rs [INFO] [stderr] [INFO] [stderr] This likely indicates a bug in either rustc or cargo itself, [INFO] [stderr] and we would appreciate a bug report! You're likely to see [INFO] [stderr] a number of compiler warnings after this message which cargo [INFO] [stderr] attempted to fix but failed. If you could open an issue at [INFO] [stderr] https://github.com/rust-lang/rust/issues [INFO] [stderr] quoting the full output of this command we'd be very appreciative! [INFO] [stderr] Note that you may be able to make some more progress in the near-term [INFO] [stderr] fixing code with the `--broken-code` flag [INFO] [stderr] [INFO] [stderr] The following errors were reported: [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/decoder/arithmetic.rs:159:24 [INFO] [stderr] | [INFO] [stderr] 159 | ($ty:ident, $f:ty, $min_x:expr_2021) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/decoder/arithmetic.rs:301:24 [INFO] [stderr] | [INFO] [stderr] 301 | ($ty:ident, $f:ty, $tanh_clamp:expr_2021) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/decoder/arithmetic.rs:627:6 [INFO] [stderr] | [INFO] [stderr] 627 | ($degree_one_clip:expr_2021, $jones_clip:expr_2021) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/decoder/arithmetic.rs:627:34 [INFO] [stderr] | [INFO] [stderr] 627 | ($degree_one_clip:expr_2021, $jones_clip:expr_2021) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/decoder/arithmetic.rs:661:17 [INFO] [stderr] | [INFO] [stderr] 661 | ($ty:ident, $jones_clip:expr_2021, $check_hardlimit:expr_2021, $degree_one_clip:expr_2021) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/decoder/arithmetic.rs:661:40 [INFO] [stderr] | [INFO] [stderr] 661 | ($ty:ident, $jones_clip:expr_2021, $check_hardlimit:expr_2021, $degree_one_clip:expr_2021) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/decoder/arithmetic.rs:661:68 [INFO] [stderr] | [INFO] [stderr] 661 | ($ty:ident, $jones_clip:expr_2021, $check_hardlimit:expr_2021, $degree_one_clip:expr_2021) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/decoder/arithmetic.rs:1081:17 [INFO] [stderr] | [INFO] [stderr] 1081 | ($ty:ident, $jones_clip:expr_2021, $check_hardlimit:expr_2021, $degree_one_clip:expr_2021) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/decoder/arithmetic.rs:1081:40 [INFO] [stderr] | [INFO] [stderr] 1081 | ($ty:ident, $jones_clip:expr_2021, $check_hardlimit:expr_2021, $degree_one_clip:expr_2021) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/decoder/arithmetic.rs:1081:68 [INFO] [stderr] | [INFO] [stderr] 1081 | ($ty:ident, $jones_clip:expr_2021, $check_hardlimit:expr_2021, $degree_one_clip:expr_2021) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/decoder/factory.rs:189:27 [INFO] [stderr] | [INFO] [stderr] 189 | (flooding, $arith:ty, $h:expr_2021) => { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/decoder/factory.rs:192:37 [INFO] [stderr] | [INFO] [stderr] 192 | (horizontal_layered, $arith:ty, $h:expr_2021) => { [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/encoder.rs:54:17 [INFO] [stdout] | [INFO] [stdout] 54 | Staircase { gen: SparseMatrix }, [INFO] [stdout] | ^^^ help: you can use a raw identifier to stay compatible: `r#gen` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #49716 [INFO] [stdout] = note: `--force-warn keyword-idents-2024` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/encoder.rs:68:21 [INFO] [stdout] | [INFO] [stdout] 68 | let mut gen = SparseMatrix::new(n, m - n); [INFO] [stdout] | ^^^ help: you can use a raw identifier to stay compatible: `r#gen` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #49716 [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/encoder.rs:71:21 [INFO] [stdout] | [INFO] [stdout] 71 | gen.insert(j, k); [INFO] [stdout] | ^^^ help: you can use a raw identifier to stay compatible: `r#gen` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #49716 [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/encoder.rs:74:38 [INFO] [stdout] | [INFO] [stdout] 74 | EncoderType::Staircase { gen } [INFO] [stdout] | ^^^ help: you can use a raw identifier to stay compatible: `r#gen` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #49716 [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/encoder.rs:105:38 [INFO] [stdout] | [INFO] [stdout] 105 | EncoderType::Staircase { gen } => { [INFO] [stdout] | ^^^ help: you can use a raw identifier to stay compatible: `r#gen` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #49716 [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/encoder.rs:108:25 [INFO] [stdout] | [INFO] [stdout] 108 | (0..gen.num_rows()).map(|j| gen.iter_row(j).map(|&k| message[k]).sum()), [INFO] [stdout] | ^^^ help: you can use a raw identifier to stay compatible: `r#gen` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #49716 [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/encoder.rs:108:49 [INFO] [stdout] | [INFO] [stdout] 108 | (0..gen.num_rows()).map(|j| gen.iter_row(j).map(|&k| message[k]).sum()), [INFO] [stdout] | ^^^ help: you can use a raw identifier to stay compatible: `r#gen` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #49716 [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/c_api/decoder.rs:75:3 [INFO] [stdout] | [INFO] [stdout] 75 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] = note: `--force-warn unsafe-attr-outside-unsafe` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 75 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] --> src/decoder/factory.rs:198:43 [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/c_api/decoder.rs:91:3 [INFO] [stdout] | [INFO] [stdout] 91 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 91 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/c_api/decoder.rs:107:3 [INFO] [stdout] | [INFO] [stdout] 107 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 107 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] 198 | ($($var:path, $arith:ty, $decoder:tt, $text:expr_2021);+;) => { [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/c_api/decoder.rs:112:3 [INFO] [stdout] | [INFO] [stdout] 112 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 112 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/c_api/decoder.rs:127:3 [INFO] [stdout] | [INFO] [stdout] 127 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 127 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/c_api/encoder.rs:59:3 [INFO] [stdout] | [INFO] [stdout] 59 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 59 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/c_api/encoder.rs:73:3 [INFO] [stdout] | [INFO] [stdout] 73 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 73 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/c_api/encoder.rs:87:3 [INFO] [stdout] | [INFO] [stdout] 87 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 87 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/simulation/ber.rs:176:6 [INFO] [stderr] | [INFO] [stderr] 176 | ($self:expr_2021, $current_statistics:expr_2021, $ebn0_db:expr_2021, $final:expr_2021) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/c_api/encoder.rs:92:3 [INFO] [stdout] | [INFO] [stdout] 92 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 92 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/decoder/arithmetic.rs:159:31 [INFO] [stdout] | [INFO] [stdout] 159 | ($ty:ident, $f:ty, $min_x:expr) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] = note: `--force-warn edition-2024-expr-fragment-specifier` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 159 | ($ty:ident, $f:ty, $min_x:expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/decoder/arithmetic.rs:301:36 [INFO] [stdout] | [INFO] [stdout] 301 | ($ty:ident, $f:ty, $tanh_clamp:expr) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 301 | ($ty:ident, $f:ty, $tanh_clamp:expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] --> src/simulation/ber.rs:176:23 [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/decoder/arithmetic.rs:627:23 [INFO] [stdout] | [INFO] [stdout] 627 | ($degree_one_clip:expr, $jones_clip:expr) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 627 | ($degree_one_clip:expr_2021, $jones_clip:expr) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/decoder/arithmetic.rs:627:41 [INFO] [stdout] | [INFO] [stdout] 627 | ($degree_one_clip:expr, $jones_clip:expr) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 627 | ($degree_one_clip:expr, $jones_clip:expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] 176 | ($self:expr_2021, $current_statistics:expr_2021, $ebn0_db:expr_2021, $final:expr_2021) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/simulation/ber.rs:176:54 [INFO] [stderr] | [INFO] [stderr] 176 | ($self:expr_2021, $current_statistics:expr_2021, $ebn0_db:expr_2021, $final:expr_2021) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/simulation/ber.rs:176:74 [INFO] [stderr] | [INFO] [stderr] 176 | ($self:expr_2021, $current_statistics:expr_2021, $ebn0_db:expr_2021, $final:expr_2021) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error: aborting due to 17 previous errors [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0658`. [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/decoder/arithmetic.rs:661:29 [INFO] [stdout] | [INFO] [stdout] 661 | ($ty:ident, $jones_clip:expr, $check_hardlimit:expr, $degree_one_clip:expr) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 661 | ($ty:ident, $jones_clip:expr_2021, $check_hardlimit:expr, $degree_one_clip:expr) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/decoder/arithmetic.rs:661:52 [INFO] [stdout] | [INFO] [stdout] 661 | ($ty:ident, $jones_clip:expr, $check_hardlimit:expr, $degree_one_clip:expr) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 661 | ($ty:ident, $jones_clip:expr, $check_hardlimit:expr_2021, $degree_one_clip:expr) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/decoder/arithmetic.rs:661:75 [INFO] [stdout] | [INFO] [stdout] 661 | ($ty:ident, $jones_clip:expr, $check_hardlimit:expr, $degree_one_clip:expr) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 661 | ($ty:ident, $jones_clip:expr, $check_hardlimit:expr, $degree_one_clip:expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/decoder/arithmetic.rs:1081:29 [INFO] [stdout] | [INFO] [stdout] 1081 | ($ty:ident, $jones_clip:expr, $check_hardlimit:expr, $degree_one_clip:expr) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 1081 | ($ty:ident, $jones_clip:expr_2021, $check_hardlimit:expr, $degree_one_clip:expr) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/decoder/arithmetic.rs:1081:52 [INFO] [stdout] | [INFO] [stdout] 1081 | ($ty:ident, $jones_clip:expr, $check_hardlimit:expr, $degree_one_clip:expr) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 1081 | ($ty:ident, $jones_clip:expr, $check_hardlimit:expr_2021, $degree_one_clip:expr) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/decoder/arithmetic.rs:1081:75 [INFO] [stdout] | [INFO] [stdout] 1081 | ($ty:ident, $jones_clip:expr, $check_hardlimit:expr, $degree_one_clip:expr) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 1081 | ($ty:ident, $jones_clip:expr, $check_hardlimit:expr, $degree_one_clip:expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/decoder/factory.rs:189:30 [INFO] [stdout] | [INFO] [stdout] 189 | (flooding, $arith:ty, $h:expr) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 189 | (flooding, $arith:ty, $h:expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/decoder/factory.rs:192:40 [INFO] [stdout] | [INFO] [stdout] 192 | (horizontal_layered, $arith:ty, $h:expr) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 192 | (horizontal_layered, $arith:ty, $h:expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/decoder/factory.rs:198:49 [INFO] [stdout] | [INFO] [stdout] 198 | ($($var:path, $arith:ty, $decoder:tt, $text:expr);+;) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 198 | ($($var:path, $arith:ty, $decoder:tt, $text:expr_2021);+;) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/simulation/ber.rs:176:12 [INFO] [stdout] | [INFO] [stdout] 176 | ($self:expr, $current_statistics:expr, $ebn0_db:expr, $final:expr) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 176 | ($self:expr_2021, $current_statistics:expr, $ebn0_db:expr, $final:expr) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/simulation/ber.rs:176:38 [INFO] [stdout] | [INFO] [stdout] 176 | ($self:expr, $current_statistics:expr, $ebn0_db:expr, $final:expr) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 176 | ($self:expr, $current_statistics:expr_2021, $ebn0_db:expr, $final:expr) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/simulation/ber.rs:176:53 [INFO] [stdout] | [INFO] [stdout] 176 | ($self:expr, $current_statistics:expr, $ebn0_db:expr, $final:expr) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 176 | ($self:expr, $current_statistics:expr, $ebn0_db:expr_2021, $final:expr) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/simulation/ber.rs:176:66 [INFO] [stdout] | [INFO] [stdout] 176 | ($self:expr, $current_statistics:expr, $ebn0_db:expr, $final:expr) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 176 | ($self:expr, $current_statistics:expr, $ebn0_db:expr, $final:expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `c_api::c_to_string` is unsafe and requires unsafe block [INFO] [stdout] --> src/c_api/decoder.rs:81:27 [INFO] [stdout] | [INFO] [stdout] 81 | let alist_file_path = c_to_string(alist_file_path); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/c_api/decoder.rs:76:1 [INFO] [stdout] | [INFO] [stdout] 76 | / unsafe extern "C" fn ldpc_toolbox_decoder_ctor( [INFO] [stdout] 77 | | alist_file_path: *const c_char, [INFO] [stdout] 78 | | implementation: *const c_char, [INFO] [stdout] 79 | | puncturing: *const c_char, [INFO] [stdout] 80 | | ) -> *mut c_void { [INFO] [stdout] | |________________^ [INFO] [stdout] = note: `--force-warn unsafe-op-in-unsafe-fn` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `c_api::c_to_string` is unsafe and requires unsafe block [INFO] [stdout] --> src/c_api/decoder.rs:82:26 [INFO] [stdout] | [INFO] [stdout] 82 | let implementation = c_to_string(implementation); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `c_api::c_to_string` is unsafe and requires unsafe block [INFO] [stdout] --> src/c_api/decoder.rs:83:22 [INFO] [stdout] | [INFO] [stdout] 83 | let puncturing = c_to_string(puncturing); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `c_api::c_to_string` is unsafe and requires unsafe block [INFO] [stdout] --> src/c_api/decoder.rs:97:17 [INFO] [stdout] | [INFO] [stdout] 97 | let alist = c_to_string(alist); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/c_api/decoder.rs:92:1 [INFO] [stdout] | [INFO] [stdout] 92 | / unsafe extern "C" fn ldpc_toolbox_decoder_ctor_alist_string( [INFO] [stdout] 93 | | alist: *const c_char, [INFO] [stdout] 94 | | implementation: *const c_char, [INFO] [stdout] 95 | | puncturing: *const c_char, [INFO] [stdout] 96 | | ) -> *mut c_void { [INFO] [stdout] | |________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `c_api::c_to_string` is unsafe and requires unsafe block [INFO] [stdout] --> src/c_api/decoder.rs:98:26 [INFO] [stdout] | [INFO] [stdout] 98 | let implementation = c_to_string(implementation); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `c_api::c_to_string` is unsafe and requires unsafe block [INFO] [stdout] --> src/c_api/decoder.rs:99:22 [INFO] [stdout] | [INFO] [stdout] 99 | let puncturing = c_to_string(puncturing); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::boxed::Box::::from_raw` is unsafe and requires unsafe block [INFO] [stdout] --> src/c_api/decoder.rs:109:10 [INFO] [stdout] | [INFO] [stdout] 109 | drop(Box::from_raw(decoder as *mut Decoder)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/c_api/decoder.rs:108:1 [INFO] [stdout] | [INFO] [stdout] 108 | unsafe extern "C" fn ldpc_toolbox_decoder_dtor(decoder: *mut c_void) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::slice::from_raw_parts_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/c_api/decoder.rs:121:18 [INFO] [stdout] | [INFO] [stdout] 121 | let output = std::slice::from_raw_parts_mut(output, size_t_to_usize(output_len)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/c_api/decoder.rs:113:1 [INFO] [stdout] | [INFO] [stdout] 113 | / unsafe extern "C" fn ldpc_toolbox_decoder_decode_f64( [INFO] [stdout] 114 | | decoder: *mut c_void, [INFO] [stdout] 115 | | output: *mut u8, [INFO] [stdout] 116 | | output_len: size_t, [INFO] [stdout] ... | [INFO] [stdout] 119 | | max_iterations: u32, [INFO] [stdout] 120 | | ) -> i32 { [INFO] [stdout] | |________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::slice::from_raw_parts` is unsafe and requires unsafe block [INFO] [stdout] --> src/c_api/decoder.rs:122:16 [INFO] [stdout] | [INFO] [stdout] 122 | let llrs = std::slice::from_raw_parts(llrs, size_t_to_usize(llrs_len)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/c_api/decoder.rs:123:24 [INFO] [stdout] | [INFO] [stdout] 123 | let decoder = &mut *(decoder as *mut Decoder); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::slice::from_raw_parts_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/c_api/decoder.rs:136:18 [INFO] [stdout] | [INFO] [stdout] 136 | let output = std::slice::from_raw_parts_mut(output, size_t_to_usize(output_len)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/c_api/decoder.rs:128:1 [INFO] [stdout] | [INFO] [stdout] 128 | / unsafe extern "C" fn ldpc_toolbox_decoder_decode_f32( [INFO] [stdout] 129 | | decoder: *mut c_void, [INFO] [stdout] 130 | | output: *mut u8, [INFO] [stdout] 131 | | output_len: size_t, [INFO] [stdout] ... | [INFO] [stdout] 134 | | max_iterations: u32, [INFO] [stdout] 135 | | ) -> i32 { [INFO] [stdout] | |________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::slice::from_raw_parts` is unsafe and requires unsafe block [INFO] [stdout] --> src/c_api/decoder.rs:137:16 [INFO] [stdout] | [INFO] [stdout] 137 | let llrs = std::slice::from_raw_parts(llrs, size_t_to_usize(llrs_len)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/c_api/decoder.rs:138:24 [INFO] [stdout] | [INFO] [stdout] 138 | let decoder = &mut *(decoder as *mut Decoder); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `c_api::c_to_string` is unsafe and requires unsafe block [INFO] [stdout] --> src/c_api/encoder.rs:64:27 [INFO] [stdout] | [INFO] [stdout] 64 | let alist_file_path = c_to_string(alist_file_path); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/c_api/encoder.rs:60:1 [INFO] [stdout] | [INFO] [stdout] 60 | / unsafe extern "C" fn ldpc_toolbox_encoder_ctor( [INFO] [stdout] 61 | | alist_file_path: *const c_char, [INFO] [stdout] 62 | | puncturing: *const c_char, [INFO] [stdout] 63 | | ) -> *mut c_void { [INFO] [stdout] | |________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `c_api::c_to_string` is unsafe and requires unsafe block [INFO] [stdout] --> src/c_api/encoder.rs:65:22 [INFO] [stdout] | [INFO] [stdout] 65 | let puncturing = c_to_string(puncturing); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `c_api::c_to_string` is unsafe and requires unsafe block [INFO] [stdout] --> src/c_api/encoder.rs:78:17 [INFO] [stdout] | [INFO] [stdout] 78 | let alist = c_to_string(alist); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/c_api/encoder.rs:74:1 [INFO] [stdout] | [INFO] [stdout] 74 | / unsafe extern "C" fn ldpc_toolbox_encoder_ctor_alist_string( [INFO] [stdout] 75 | | alist: *const c_char, [INFO] [stdout] 76 | | puncturing: *const c_char, [INFO] [stdout] 77 | | ) -> *mut c_void { [INFO] [stdout] | |________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `c_api::c_to_string` is unsafe and requires unsafe block [INFO] [stdout] --> src/c_api/encoder.rs:79:22 [INFO] [stdout] | [INFO] [stdout] 79 | let puncturing = c_to_string(puncturing); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::boxed::Box::::from_raw` is unsafe and requires unsafe block [INFO] [stdout] --> src/c_api/encoder.rs:89:10 [INFO] [stdout] | [INFO] [stdout] 89 | drop(Box::from_raw(encoder as *mut Encoder)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/c_api/encoder.rs:88:1 [INFO] [stdout] | [INFO] [stdout] 88 | unsafe extern "C" fn ldpc_toolbox_encoder_dtor(encoder: *mut c_void) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::slice::from_raw_parts_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/c_api/encoder.rs:100:18 [INFO] [stdout] | [INFO] [stdout] 100 | let output = std::slice::from_raw_parts_mut(output, size_t_to_usize(output_len)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/c_api/encoder.rs:93:1 [INFO] [stdout] | [INFO] [stdout] 93 | / unsafe extern "C" fn ldpc_toolbox_encoder_encode( [INFO] [stdout] 94 | | encoder: *mut c_void, [INFO] [stdout] 95 | | output: *mut u8, [INFO] [stdout] 96 | | output_len: size_t, [INFO] [stdout] 97 | | input: *const u8, [INFO] [stdout] 98 | | input_len: size_t, [INFO] [stdout] 99 | | ) { [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::slice::from_raw_parts` is unsafe and requires unsafe block [INFO] [stdout] --> src/c_api/encoder.rs:101:17 [INFO] [stdout] | [INFO] [stdout] 101 | let input = std::slice::from_raw_parts(input, size_t_to_usize(input_len)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/c_api/encoder.rs:102:24 [INFO] [stdout] | [INFO] [stdout] 102 | let encoder = &mut *(encoder as *mut Encoder); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ffi::CStr::from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/c_api.rs:11:29 [INFO] [stdout] | [INFO] [stdout] 11 | String::from_utf8_lossy(CStr::from_ptr(s).to_bytes()).to_string() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/c_api.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | unsafe fn c_to_string(s: *const c_char) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/c_api/decoder.rs:84:8 [INFO] [stdout] | [INFO] [stdout] 84 | if let Ok(decoder) = Decoder::from_alist_file(&alist_file_path, &implementation, &puncturing) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^------------------------------------------------------------------------ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/c_api/decoder.rs:86:5 [INFO] [stdout] | [INFO] [stdout] 86 | } else { [INFO] [stdout] | ^ [INFO] [stdout] = note: `--force-warn if-let-rescope` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 84 ~ match Decoder::from_alist_file(&alist_file_path, &implementation, &puncturing) { Ok(decoder) => { [INFO] [stdout] 85 | Box::into_raw(Box::new(decoder)) as *mut c_void [INFO] [stdout] 86 ~ } _ => { [INFO] [stdout] 87 | std::ptr::null_mut() [INFO] [stdout] 88 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/c_api/decoder.rs:100:8 [INFO] [stdout] | [INFO] [stdout] 100 | if let Ok(decoder) = Decoder::new(&alist, &implementation, &puncturing) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^-------------------------------------------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/c_api/decoder.rs:102:5 [INFO] [stdout] | [INFO] [stdout] 102 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 100 ~ match Decoder::new(&alist, &implementation, &puncturing) { Ok(decoder) => { [INFO] [stdout] 101 | Box::into_raw(Box::new(decoder)) as *mut c_void [INFO] [stdout] 102 ~ } _ => { [INFO] [stdout] 103 | std::ptr::null_mut() [INFO] [stdout] 104 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/c_api/encoder.rs:47:26 [INFO] [stdout] | [INFO] [stdout] 47 | let encoded = if let Some(p) = &self.puncturer { [INFO] [stdout] | ^^^^^^^^^^^^^^^-------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/c_api/encoder.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 49 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 47 ~ let encoded = match &self.puncturer { Some(p) => { [INFO] [stdout] 48 | p.puncture(&encoded).unwrap() [INFO] [stdout] 49 ~ } _ => { [INFO] [stdout] 50 | encoded [INFO] [stdout] 51 ~ }}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/c_api/encoder.rs:66:8 [INFO] [stdout] | [INFO] [stdout] 66 | if let Ok(encoder) = Encoder::from_alist_file(&alist_file_path, &puncturing) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^------------------------------------------------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/c_api/encoder.rs:68:5 [INFO] [stdout] | [INFO] [stdout] 68 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 66 ~ match Encoder::from_alist_file(&alist_file_path, &puncturing) { Ok(encoder) => { [INFO] [stdout] 67 | Box::into_raw(Box::new(encoder)) as *mut c_void [INFO] [stdout] 68 ~ } _ => { [INFO] [stdout] 69 | std::ptr::null_mut() [INFO] [stdout] 70 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/c_api/encoder.rs:80:8 [INFO] [stdout] | [INFO] [stdout] 80 | if let Ok(encoder) = Encoder::new(&alist, &puncturing) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^--------------------------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/c_api/encoder.rs:82:5 [INFO] [stdout] | [INFO] [stdout] 82 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 80 ~ match Encoder::new(&alist, &puncturing) { Ok(encoder) => { [INFO] [stdout] 81 | Box::into_raw(Box::new(encoder)) as *mut c_void [INFO] [stdout] 82 ~ } _ => { [INFO] [stdout] 83 | std::ptr::null_mut() [INFO] [stdout] 84 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/cli/ber.rs:279:24 [INFO] [stdout] | [INFO] [stdout] 279 | if let Some(f) = &mut self.output_file_ldpc { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^--------------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/cli/ber.rs:281:21 [INFO] [stdout] | [INFO] [stdout] 281 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 279 ~ match &mut self.output_file_ldpc { Some(f) => { [INFO] [stdout] 280 | writeln!(f, "{}", &Self::format_progress(s, true))?; [INFO] [stdout] 281 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/simulation/ber.rs:222:33 [INFO] [stdout] | [INFO] [stdout] 222 | let puncturer_rate = if let Some(p) = puncturer.as_ref() { [INFO] [stdout] | ^^^^^^^^^^^^^^---------^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/simulation/ber.rs:224:9 [INFO] [stdout] | [INFO] [stdout] 224 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 222 ~ let puncturer_rate = match puncturer.as_ref() { Some(p) => { [INFO] [stdout] 223 | p.rate() [INFO] [stdout] 224 ~ } _ => { [INFO] [stdout] 225 | 1.0 [INFO] [stdout] 226 ~ }}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/simulation/ber.rs:316:20 [INFO] [stdout] | [INFO] [stdout] 316 | if let Err(e) = handle.join().unwrap() { [INFO] [stdout] | ^^^^^^^^^^^^^---------------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/simulation/ber.rs:318:17 [INFO] [stdout] | [INFO] [stdout] 318 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 316 ~ match handle.join().unwrap() { Err(e) => { [INFO] [stdout] 317 | join_error = Some(e); [INFO] [stdout] 318 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 63 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] Migrating src/main.rs from 2021 edition to 2024 [INFO] [stderr] Migrating examples/external_decoder_ber.rs from 2021 edition to 2024 [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 7.94s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking ldpc-toolbox v0.6.3 (/tmp/fixit) [INFO] [stdout] error: expected identifier, found reserved keyword `gen` [INFO] [stdout] --> src/encoder.rs:54:17 [INFO] [stdout] | [INFO] [stdout] 54 | Staircase { gen: SparseMatrix }, [INFO] [stdout] | --------- ^^^ expected identifier, found reserved keyword [INFO] [stdout] | | [INFO] [stdout] | while parsing this struct [INFO] [stdout] | [INFO] [stdout] help: escape `gen` to use it as an identifier [INFO] [stdout] | [INFO] [stdout] 54 | Staircase { r#gen: SparseMatrix }, [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found reserved keyword `gen` [INFO] [stdout] --> src/encoder.rs:54:17 [INFO] [stdout] | [INFO] [stdout] 54 | Staircase { gen: SparseMatrix }, [INFO] [stdout] | --------- ^^^ expected identifier, found reserved keyword [INFO] [stdout] | | [INFO] [stdout] | while parsing this struct [INFO] [stdout] | [INFO] [stdout] help: escape `gen` to use it as an identifier [INFO] [stdout] | [INFO] [stdout] 54 | Staircase { r#gen: SparseMatrix }, [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found reserved keyword `gen` [INFO] [stdout] --> src/encoder.rs:68:21 [INFO] [stdout] | [INFO] [stdout] 68 | let mut gen = SparseMatrix::new(n, m - n); [INFO] [stdout] | ^^^ expected identifier, found reserved keyword [INFO] [stdout] | [INFO] [stdout] help: escape `gen` to use it as an identifier [INFO] [stdout] | [INFO] [stdout] 68 | let mut r#gen = SparseMatrix::new(n, m - n); [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected expression, found reserved keyword `gen` [INFO] [stdout] --> src/encoder.rs:71:21 [INFO] [stdout] | [INFO] [stdout] 71 | gen.insert(j, k); [INFO] [stdout] | ^^^ expected expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found reserved keyword `gen` [INFO] [stdout] --> src/encoder.rs:68:21 [INFO] [stdout] | [INFO] [stdout] 68 | let mut gen = SparseMatrix::new(n, m - n); [INFO] [stdout] | ^^^ expected identifier, found reserved keyword [INFO] [stdout] | [INFO] [stdout] help: escape `gen` to use it as an identifier [INFO] [stdout] | [INFO] [stdout] 68 | let mut r#gen = SparseMatrix::new(n, m - n); [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected expression, found reserved keyword `gen` [INFO] [stdout] --> src/encoder.rs:71:21 [INFO] [stdout] | [INFO] [stdout] 71 | gen.insert(j, k); [INFO] [stdout] | ^^^ expected expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found reserved keyword `gen` [INFO] [stdout] --> src/encoder.rs:74:38 [INFO] [stdout] | [INFO] [stdout] 74 | EncoderType::Staircase { gen } [INFO] [stdout] | ---------------------- ^^^ expected identifier, found reserved keyword [INFO] [stdout] | | [INFO] [stdout] | while parsing this struct [INFO] [stdout] | [INFO] [stdout] help: escape `gen` to use it as an identifier [INFO] [stdout] | [INFO] [stdout] 74 | EncoderType::Staircase { r#gen } [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found reserved keyword `gen` [INFO] [stdout] --> src/encoder.rs:74:38 [INFO] [stdout] | [INFO] [stdout] 74 | EncoderType::Staircase { gen } [INFO] [stdout] | ---------------------- ^^^ expected identifier, found reserved keyword [INFO] [stdout] | | [INFO] [stdout] | while parsing this struct [INFO] [stdout] | [INFO] [stdout] help: escape `gen` to use it as an identifier [INFO] [stdout] | [INFO] [stdout] 74 | EncoderType::Staircase { r#gen } [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found reserved keyword `gen` [INFO] [stdout] --> src/encoder.rs:105:38 [INFO] [stdout] | [INFO] [stdout] 105 | EncoderType::Staircase { gen } => { [INFO] [stdout] | ^^^ expected identifier, found reserved keyword [INFO] [stdout] | [INFO] [stdout] help: escape `gen` to use it as an identifier [INFO] [stdout] | [INFO] [stdout] 105 | EncoderType::Staircase { r#gen } => { [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found reserved keyword `gen` [INFO] [stdout] --> src/encoder.rs:105:38 [INFO] [stdout] | [INFO] [stdout] 105 | EncoderType::Staircase { gen } => { [INFO] [stdout] | ^^^ expected identifier, found reserved keyword [INFO] [stdout] | [INFO] [stdout] help: escape `gen` to use it as an identifier [INFO] [stdout] | [INFO] [stdout] 105 | EncoderType::Staircase { r#gen } => { [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected expression, found reserved keyword `gen` [INFO] [stdout] --> src/encoder.rs:108:25 [INFO] [stdout] | [INFO] [stdout] 108 | (0..gen.num_rows()).map(|j| gen.iter_row(j).map(|&k| message[k]).sum()), [INFO] [stdout] | ^^^ expected expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected expression, found reserved keyword `gen` [INFO] [stdout] --> src/encoder.rs:108:25 [INFO] [stdout] | [INFO] [stdout] 108 | (0..gen.num_rows()).map(|j| gen.iter_row(j).map(|&k| message[k]).sum()), [INFO] [stdout] | ^^^ expected expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected expression, found reserved keyword `gen` [INFO] [stdout] --> src/encoder.rs:108:49 [INFO] [stdout] | [INFO] [stdout] 108 | (0..gen.num_rows()).map(|j| gen.iter_row(j).map(|&k| message[k]).sum()), [INFO] [stdout] | --- ^^^ expected expression [INFO] [stdout] | | [INFO] [stdout] | while parsing the body of this closure [INFO] [stdout] | [INFO] [stdout] help: you might have meant to open the body of the closure [INFO] [stdout] | [INFO] [stdout] 108 | (0..gen.num_rows()).map(|j| { gen.iter_row(j).map(|&k| message[k]).sum()}), [INFO] [stdout] | + + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected expression, found reserved keyword `gen` [INFO] [stdout] --> src/encoder.rs:108:49 [INFO] [stdout] | [INFO] [stdout] 108 | (0..gen.num_rows()).map(|j| gen.iter_row(j).map(|&k| message[k]).sum()), [INFO] [stdout] | --- ^^^ expected expression [INFO] [stdout] | | [INFO] [stdout] | while parsing the body of this closure [INFO] [stdout] | [INFO] [stdout] help: you might have meant to open the body of the closure [INFO] [stdout] | [INFO] [stdout] 108 | (0..gen.num_rows()).map(|j| { gen.iter_row(j).map(|&k| message[k]).sum()}), [INFO] [stdout] | + + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/c_api/decoder.rs:75:3 [INFO] [stdout] | [INFO] [stdout] 75 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 75 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/c_api/decoder.rs:91:3 [INFO] [stdout] | [INFO] [stdout] 91 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 91 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/c_api/decoder.rs:107:3 [INFO] [stdout] | [INFO] [stdout] 107 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 107 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/c_api/decoder.rs:112:3 [INFO] [stdout] | [INFO] [stdout] 112 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 112 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/c_api/decoder.rs:127:3 [INFO] [stdout] | [INFO] [stdout] 127 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 127 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/c_api/encoder.rs:59:3 [INFO] [stdout] | [INFO] [stdout] 59 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 59 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/c_api/encoder.rs:73:3 [INFO] [stdout] | [INFO] [stdout] 73 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 73 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/c_api/encoder.rs:87:3 [INFO] [stdout] | [INFO] [stdout] 87 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 87 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/c_api/encoder.rs:92:3 [INFO] [stdout] | [INFO] [stdout] 92 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 92 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/c_api/decoder.rs:75:3 [INFO] [stdout] | [INFO] [stdout] 75 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 75 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/c_api/decoder.rs:91:3 [INFO] [stdout] | [INFO] [stdout] 91 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 91 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/c_api/decoder.rs:107:3 [INFO] [stdout] | [INFO] [stdout] 107 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 107 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/c_api/decoder.rs:112:3 [INFO] [stdout] | [INFO] [stdout] 112 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 112 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/c_api/decoder.rs:127:3 [INFO] [stdout] | [INFO] [stdout] 127 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 127 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/c_api/encoder.rs:59:3 [INFO] [stdout] | [INFO] [stdout] 59 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 59 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/c_api/encoder.rs:73:3 [INFO] [stdout] | [INFO] [stdout] 73 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 73 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/c_api/encoder.rs:87:3 [INFO] [stdout] | [INFO] [stdout] 87 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 87 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/c_api/encoder.rs:92:3 [INFO] [stdout] | [INFO] [stdout] 92 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 92 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `c_api::c_to_string` is unsafe and requires unsafe block [INFO] [stdout] --> src/c_api/decoder.rs:81:27 [INFO] [stdout] | [INFO] [stdout] 81 | let alist_file_path = c_to_string(alist_file_path); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/c_api/decoder.rs:76:1 [INFO] [stdout] | [INFO] [stdout] 76 | / unsafe extern "C" fn ldpc_toolbox_decoder_ctor( [INFO] [stdout] 77 | | alist_file_path: *const c_char, [INFO] [stdout] 78 | | implementation: *const c_char, [INFO] [stdout] 79 | | puncturing: *const c_char, [INFO] [stdout] 80 | | ) -> *mut c_void { [INFO] [stdout] | |________________^ [INFO] [stdout] = note: `#[warn(unsafe_op_in_unsafe_fn)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `c_api::c_to_string` is unsafe and requires unsafe block [INFO] [stdout] --> src/c_api/decoder.rs:82:26 [INFO] [stdout] | [INFO] [stdout] 82 | let implementation = c_to_string(implementation); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `c_api::c_to_string` is unsafe and requires unsafe block [INFO] [stdout] --> src/c_api/decoder.rs:83:22 [INFO] [stdout] | [INFO] [stdout] 83 | let puncturing = c_to_string(puncturing); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `c_api::c_to_string` is unsafe and requires unsafe block [INFO] [stdout] --> src/c_api/decoder.rs:97:17 [INFO] [stdout] | [INFO] [stdout] 97 | let alist = c_to_string(alist); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/c_api/decoder.rs:92:1 [INFO] [stdout] | [INFO] [stdout] 92 | / unsafe extern "C" fn ldpc_toolbox_decoder_ctor_alist_string( [INFO] [stdout] 93 | | alist: *const c_char, [INFO] [stdout] 94 | | implementation: *const c_char, [INFO] [stdout] 95 | | puncturing: *const c_char, [INFO] [stdout] 96 | | ) -> *mut c_void { [INFO] [stdout] | |________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `c_api::c_to_string` is unsafe and requires unsafe block [INFO] [stdout] --> src/c_api/decoder.rs:98:26 [INFO] [stdout] | [INFO] [stdout] 98 | let implementation = c_to_string(implementation); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `c_api::c_to_string` is unsafe and requires unsafe block [INFO] [stdout] --> src/c_api/decoder.rs:99:22 [INFO] [stdout] | [INFO] [stdout] 99 | let puncturing = c_to_string(puncturing); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::boxed::Box::::from_raw` is unsafe and requires unsafe block [INFO] [stdout] --> src/c_api/decoder.rs:109:10 [INFO] [stdout] | [INFO] [stdout] 109 | drop(Box::from_raw(decoder as *mut Decoder)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/c_api/decoder.rs:108:1 [INFO] [stdout] | [INFO] [stdout] 108 | unsafe extern "C" fn ldpc_toolbox_decoder_dtor(decoder: *mut c_void) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::slice::from_raw_parts_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/c_api/decoder.rs:121:18 [INFO] [stdout] | [INFO] [stdout] 121 | let output = std::slice::from_raw_parts_mut(output, size_t_to_usize(output_len)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/c_api/decoder.rs:113:1 [INFO] [stdout] | [INFO] [stdout] 113 | / unsafe extern "C" fn ldpc_toolbox_decoder_decode_f64( [INFO] [stdout] 114 | | decoder: *mut c_void, [INFO] [stdout] 115 | | output: *mut u8, [INFO] [stdout] 116 | | output_len: size_t, [INFO] [stdout] ... | [INFO] [stdout] 119 | | max_iterations: u32, [INFO] [stdout] 120 | | ) -> i32 { [INFO] [stdout] | |________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::slice::from_raw_parts` is unsafe and requires unsafe block [INFO] [stdout] --> src/c_api/decoder.rs:122:16 [INFO] [stdout] | [INFO] [stdout] 122 | let llrs = std::slice::from_raw_parts(llrs, size_t_to_usize(llrs_len)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/c_api/decoder.rs:123:24 [INFO] [stdout] | [INFO] [stdout] 123 | let decoder = &mut *(decoder as *mut Decoder); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::slice::from_raw_parts_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/c_api/decoder.rs:136:18 [INFO] [stdout] | [INFO] [stdout] 136 | let output = std::slice::from_raw_parts_mut(output, size_t_to_usize(output_len)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/c_api/decoder.rs:128:1 [INFO] [stdout] | [INFO] [stdout] 128 | / unsafe extern "C" fn ldpc_toolbox_decoder_decode_f32( [INFO] [stdout] 129 | | decoder: *mut c_void, [INFO] [stdout] 130 | | output: *mut u8, [INFO] [stdout] 131 | | output_len: size_t, [INFO] [stdout] ... | [INFO] [stdout] 134 | | max_iterations: u32, [INFO] [stdout] 135 | | ) -> i32 { [INFO] [stdout] | |________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::slice::from_raw_parts` is unsafe and requires unsafe block [INFO] [stdout] --> src/c_api/decoder.rs:137:16 [INFO] [stdout] | [INFO] [stdout] 137 | let llrs = std::slice::from_raw_parts(llrs, size_t_to_usize(llrs_len)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/c_api/decoder.rs:138:24 [INFO] [stdout] | [INFO] [stdout] 138 | let decoder = &mut *(decoder as *mut Decoder); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `c_api::c_to_string` is unsafe and requires unsafe block [INFO] [stdout] --> src/c_api/encoder.rs:64:27 [INFO] [stdout] | [INFO] [stdout] 64 | let alist_file_path = c_to_string(alist_file_path); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/c_api/encoder.rs:60:1 [INFO] [stdout] | [INFO] [stdout] 60 | / unsafe extern "C" fn ldpc_toolbox_encoder_ctor( [INFO] [stdout] 61 | | alist_file_path: *const c_char, [INFO] [stdout] 62 | | puncturing: *const c_char, [INFO] [stdout] 63 | | ) -> *mut c_void { [INFO] [stdout] | |________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `c_api::c_to_string` is unsafe and requires unsafe block [INFO] [stdout] --> src/c_api/encoder.rs:65:22 [INFO] [stdout] | [INFO] [stdout] 65 | let puncturing = c_to_string(puncturing); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `c_api::c_to_string` is unsafe and requires unsafe block [INFO] [stdout] --> src/c_api/encoder.rs:78:17 [INFO] [stdout] | [INFO] [stdout] 78 | let alist = c_to_string(alist); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/c_api/encoder.rs:74:1 [INFO] [stdout] | [INFO] [stdout] 74 | / unsafe extern "C" fn ldpc_toolbox_encoder_ctor_alist_string( [INFO] [stdout] 75 | | alist: *const c_char, [INFO] [stdout] 76 | | puncturing: *const c_char, [INFO] [stdout] 77 | | ) -> *mut c_void { [INFO] [stdout] | |________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `c_api::c_to_string` is unsafe and requires unsafe block [INFO] [stdout] --> src/c_api/encoder.rs:79:22 [INFO] [stdout] | [INFO] [stdout] 79 | let puncturing = c_to_string(puncturing); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::boxed::Box::::from_raw` is unsafe and requires unsafe block [INFO] [stdout] --> src/c_api/encoder.rs:89:10 [INFO] [stdout] | [INFO] [stdout] 89 | drop(Box::from_raw(encoder as *mut Encoder)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/c_api/encoder.rs:88:1 [INFO] [stdout] | [INFO] [stdout] 88 | unsafe extern "C" fn ldpc_toolbox_encoder_dtor(encoder: *mut c_void) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::slice::from_raw_parts_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/c_api/encoder.rs:100:18 [INFO] [stdout] | [INFO] [stdout] 100 | let output = std::slice::from_raw_parts_mut(output, size_t_to_usize(output_len)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/c_api/encoder.rs:93:1 [INFO] [stdout] | [INFO] [stdout] 93 | / unsafe extern "C" fn ldpc_toolbox_encoder_encode( [INFO] [stdout] 94 | | encoder: *mut c_void, [INFO] [stdout] 95 | | output: *mut u8, [INFO] [stdout] 96 | | output_len: size_t, [INFO] [stdout] 97 | | input: *const u8, [INFO] [stdout] 98 | | input_len: size_t, [INFO] [stdout] 99 | | ) { [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::slice::from_raw_parts` is unsafe and requires unsafe block [INFO] [stdout] --> src/c_api/encoder.rs:101:17 [INFO] [stdout] | [INFO] [stdout] 101 | let input = std::slice::from_raw_parts(input, size_t_to_usize(input_len)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/c_api/encoder.rs:102:24 [INFO] [stdout] | [INFO] [stdout] 102 | let encoder = &mut *(encoder as *mut Encoder); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ffi::CStr::from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/c_api.rs:11:29 [INFO] [stdout] | [INFO] [stdout] 11 | String::from_utf8_lossy(CStr::from_ptr(s).to_bytes()).to_string() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/c_api.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | unsafe fn c_to_string(s: *const c_char) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `c_api::c_to_string` is unsafe and requires unsafe block [INFO] [stdout] --> src/c_api/decoder.rs:81:27 [INFO] [stdout] | [INFO] [stdout] 81 | let alist_file_path = c_to_string(alist_file_path); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/c_api/decoder.rs:76:1 [INFO] [stdout] | [INFO] [stdout] 76 | / unsafe extern "C" fn ldpc_toolbox_decoder_ctor( [INFO] [stdout] 77 | | alist_file_path: *const c_char, [INFO] [stdout] 78 | | implementation: *const c_char, [INFO] [stdout] 79 | | puncturing: *const c_char, [INFO] [stdout] 80 | | ) -> *mut c_void { [INFO] [stdout] | |________________^ [INFO] [stdout] = note: `#[warn(unsafe_op_in_unsafe_fn)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `c_api::c_to_string` is unsafe and requires unsafe block [INFO] [stdout] --> src/c_api/decoder.rs:82:26 [INFO] [stdout] | [INFO] [stdout] 82 | let implementation = c_to_string(implementation); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `c_api::c_to_string` is unsafe and requires unsafe block [INFO] [stdout] --> src/c_api/decoder.rs:83:22 [INFO] [stdout] | [INFO] [stdout] 83 | let puncturing = c_to_string(puncturing); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `c_api::c_to_string` is unsafe and requires unsafe block [INFO] [stdout] --> src/c_api/decoder.rs:97:17 [INFO] [stdout] | [INFO] [stdout] 97 | let alist = c_to_string(alist); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/c_api/decoder.rs:92:1 [INFO] [stdout] | [INFO] [stdout] 92 | / unsafe extern "C" fn ldpc_toolbox_decoder_ctor_alist_string( [INFO] [stdout] 93 | | alist: *const c_char, [INFO] [stdout] 94 | | implementation: *const c_char, [INFO] [stdout] 95 | | puncturing: *const c_char, [INFO] [stdout] 96 | | ) -> *mut c_void { [INFO] [stdout] | |________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `c_api::c_to_string` is unsafe and requires unsafe block [INFO] [stdout] --> src/c_api/decoder.rs:98:26 [INFO] [stdout] | [INFO] [stdout] 98 | let implementation = c_to_string(implementation); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `c_api::c_to_string` is unsafe and requires unsafe block [INFO] [stdout] --> src/c_api/decoder.rs:99:22 [INFO] [stdout] | [INFO] [stdout] 99 | let puncturing = c_to_string(puncturing); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::boxed::Box::::from_raw` is unsafe and requires unsafe block [INFO] [stdout] --> src/c_api/decoder.rs:109:10 [INFO] [stdout] | [INFO] [stdout] 109 | drop(Box::from_raw(decoder as *mut Decoder)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/c_api/decoder.rs:108:1 [INFO] [stdout] | [INFO] [stdout] 108 | unsafe extern "C" fn ldpc_toolbox_decoder_dtor(decoder: *mut c_void) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::slice::from_raw_parts_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/c_api/decoder.rs:121:18 [INFO] [stdout] | [INFO] [stdout] 121 | let output = std::slice::from_raw_parts_mut(output, size_t_to_usize(output_len)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/c_api/decoder.rs:113:1 [INFO] [stdout] | [INFO] [stdout] 113 | / unsafe extern "C" fn ldpc_toolbox_decoder_decode_f64( [INFO] [stdout] 114 | | decoder: *mut c_void, [INFO] [stdout] 115 | | output: *mut u8, [INFO] [stdout] 116 | | output_len: size_t, [INFO] [stdout] ... | [INFO] [stdout] 119 | | max_iterations: u32, [INFO] [stdout] 120 | | ) -> i32 { [INFO] [stdout] | |________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::slice::from_raw_parts` is unsafe and requires unsafe block [INFO] [stdout] --> src/c_api/decoder.rs:122:16 [INFO] [stdout] | [INFO] [stdout] 122 | let llrs = std::slice::from_raw_parts(llrs, size_t_to_usize(llrs_len)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/c_api/decoder.rs:123:24 [INFO] [stdout] | [INFO] [stdout] 123 | let decoder = &mut *(decoder as *mut Decoder); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::slice::from_raw_parts_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/c_api/decoder.rs:136:18 [INFO] [stdout] | [INFO] [stdout] 136 | let output = std::slice::from_raw_parts_mut(output, size_t_to_usize(output_len)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/c_api/decoder.rs:128:1 [INFO] [stdout] | [INFO] [stdout] 128 | / unsafe extern "C" fn ldpc_toolbox_decoder_decode_f32( [INFO] [stdout] 129 | | decoder: *mut c_void, [INFO] [stdout] 130 | | output: *mut u8, [INFO] [stdout] 131 | | output_len: size_t, [INFO] [stdout] ... | [INFO] [stdout] 134 | | max_iterations: u32, [INFO] [stdout] 135 | | ) -> i32 { [INFO] [stdout] | |________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::slice::from_raw_parts` is unsafe and requires unsafe block [INFO] [stdout] --> src/c_api/decoder.rs:137:16 [INFO] [stdout] | [INFO] [stdout] 137 | let llrs = std::slice::from_raw_parts(llrs, size_t_to_usize(llrs_len)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/c_api/decoder.rs:138:24 [INFO] [stdout] | [INFO] [stdout] 138 | let decoder = &mut *(decoder as *mut Decoder); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `c_api::c_to_string` is unsafe and requires unsafe block [INFO] [stdout] --> src/c_api/encoder.rs:64:27 [INFO] [stdout] | [INFO] [stdout] 64 | let alist_file_path = c_to_string(alist_file_path); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/c_api/encoder.rs:60:1 [INFO] [stdout] | [INFO] [stdout] 60 | / unsafe extern "C" fn ldpc_toolbox_encoder_ctor( [INFO] [stdout] 61 | | alist_file_path: *const c_char, [INFO] [stdout] 62 | | puncturing: *const c_char, [INFO] [stdout] 63 | | ) -> *mut c_void { [INFO] [stdout] | |________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `c_api::c_to_string` is unsafe and requires unsafe block [INFO] [stdout] --> src/c_api/encoder.rs:65:22 [INFO] [stdout] | [INFO] [stdout] 65 | let puncturing = c_to_string(puncturing); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `c_api::c_to_string` is unsafe and requires unsafe block [INFO] [stdout] --> src/c_api/encoder.rs:78:17 [INFO] [stdout] | [INFO] [stdout] 78 | let alist = c_to_string(alist); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/c_api/encoder.rs:74:1 [INFO] [stdout] | [INFO] [stdout] 74 | / unsafe extern "C" fn ldpc_toolbox_encoder_ctor_alist_string( [INFO] [stdout] 75 | | alist: *const c_char, [INFO] [stdout] 76 | | puncturing: *const c_char, [INFO] [stdout] 77 | | ) -> *mut c_void { [INFO] [stdout] | |________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `c_api::c_to_string` is unsafe and requires unsafe block [INFO] [stdout] --> src/c_api/encoder.rs:79:22 [INFO] [stdout] | [INFO] [stdout] 79 | let puncturing = c_to_string(puncturing); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::boxed::Box::::from_raw` is unsafe and requires unsafe block [INFO] [stdout] --> src/c_api/encoder.rs:89:10 [INFO] [stdout] | [INFO] [stdout] 89 | drop(Box::from_raw(encoder as *mut Encoder)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/c_api/encoder.rs:88:1 [INFO] [stdout] | [INFO] [stdout] 88 | unsafe extern "C" fn ldpc_toolbox_encoder_dtor(encoder: *mut c_void) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::slice::from_raw_parts_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/c_api/encoder.rs:100:18 [INFO] [stdout] | [INFO] [stdout] 100 | let output = std::slice::from_raw_parts_mut(output, size_t_to_usize(output_len)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/c_api/encoder.rs:93:1 [INFO] [stdout] | [INFO] [stdout] 93 | / unsafe extern "C" fn ldpc_toolbox_encoder_encode( [INFO] [stdout] 94 | | encoder: *mut c_void, [INFO] [stdout] 95 | | output: *mut u8, [INFO] [stdout] 96 | | output_len: size_t, [INFO] [stdout] 97 | | input: *const u8, [INFO] [stdout] 98 | | input_len: size_t, [INFO] [stdout] 99 | | ) { [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::slice::from_raw_parts` is unsafe and requires unsafe block [INFO] [stdout] --> src/c_api/encoder.rs:101:17 [INFO] [stdout] | [INFO] [stdout] 101 | let input = std::slice::from_raw_parts(input, size_t_to_usize(input_len)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/c_api/encoder.rs:102:24 [INFO] [stdout] | [INFO] [stdout] 102 | let encoder = &mut *(encoder as *mut Encoder); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ffi::CStr::from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/c_api.rs:11:29 [INFO] [stdout] | [INFO] [stdout] 11 | String::from_utf8_lossy(CStr::from_ptr(s).to_bytes()).to_string() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/c_api.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | unsafe fn c_to_string(s: *const c_char) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 16 previous errors; 22 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] error: could not compile `ldpc-toolbox` (lib) due to 17 previous errors; 22 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 16 previous errors; 22 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] error: could not compile `ldpc-toolbox` (lib test) due to 17 previous errors; 22 warnings emitted [INFO] [stderr] error: failed to check after updating to 2024 [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo check --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "fa370a9ef684445ae67865c78389791e9485bfa6448f2bc6c53d7f6aad3557b8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fa370a9ef684445ae67865c78389791e9485bfa6448f2bc6c53d7f6aad3557b8", kill_on_drop: false }` [INFO] [stdout] fa370a9ef684445ae67865c78389791e9485bfa6448f2bc6c53d7f6aad3557b8