[INFO] fetching crate lua-shared 0.1.0... [INFO] checking lua-shared-0.1.0 against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] extracting crate lua-shared 0.1.0 into /workspace/builds/worker-3-tc2/source [INFO] validating manifest of crates.io crate lua-shared 0.1.0 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 lua-shared 0.1.0 [INFO] finished tweaking crates.io crate lua-shared 0.1.0 [INFO] tweaked toml for crates.io crate lua-shared 0.1.0 written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9c958bb48b98dc71a677292f074f809071fddb572e69333d9c136222252321a9 [INFO] running `Command { std: "docker" "start" "-a" "9c958bb48b98dc71a677292f074f809071fddb572e69333d9c136222252321a9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9c958bb48b98dc71a677292f074f809071fddb572e69333d9c136222252321a9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9c958bb48b98dc71a677292f074f809071fddb572e69333d9c136222252321a9", kill_on_drop: false }` [INFO] [stdout] 9c958bb48b98dc71a677292f074f809071fddb572e69333d9c136222252321a9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c369d05fa2dda433900dc2e9ac7f3fceb5f724db1054ebda687c38eeb7d5b038 [INFO] running `Command { std: "docker" "start" "-a" "c369d05fa2dda433900dc2e9ac7f3fceb5f724db1054ebda687c38eeb7d5b038", 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 lua-shared v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating build.rs from 2021 edition to 2024 [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `lua_shared` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/lib.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/lib.rs:13:6 [INFO] [stderr] | [INFO] [stderr] 13 | ($L:expr_2021, $n: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/lib.rs:13:20 [INFO] [stderr] | [INFO] [stderr] 13 | ($L:expr_2021, $n: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/lib.rs:20:6 [INFO] [stderr] | [INFO] [stderr] 20 | ($L:expr_2021, $s: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/lib.rs:20:20 [INFO] [stderr] | [INFO] [stderr] 20 | ($L:expr_2021, $s: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/lib.rs:27:6 [INFO] [stderr] | [INFO] [stderr] 27 | ($L:expr_2021, $s: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/lib.rs:27:20 [INFO] [stderr] | [INFO] [stderr] 27 | ($L:expr_2021, $s: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/lib.rs:34:6 [INFO] [stderr] | [INFO] [stderr] 34 | ($index: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/lib.rs:41:6 [INFO] [stderr] | [INFO] [stderr] 41 | ($str: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 8 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/lib.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | ($L:expr, $n: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] 13 | ($L:expr_2021, $n: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/lib.rs:13:18 [INFO] [stdout] | [INFO] [stdout] 13 | ($L:expr, $n: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] 13 | ($L:expr, $n: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/lib.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | ($L:expr, $s: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] 20 | ($L:expr_2021, $s: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/lib.rs:20:18 [INFO] [stdout] | [INFO] [stdout] 20 | ($L:expr, $s: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] 20 | ($L:expr, $s: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/lib.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | ($L:expr, $s: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] 27 | ($L:expr_2021, $s: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/lib.rs:27:18 [INFO] [stdout] | [INFO] [stdout] 27 | ($L:expr, $s: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] 27 | ($L:expr, $s: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/lib.rs:34:13 [INFO] [stdout] | [INFO] [stdout] 34 | ($index: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] 34 | ($index: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/lib.rs:41:11 [INFO] [stdout] | [INFO] [stdout] 41 | ($str: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] 41 | ($str:expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/lib.rs:95:1 [INFO] [stdout] | [INFO] [stdout] 95 | extern "C" {} [INFO] [stdout] | -^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [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 #123743 [INFO] [stdout] = note: `--force-warn missing-unsafe-on-extern` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/lib.rs:101:1 [INFO] [stdout] | [INFO] [stdout] 101 | extern "C" { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | _help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 102 | | // state manipulation [INFO] [stdout] 103 | | [INFO] [stdout] 104 | | /// Creates a new Lua state. [INFO] [stdout] ... | [INFO] [stdout] 485 | | pub fn open_jit(state: lua_State) -> i32; [INFO] [stdout] 486 | | } [INFO] [stdout] | |_^ [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 #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `lua_loadx` is unsafe and requires unsafe block [INFO] [stdout] --> src/loadx.rs:37:11 [INFO] [stdout] | [INFO] [stdout] 37 | match lua_loadx( [INFO] [stdout] | ___________^ [INFO] [stdout] 38 | | state, [INFO] [stdout] 39 | | reader_callback::, [INFO] [stdout] 40 | | reader_state.as_mut() as *mut ReaderState as _, [INFO] [stdout] 41 | | chunk_name, [INFO] [stdout] 42 | | mode, [INFO] [stdout] 43 | | ) { [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/loadx.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | / pub unsafe fn loadx( [INFO] [stdout] 6 | | state: lua_State, [INFO] [stdout] 7 | | reader: &mut READER, [INFO] [stdout] 8 | | chunk_name: *const u8, [INFO] [stdout] ... | [INFO] [stdout] 11 | | where [INFO] [stdout] 12 | | READER: std::io::Read, [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 `std::str::from_utf8_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/loadx.rs:47:23 [INFO] [stdout] | [INFO] [stdout] 47 | let err = std::str::from_utf8_unchecked(std::slice::from_raw_parts( [INFO] [stdout] | _______________________^ [INFO] [stdout] 48 | | tolstring(state, -1, &mut len), [INFO] [stdout] 49 | | len, [INFO] [stdout] 50 | | )) [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::slice::from_raw_parts` is unsafe and requires unsafe block [INFO] [stdout] --> src/loadx.rs:47:53 [INFO] [stdout] | [INFO] [stdout] 47 | let err = std::str::from_utf8_unchecked(std::slice::from_raw_parts( [INFO] [stdout] | _____________________________________________________^ [INFO] [stdout] 48 | | tolstring(state, -1, &mut len), [INFO] [stdout] 49 | | len, [INFO] [stdout] 50 | | )) [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 `tolstring` is unsafe and requires unsafe block [INFO] [stdout] --> src/loadx.rs:48:17 [INFO] [stdout] | [INFO] [stdout] 48 | tolstring(state, -1, &mut 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]: call to unsafe function `settop` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | $crate::settop($L, -($n) - 1) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/loadx.rs:52:13 [INFO] [stdout] | [INFO] [stdout] 52 | pop!(state, 1); [INFO] [stdout] | -------------- in this macro invocation [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: this warning originates in the macro `pop` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::str::from_utf8_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/loadx.rs:57:23 [INFO] [stdout] | [INFO] [stdout] 57 | let err = std::str::from_utf8_unchecked(std::slice::from_raw_parts( [INFO] [stdout] | _______________________^ [INFO] [stdout] 58 | | tolstring(state, -1, &mut len), [INFO] [stdout] 59 | | len, [INFO] [stdout] 60 | | )) [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::slice::from_raw_parts` is unsafe and requires unsafe block [INFO] [stdout] --> src/loadx.rs:57:53 [INFO] [stdout] | [INFO] [stdout] 57 | let err = std::str::from_utf8_unchecked(std::slice::from_raw_parts( [INFO] [stdout] | _____________________________________________________^ [INFO] [stdout] 58 | | tolstring(state, -1, &mut len), [INFO] [stdout] 59 | | len, [INFO] [stdout] 60 | | )) [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 `tolstring` is unsafe and requires unsafe block [INFO] [stdout] --> src/loadx.rs:58:17 [INFO] [stdout] | [INFO] [stdout] 58 | tolstring(state, -1, &mut 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]: call to unsafe function `settop` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | $crate::settop($L, -($n) - 1) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/loadx.rs:62:13 [INFO] [stdout] | [INFO] [stdout] 62 | pop!(state, 1); [INFO] [stdout] | -------------- in this macro invocation [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: this warning originates in the macro `pop` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::hint::unreachable_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/loadx.rs:65:14 [INFO] [stdout] | [INFO] [stdout] 65 | _ => unreachable_unchecked(), [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/loadx.rs:29:27 [INFO] [stdout] | [INFO] [stdout] 29 | let reader = &mut *userdata.cast::>(); [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] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/loadx.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | / unsafe extern "C" fn reader_callback( [INFO] [stdout] 22 | | _: lua_State, [INFO] [stdout] 23 | | userdata: *mut c_void, [INFO] [stdout] 24 | | size: &mut usize, [INFO] [stdout] 25 | | ) -> *const u8 [INFO] [stdout] 26 | | where [INFO] [stdout] 27 | | READER: std::io::Read, [INFO] [stdout] | |______________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `lua_dump` is unsafe and requires unsafe block [INFO] [stdout] --> src/dump.rs:28:11 [INFO] [stdout] | [INFO] [stdout] 28 | match lua_dump( [INFO] [stdout] | ___________^ [INFO] [stdout] 29 | | state, [INFO] [stdout] 30 | | writer_callback::, [INFO] [stdout] 31 | | buffer_writer as *mut WRITER as _, [INFO] [stdout] 32 | | ) { [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/dump.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | / pub unsafe fn dump( [INFO] [stdout] 7 | | state: lua_State, [INFO] [stdout] 8 | | buffer_writer: &mut WRITER, [INFO] [stdout] 9 | | ) -> std::result::Result<(), LError> [INFO] [stdout] 10 | | where [INFO] [stdout] 11 | | WRITER: std::io::Write, [INFO] [stdout] | |___________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/dump.rs:22:27 [INFO] [stdout] | [INFO] [stdout] 22 | let writer = &mut *userdata.cast::(); [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] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/dump.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | / unsafe extern "C" fn writer_callback( [INFO] [stdout] 14 | | _: lua_State, [INFO] [stdout] 15 | | data: *const u8, [INFO] [stdout] 16 | | size: usize, [INFO] [stdout] ... | [INFO] [stdout] 19 | | where [INFO] [stdout] 20 | | WRITER: std::io::Write, [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/dump.rs:23:32 [INFO] [stdout] | [INFO] [stdout] 23 | match writer.write_all(std::slice::from_raw_parts(data, size)) { [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 `newuserdata` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:545:25 [INFO] [stdout] | [INFO] [stdout] 545 | let udata_ptr = newuserdata(state, std::mem::size_of::()).cast::(); [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/lib.rs:515:1 [INFO] [stdout] | [INFO] [stdout] 515 | / pub unsafe fn pushfunction(state: lua_State, callback: FUNC) [INFO] [stdout] 516 | | where [INFO] [stdout] 517 | | FUNC: 'static + FnMut(lua_State) -> Result, [INFO] [stdout] | |_______________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::mut_ptr::::write` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:546:9 [INFO] [stdout] | [INFO] [stdout] 546 | udata_ptr.write(callback); [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 `createtable` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:554:9 [INFO] [stdout] | [INFO] [stdout] 554 | createtable(state, 0, 1); [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 `pushcclosure` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:555:9 [INFO] [stdout] | [INFO] [stdout] 555 | pushcclosure(state, cleanup_callback::, 0); [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 `setfield` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:556:9 [INFO] [stdout] | [INFO] [stdout] 556 | setfield(state, -2, cstr!("__gc")); [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 `setmetatable` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:557:9 [INFO] [stdout] | [INFO] [stdout] 557 | setmetatable(state, -2); [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 `pushcclosure` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:558:9 [INFO] [stdout] | [INFO] [stdout] 558 | pushcclosure(state, call_callback::, 1); [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 `pushcclosure` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:560:9 [INFO] [stdout] | [INFO] [stdout] 560 | pushcclosure(state, call_callback::, 0); [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 `touserdata` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:524:13 [INFO] [stdout] | [INFO] [stdout] 524 | touserdata(state, upvalueindex!(1)) [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/lib.rs:519:5 [INFO] [stdout] | [INFO] [stdout] 519 | / unsafe extern "C" fn call_callback(state: lua_State) -> i32 [INFO] [stdout] 520 | | where [INFO] [stdout] 521 | | FUNC: 'static + FnMut(lua_State) -> Result, [INFO] [stdout] | |___________________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:528:21 [INFO] [stdout] | [INFO] [stdout] 528 | match (&mut *callback_ptr.cast::())(state) { [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 `pushlstring` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:533:17 [INFO] [stdout] | [INFO] [stdout] 533 | / pushlstring( [INFO] [stdout] 534 | | state, [INFO] [stdout] 535 | | error_str.as_bytes().as_ptr(), [INFO] [stdout] 536 | | error_str.as_bytes().len(), [INFO] [stdout] 537 | | ); [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 `error` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:539:17 [INFO] [stdout] | [INFO] [stdout] 539 | error(state); [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::ptr::mut_ptr::::drop_in_place` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:551:13 [INFO] [stdout] | [INFO] [stdout] 551 | touserdata(state, 1).cast::().drop_in_place(); [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/lib.rs:547:9 [INFO] [stdout] | [INFO] [stdout] 547 | / unsafe extern "C" fn cleanup_callback(state: lua_State) -> i32 [INFO] [stdout] 548 | | where [INFO] [stdout] 549 | | FUNC: 'static + FnMut(lua_State) -> Result, [INFO] [stdout] | |_______________________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `touserdata` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:551:13 [INFO] [stdout] | [INFO] [stdout] 551 | touserdata(state, 1).cast::().drop_in_place(); [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: 38 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 `lua_shared` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/lib.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/lib.rs:13:6 [INFO] [stderr] | [INFO] [stderr] 13 | ($L:expr_2021, $n: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/lib.rs:13:20 [INFO] [stderr] | [INFO] [stderr] 13 | ($L:expr_2021, $n: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/lib.rs:20:6 [INFO] [stderr] | [INFO] [stderr] 20 | ($L:expr_2021, $s: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/lib.rs:20:20 [INFO] [stderr] | [INFO] [stderr] 20 | ($L:expr_2021, $s: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/lib.rs:27:6 [INFO] [stderr] | [INFO] [stderr] 27 | ($L:expr_2021, $s: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/lib.rs:27:20 [INFO] [stderr] | [INFO] [stderr] 27 | ($L:expr_2021, $s: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/lib.rs:34:6 [INFO] [stderr] | [INFO] [stderr] 34 | ($index: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/lib.rs:41:6 [INFO] [stderr] | [INFO] [stderr] 41 | ($str: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 8 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/lib.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | ($L:expr, $n: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] 13 | ($L:expr_2021, $n: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/lib.rs:13:18 [INFO] [stdout] | [INFO] [stdout] 13 | ($L:expr, $n: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] 13 | ($L:expr, $n: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/lib.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | ($L:expr, $s: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] 20 | ($L:expr_2021, $s: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/lib.rs:20:18 [INFO] [stdout] | [INFO] [stdout] 20 | ($L:expr, $s: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] 20 | ($L:expr, $s: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/lib.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | ($L:expr, $s: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] 27 | ($L:expr_2021, $s: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/lib.rs:27:18 [INFO] [stdout] | [INFO] [stdout] 27 | ($L:expr, $s: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] 27 | ($L:expr, $s: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/lib.rs:34:13 [INFO] [stdout] | [INFO] [stdout] 34 | ($index: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] 34 | ($index: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/lib.rs:41:11 [INFO] [stdout] | [INFO] [stdout] 41 | ($str: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] 41 | ($str:expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/lib.rs:95:1 [INFO] [stdout] | [INFO] [stdout] 95 | extern "C" {} [INFO] [stdout] | -^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: needs `unsafe` before the extern keyword: `unsafe` [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 #123743 [INFO] [stdout] = note: `--force-warn missing-unsafe-on-extern` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/lib.rs:101:1 [INFO] [stdout] | [INFO] [stdout] 101 | extern "C" { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | _help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 102 | | // state manipulation [INFO] [stdout] 103 | | [INFO] [stdout] 104 | | /// Creates a new Lua state. [INFO] [stdout] ... | [INFO] [stdout] 485 | | pub fn open_jit(state: lua_State) -> i32; [INFO] [stdout] 486 | | } [INFO] [stdout] | |_^ [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 #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `lua_loadx` is unsafe and requires unsafe block [INFO] [stdout] --> src/loadx.rs:37:11 [INFO] [stdout] | [INFO] [stdout] 37 | match lua_loadx( [INFO] [stdout] | ___________^ [INFO] [stdout] 38 | | state, [INFO] [stdout] 39 | | reader_callback::, [INFO] [stdout] 40 | | reader_state.as_mut() as *mut ReaderState as _, [INFO] [stdout] 41 | | chunk_name, [INFO] [stdout] 42 | | mode, [INFO] [stdout] 43 | | ) { [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/loadx.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | / pub unsafe fn loadx( [INFO] [stdout] 6 | | state: lua_State, [INFO] [stdout] 7 | | reader: &mut READER, [INFO] [stdout] 8 | | chunk_name: *const u8, [INFO] [stdout] ... | [INFO] [stdout] 11 | | where [INFO] [stdout] 12 | | READER: std::io::Read, [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 `std::str::from_utf8_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/loadx.rs:47:23 [INFO] [stdout] | [INFO] [stdout] 47 | let err = std::str::from_utf8_unchecked(std::slice::from_raw_parts( [INFO] [stdout] | _______________________^ [INFO] [stdout] 48 | | tolstring(state, -1, &mut len), [INFO] [stdout] 49 | | len, [INFO] [stdout] 50 | | )) [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::slice::from_raw_parts` is unsafe and requires unsafe block [INFO] [stdout] --> src/loadx.rs:47:53 [INFO] [stdout] | [INFO] [stdout] 47 | let err = std::str::from_utf8_unchecked(std::slice::from_raw_parts( [INFO] [stdout] | _____________________________________________________^ [INFO] [stdout] 48 | | tolstring(state, -1, &mut len), [INFO] [stdout] 49 | | len, [INFO] [stdout] 50 | | )) [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 `tolstring` is unsafe and requires unsafe block [INFO] [stdout] --> src/loadx.rs:48:17 [INFO] [stdout] | [INFO] [stdout] 48 | tolstring(state, -1, &mut 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]: call to unsafe function `settop` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | $crate::settop($L, -($n) - 1) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/loadx.rs:52:13 [INFO] [stdout] | [INFO] [stdout] 52 | pop!(state, 1); [INFO] [stdout] | -------------- in this macro invocation [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: this warning originates in the macro `pop` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::str::from_utf8_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/loadx.rs:57:23 [INFO] [stdout] | [INFO] [stdout] 57 | let err = std::str::from_utf8_unchecked(std::slice::from_raw_parts( [INFO] [stdout] | _______________________^ [INFO] [stdout] 58 | | tolstring(state, -1, &mut len), [INFO] [stdout] 59 | | len, [INFO] [stdout] 60 | | )) [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::slice::from_raw_parts` is unsafe and requires unsafe block [INFO] [stdout] --> src/loadx.rs:57:53 [INFO] [stdout] | [INFO] [stdout] 57 | let err = std::str::from_utf8_unchecked(std::slice::from_raw_parts( [INFO] [stdout] | _____________________________________________________^ [INFO] [stdout] 58 | | tolstring(state, -1, &mut len), [INFO] [stdout] 59 | | len, [INFO] [stdout] 60 | | )) [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 `tolstring` is unsafe and requires unsafe block [INFO] [stdout] --> src/loadx.rs:58:17 [INFO] [stdout] | [INFO] [stdout] 58 | tolstring(state, -1, &mut 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]: call to unsafe function `settop` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | $crate::settop($L, -($n) - 1) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/loadx.rs:62:13 [INFO] [stdout] | [INFO] [stdout] 62 | pop!(state, 1); [INFO] [stdout] | -------------- in this macro invocation [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: this warning originates in the macro `pop` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::hint::unreachable_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/loadx.rs:65:14 [INFO] [stdout] | [INFO] [stdout] 65 | _ => unreachable_unchecked(), [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/loadx.rs:29:27 [INFO] [stdout] | [INFO] [stdout] 29 | let reader = &mut *userdata.cast::>(); [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] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/loadx.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | / unsafe extern "C" fn reader_callback( [INFO] [stdout] 22 | | _: lua_State, [INFO] [stdout] 23 | | userdata: *mut c_void, [INFO] [stdout] 24 | | size: &mut usize, [INFO] [stdout] 25 | | ) -> *const u8 [INFO] [stdout] 26 | | where [INFO] [stdout] 27 | | READER: std::io::Read, [INFO] [stdout] | |______________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `lua_dump` is unsafe and requires unsafe block [INFO] [stdout] --> src/dump.rs:28:11 [INFO] [stdout] | [INFO] [stdout] 28 | match lua_dump( [INFO] [stdout] | ___________^ [INFO] [stdout] 29 | | state, [INFO] [stdout] 30 | | writer_callback::, [INFO] [stdout] 31 | | buffer_writer as *mut WRITER as _, [INFO] [stdout] 32 | | ) { [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/dump.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | / pub unsafe fn dump( [INFO] [stdout] 7 | | state: lua_State, [INFO] [stdout] 8 | | buffer_writer: &mut WRITER, [INFO] [stdout] 9 | | ) -> std::result::Result<(), LError> [INFO] [stdout] 10 | | where [INFO] [stdout] 11 | | WRITER: std::io::Write, [INFO] [stdout] | |___________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/dump.rs:22:27 [INFO] [stdout] | [INFO] [stdout] 22 | let writer = &mut *userdata.cast::(); [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] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/dump.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | / unsafe extern "C" fn writer_callback( [INFO] [stdout] 14 | | _: lua_State, [INFO] [stdout] 15 | | data: *const u8, [INFO] [stdout] 16 | | size: usize, [INFO] [stdout] ... | [INFO] [stdout] 19 | | where [INFO] [stdout] 20 | | WRITER: std::io::Write, [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/dump.rs:23:32 [INFO] [stdout] | [INFO] [stdout] 23 | match writer.write_all(std::slice::from_raw_parts(data, size)) { [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 `newuserdata` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:545:25 [INFO] [stdout] | [INFO] [stdout] 545 | let udata_ptr = newuserdata(state, std::mem::size_of::()).cast::(); [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/lib.rs:515:1 [INFO] [stdout] | [INFO] [stdout] 515 | / pub unsafe fn pushfunction(state: lua_State, callback: FUNC) [INFO] [stdout] 516 | | where [INFO] [stdout] 517 | | FUNC: 'static + FnMut(lua_State) -> Result, [INFO] [stdout] | |_______________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::mut_ptr::::write` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:546:9 [INFO] [stdout] | [INFO] [stdout] 546 | udata_ptr.write(callback); [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 `createtable` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:554:9 [INFO] [stdout] | [INFO] [stdout] 554 | createtable(state, 0, 1); [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 `pushcclosure` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:555:9 [INFO] [stdout] | [INFO] [stdout] 555 | pushcclosure(state, cleanup_callback::, 0); [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 `setfield` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:556:9 [INFO] [stdout] | [INFO] [stdout] 556 | setfield(state, -2, cstr!("__gc")); [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 `setmetatable` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:557:9 [INFO] [stdout] | [INFO] [stdout] 557 | setmetatable(state, -2); [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 `pushcclosure` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:558:9 [INFO] [stdout] | [INFO] [stdout] 558 | pushcclosure(state, call_callback::, 1); [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 `pushcclosure` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:560:9 [INFO] [stdout] | [INFO] [stdout] 560 | pushcclosure(state, call_callback::, 0); [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 `touserdata` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:524:13 [INFO] [stdout] | [INFO] [stdout] 524 | touserdata(state, upvalueindex!(1)) [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/lib.rs:519:5 [INFO] [stdout] | [INFO] [stdout] 519 | / unsafe extern "C" fn call_callback(state: lua_State) -> i32 [INFO] [stdout] 520 | | where [INFO] [stdout] 521 | | FUNC: 'static + FnMut(lua_State) -> Result, [INFO] [stdout] | |___________________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:528:21 [INFO] [stdout] | [INFO] [stdout] 528 | match (&mut *callback_ptr.cast::())(state) { [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 `pushlstring` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:533:17 [INFO] [stdout] | [INFO] [stdout] 533 | / pushlstring( [INFO] [stdout] 534 | | state, [INFO] [stdout] 535 | | error_str.as_bytes().as_ptr(), [INFO] [stdout] 536 | | error_str.as_bytes().len(), [INFO] [stdout] 537 | | ); [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 `error` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:539:17 [INFO] [stdout] | [INFO] [stdout] 539 | error(state); [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::ptr::mut_ptr::::drop_in_place` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:551:13 [INFO] [stdout] | [INFO] [stdout] 551 | touserdata(state, 1).cast::().drop_in_place(); [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/lib.rs:547:9 [INFO] [stdout] | [INFO] [stdout] 547 | / unsafe extern "C" fn cleanup_callback(state: lua_State) -> i32 [INFO] [stdout] 548 | | where [INFO] [stdout] 549 | | FUNC: 'static + FnMut(lua_State) -> Result, [INFO] [stdout] | |_______________________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `touserdata` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:551:13 [INFO] [stdout] | [INFO] [stdout] 551 | touserdata(state, 1).cast::().drop_in_place(); [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: 38 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.40s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Compiling lua-shared v0.1.0 (/tmp/fixit) [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/lib.rs:95:1 [INFO] [stdout] | [INFO] [stdout] 95 | extern "C" {} [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/lib.rs:95:1 [INFO] [stdout] | [INFO] [stdout] 95 | extern "C" {} [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/lib.rs:101:1 [INFO] [stdout] | [INFO] [stdout] 101 | / extern "C" { [INFO] [stdout] 102 | | // state manipulation [INFO] [stdout] 103 | | [INFO] [stdout] 104 | | /// Creates a new Lua state. [INFO] [stdout] ... | [INFO] [stdout] 485 | | pub fn open_jit(state: lua_State) -> i32; [INFO] [stdout] 486 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/lib.rs:101:1 [INFO] [stdout] | [INFO] [stdout] 101 | / extern "C" { [INFO] [stdout] 102 | | // state manipulation [INFO] [stdout] 103 | | [INFO] [stdout] 104 | | /// Creates a new Lua state. [INFO] [stdout] ... | [INFO] [stdout] 485 | | pub fn open_jit(state: lua_State) -> i32; [INFO] [stdout] 486 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `lua_loadx` is unsafe and requires unsafe block [INFO] [stdout] --> src/loadx.rs:37:11 [INFO] [stdout] | [INFO] [stdout] 37 | match lua_loadx( [INFO] [stdout] | ___________^ [INFO] [stdout] 38 | | state, [INFO] [stdout] 39 | | reader_callback::, [INFO] [stdout] 40 | | reader_state.as_mut() as *mut ReaderState as _, [INFO] [stdout] 41 | | chunk_name, [INFO] [stdout] 42 | | mode, [INFO] [stdout] 43 | | ) { [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/loadx.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | / pub unsafe fn loadx( [INFO] [stdout] 6 | | state: lua_State, [INFO] [stdout] 7 | | reader: &mut READER, [INFO] [stdout] 8 | | chunk_name: *const u8, [INFO] [stdout] ... | [INFO] [stdout] 11 | | where [INFO] [stdout] 12 | | READER: std::io::Read, [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 `lua_loadx` is unsafe and requires unsafe block [INFO] [stdout] --> src/loadx.rs:37:11 [INFO] [stdout] | [INFO] [stdout] 37 | match lua_loadx( [INFO] [stdout] | ___________^ [INFO] [stdout] 38 | | state, [INFO] [stdout] 39 | | reader_callback::, [INFO] [stdout] 40 | | reader_state.as_mut() as *mut ReaderState as _, [INFO] [stdout] 41 | | chunk_name, [INFO] [stdout] 42 | | mode, [INFO] [stdout] 43 | | ) { [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/loadx.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | / pub unsafe fn loadx( [INFO] [stdout] 6 | | state: lua_State, [INFO] [stdout] 7 | | reader: &mut READER, [INFO] [stdout] 8 | | chunk_name: *const u8, [INFO] [stdout] ... | [INFO] [stdout] 11 | | where [INFO] [stdout] 12 | | READER: std::io::Read, [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 `std::str::from_utf8_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/loadx.rs:47:23 [INFO] [stdout] | [INFO] [stdout] 47 | let err = std::str::from_utf8_unchecked(std::slice::from_raw_parts( [INFO] [stdout] | _______________________^ [INFO] [stdout] 48 | | tolstring(state, -1, &mut len), [INFO] [stdout] 49 | | len, [INFO] [stdout] 50 | | )) [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::str::from_utf8_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/loadx.rs:47:23 [INFO] [stdout] | [INFO] [stdout] 47 | let err = std::str::from_utf8_unchecked(std::slice::from_raw_parts( [INFO] [stdout] | _______________________^ [INFO] [stdout] 48 | | tolstring(state, -1, &mut len), [INFO] [stdout] 49 | | len, [INFO] [stdout] 50 | | )) [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::slice::from_raw_parts` is unsafe and requires unsafe block [INFO] [stdout] --> src/loadx.rs:47:53 [INFO] [stdout] | [INFO] [stdout] 47 | let err = std::str::from_utf8_unchecked(std::slice::from_raw_parts( [INFO] [stdout] | _____________________________________________________^ [INFO] [stdout] 48 | | tolstring(state, -1, &mut len), [INFO] [stdout] 49 | | len, [INFO] [stdout] 50 | | )) [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 `tolstring` is unsafe and requires unsafe block [INFO] [stdout] --> src/loadx.rs:48:17 [INFO] [stdout] | [INFO] [stdout] 48 | tolstring(state, -1, &mut 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]: call to unsafe function `std::slice::from_raw_parts` is unsafe and requires unsafe block [INFO] [stdout] --> src/loadx.rs:47:53 [INFO] [stdout] | [INFO] [stdout] 47 | let err = std::str::from_utf8_unchecked(std::slice::from_raw_parts( [INFO] [stdout] | _____________________________________________________^ [INFO] [stdout] 48 | | tolstring(state, -1, &mut len), [INFO] [stdout] 49 | | len, [INFO] [stdout] 50 | | )) [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 `tolstring` is unsafe and requires unsafe block [INFO] [stdout] --> src/loadx.rs:48:17 [INFO] [stdout] | [INFO] [stdout] 48 | tolstring(state, -1, &mut 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]: call to unsafe function `settop` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | $crate::settop($L, -($n) - 1) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/loadx.rs:52:13 [INFO] [stdout] | [INFO] [stdout] 52 | pop!(state, 1); [INFO] [stdout] | -------------- in this macro invocation [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: this warning originates in the macro `pop` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::str::from_utf8_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/loadx.rs:57:23 [INFO] [stdout] | [INFO] [stdout] 57 | let err = std::str::from_utf8_unchecked(std::slice::from_raw_parts( [INFO] [stdout] | _______________________^ [INFO] [stdout] 58 | | tolstring(state, -1, &mut len), [INFO] [stdout] 59 | | len, [INFO] [stdout] 60 | | )) [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 `settop` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | $crate::settop($L, -($n) - 1) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/loadx.rs:52:13 [INFO] [stdout] | [INFO] [stdout] 52 | pop!(state, 1); [INFO] [stdout] | -------------- in this macro invocation [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: this warning originates in the macro `pop` (in Nightly builds, run with -Z macro-backtrace for more info) [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/loadx.rs:57:53 [INFO] [stdout] | [INFO] [stdout] 57 | let err = std::str::from_utf8_unchecked(std::slice::from_raw_parts( [INFO] [stdout] | _____________________________________________________^ [INFO] [stdout] 58 | | tolstring(state, -1, &mut len), [INFO] [stdout] 59 | | len, [INFO] [stdout] 60 | | )) [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::str::from_utf8_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/loadx.rs:57:23 [INFO] [stdout] | [INFO] [stdout] 57 | let err = std::str::from_utf8_unchecked(std::slice::from_raw_parts( [INFO] [stdout] | _______________________^ [INFO] [stdout] 58 | | tolstring(state, -1, &mut len), [INFO] [stdout] 59 | | len, [INFO] [stdout] 60 | | )) [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 `tolstring` is unsafe and requires unsafe block [INFO] [stdout] --> src/loadx.rs:58:17 [INFO] [stdout] | [INFO] [stdout] 58 | tolstring(state, -1, &mut 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]: call to unsafe function `settop` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | $crate::settop($L, -($n) - 1) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/loadx.rs:62:13 [INFO] [stdout] | [INFO] [stdout] 62 | pop!(state, 1); [INFO] [stdout] | -------------- in this macro invocation [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: this warning originates in the macro `pop` (in Nightly builds, run with -Z macro-backtrace for more info) [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/loadx.rs:57:53 [INFO] [stdout] | [INFO] [stdout] 57 | let err = std::str::from_utf8_unchecked(std::slice::from_raw_parts( [INFO] [stdout] | _____________________________________________________^ [INFO] [stdout] 58 | | tolstring(state, -1, &mut len), [INFO] [stdout] 59 | | len, [INFO] [stdout] 60 | | )) [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::hint::unreachable_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/loadx.rs:65:14 [INFO] [stdout] | [INFO] [stdout] 65 | _ => unreachable_unchecked(), [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 `tolstring` is unsafe and requires unsafe block [INFO] [stdout] --> src/loadx.rs:58:17 [INFO] [stdout] | [INFO] [stdout] 58 | tolstring(state, -1, &mut 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]: call to unsafe function `settop` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | $crate::settop($L, -($n) - 1) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] ::: src/loadx.rs:62:13 [INFO] [stdout] | [INFO] [stdout] 62 | pop!(state, 1); [INFO] [stdout] | -------------- in this macro invocation [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: this warning originates in the macro `pop` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::hint::unreachable_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/loadx.rs:65:14 [INFO] [stdout] | [INFO] [stdout] 65 | _ => unreachable_unchecked(), [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/loadx.rs:29:27 [INFO] [stdout] | [INFO] [stdout] 29 | let reader = &mut *userdata.cast::>(); [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] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/loadx.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | / unsafe extern "C" fn reader_callback( [INFO] [stdout] 22 | | _: lua_State, [INFO] [stdout] 23 | | userdata: *mut c_void, [INFO] [stdout] 24 | | size: &mut usize, [INFO] [stdout] 25 | | ) -> *const u8 [INFO] [stdout] 26 | | where [INFO] [stdout] 27 | | READER: std::io::Read, [INFO] [stdout] | |______________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/loadx.rs:29:27 [INFO] [stdout] | [INFO] [stdout] 29 | let reader = &mut *userdata.cast::>(); [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] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/loadx.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | / unsafe extern "C" fn reader_callback( [INFO] [stdout] 22 | | _: lua_State, [INFO] [stdout] 23 | | userdata: *mut c_void, [INFO] [stdout] 24 | | size: &mut usize, [INFO] [stdout] 25 | | ) -> *const u8 [INFO] [stdout] 26 | | where [INFO] [stdout] 27 | | READER: std::io::Read, [INFO] [stdout] | |______________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `lua_dump` is unsafe and requires unsafe block [INFO] [stdout] --> src/dump.rs:28:11 [INFO] [stdout] | [INFO] [stdout] 28 | match lua_dump( [INFO] [stdout] | ___________^ [INFO] [stdout] 29 | | state, [INFO] [stdout] 30 | | writer_callback::, [INFO] [stdout] 31 | | buffer_writer as *mut WRITER as _, [INFO] [stdout] 32 | | ) { [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/dump.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | / pub unsafe fn dump( [INFO] [stdout] 7 | | state: lua_State, [INFO] [stdout] 8 | | buffer_writer: &mut WRITER, [INFO] [stdout] 9 | | ) -> std::result::Result<(), LError> [INFO] [stdout] 10 | | where [INFO] [stdout] 11 | | WRITER: std::io::Write, [INFO] [stdout] | |___________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `lua_dump` is unsafe and requires unsafe block [INFO] [stdout] --> src/dump.rs:28:11 [INFO] [stdout] | [INFO] [stdout] 28 | match lua_dump( [INFO] [stdout] | ___________^ [INFO] [stdout] 29 | | state, [INFO] [stdout] 30 | | writer_callback::, [INFO] [stdout] 31 | | buffer_writer as *mut WRITER as _, [INFO] [stdout] 32 | | ) { [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/dump.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | / pub unsafe fn dump( [INFO] [stdout] 7 | | state: lua_State, [INFO] [stdout] 8 | | buffer_writer: &mut WRITER, [INFO] [stdout] 9 | | ) -> std::result::Result<(), LError> [INFO] [stdout] 10 | | where [INFO] [stdout] 11 | | WRITER: std::io::Write, [INFO] [stdout] | |___________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/dump.rs:22:27 [INFO] [stdout] | [INFO] [stdout] 22 | let writer = &mut *userdata.cast::(); [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] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/dump.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | / unsafe extern "C" fn writer_callback( [INFO] [stdout] 14 | | _: lua_State, [INFO] [stdout] 15 | | data: *const u8, [INFO] [stdout] 16 | | size: usize, [INFO] [stdout] ... | [INFO] [stdout] 19 | | where [INFO] [stdout] 20 | | WRITER: std::io::Write, [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/dump.rs:23:32 [INFO] [stdout] | [INFO] [stdout] 23 | match writer.write_all(std::slice::from_raw_parts(data, size)) { [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/dump.rs:22:27 [INFO] [stdout] | [INFO] [stdout] 22 | let writer = &mut *userdata.cast::(); [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] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/dump.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | / unsafe extern "C" fn writer_callback( [INFO] [stdout] 14 | | _: lua_State, [INFO] [stdout] 15 | | data: *const u8, [INFO] [stdout] 16 | | size: usize, [INFO] [stdout] ... | [INFO] [stdout] 19 | | where [INFO] [stdout] 20 | | WRITER: std::io::Write, [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/dump.rs:23:32 [INFO] [stdout] | [INFO] [stdout] 23 | match writer.write_all(std::slice::from_raw_parts(data, size)) { [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 `newuserdata` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:545:25 [INFO] [stdout] | [INFO] [stdout] 545 | let udata_ptr = newuserdata(state, std::mem::size_of::()).cast::(); [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/lib.rs:515:1 [INFO] [stdout] | [INFO] [stdout] 515 | / pub unsafe fn pushfunction(state: lua_State, callback: FUNC) [INFO] [stdout] 516 | | where [INFO] [stdout] 517 | | FUNC: 'static + FnMut(lua_State) -> Result, [INFO] [stdout] | |_______________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `newuserdata` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:545:25 [INFO] [stdout] | [INFO] [stdout] 545 | let udata_ptr = newuserdata(state, std::mem::size_of::()).cast::(); [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/lib.rs:515:1 [INFO] [stdout] | [INFO] [stdout] 515 | / pub unsafe fn pushfunction(state: lua_State, callback: FUNC) [INFO] [stdout] 516 | | where [INFO] [stdout] 517 | | FUNC: 'static + FnMut(lua_State) -> Result, [INFO] [stdout] | |_______________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::mut_ptr::::write` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:546:9 [INFO] [stdout] | [INFO] [stdout] 546 | udata_ptr.write(callback); [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 `createtable` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:554:9 [INFO] [stdout] | [INFO] [stdout] 554 | createtable(state, 0, 1); [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::ptr::mut_ptr::::write` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:546:9 [INFO] [stdout] | [INFO] [stdout] 546 | udata_ptr.write(callback); [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 `pushcclosure` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:555:9 [INFO] [stdout] | [INFO] [stdout] 555 | pushcclosure(state, cleanup_callback::, 0); [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 `createtable` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:554:9 [INFO] [stdout] | [INFO] [stdout] 554 | createtable(state, 0, 1); [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 `setfield` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:556:9 [INFO] [stdout] | [INFO] [stdout] 556 | setfield(state, -2, cstr!("__gc")); [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 `pushcclosure` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:555:9 [INFO] [stdout] | [INFO] [stdout] 555 | pushcclosure(state, cleanup_callback::, 0); [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 `setmetatable` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:557:9 [INFO] [stdout] | [INFO] [stdout] 557 | setmetatable(state, -2); [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 `pushcclosure` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:558:9 [INFO] [stdout] | [INFO] [stdout] 558 | pushcclosure(state, call_callback::, 1); [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 `setfield` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:556:9 [INFO] [stdout] | [INFO] [stdout] 556 | setfield(state, -2, cstr!("__gc")); [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 `pushcclosure` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:560:9 [INFO] [stdout] | [INFO] [stdout] 560 | pushcclosure(state, call_callback::, 0); [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 `setmetatable` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:557:9 [INFO] [stdout] | [INFO] [stdout] 557 | setmetatable(state, -2); [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 `touserdata` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:524:13 [INFO] [stdout] | [INFO] [stdout] 524 | touserdata(state, upvalueindex!(1)) [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/lib.rs:519:5 [INFO] [stdout] | [INFO] [stdout] 519 | / unsafe extern "C" fn call_callback(state: lua_State) -> i32 [INFO] [stdout] 520 | | where [INFO] [stdout] 521 | | FUNC: 'static + FnMut(lua_State) -> Result, [INFO] [stdout] | |___________________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `pushcclosure` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:558:9 [INFO] [stdout] | [INFO] [stdout] 558 | pushcclosure(state, call_callback::, 1); [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/lib.rs:528:21 [INFO] [stdout] | [INFO] [stdout] 528 | match (&mut *callback_ptr.cast::())(state) { [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 `pushcclosure` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:560:9 [INFO] [stdout] | [INFO] [stdout] 560 | pushcclosure(state, call_callback::, 0); [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 `pushlstring` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:533:17 [INFO] [stdout] | [INFO] [stdout] 533 | / pushlstring( [INFO] [stdout] 534 | | state, [INFO] [stdout] 535 | | error_str.as_bytes().as_ptr(), [INFO] [stdout] 536 | | error_str.as_bytes().len(), [INFO] [stdout] 537 | | ); [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 `error` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:539:17 [INFO] [stdout] | [INFO] [stdout] 539 | error(state); [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 `touserdata` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:524:13 [INFO] [stdout] | [INFO] [stdout] 524 | touserdata(state, upvalueindex!(1)) [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/lib.rs:519:5 [INFO] [stdout] | [INFO] [stdout] 519 | / unsafe extern "C" fn call_callback(state: lua_State) -> i32 [INFO] [stdout] 520 | | where [INFO] [stdout] 521 | | FUNC: 'static + FnMut(lua_State) -> Result, [INFO] [stdout] | |___________________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:528:21 [INFO] [stdout] | [INFO] [stdout] 528 | match (&mut *callback_ptr.cast::())(state) { [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 `pushlstring` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:533:17 [INFO] [stdout] | [INFO] [stdout] 533 | / pushlstring( [INFO] [stdout] 534 | | state, [INFO] [stdout] 535 | | error_str.as_bytes().as_ptr(), [INFO] [stdout] 536 | | error_str.as_bytes().len(), [INFO] [stdout] 537 | | ); [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 `error` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:539:17 [INFO] [stdout] | [INFO] [stdout] 539 | error(state); [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::ptr::mut_ptr::::drop_in_place` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:551:13 [INFO] [stdout] | [INFO] [stdout] 551 | touserdata(state, 1).cast::().drop_in_place(); [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/lib.rs:547:9 [INFO] [stdout] | [INFO] [stdout] 547 | / unsafe extern "C" fn cleanup_callback(state: lua_State) -> i32 [INFO] [stdout] 548 | | where [INFO] [stdout] 549 | | FUNC: 'static + FnMut(lua_State) -> Result, [INFO] [stdout] | |_______________________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `touserdata` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:551:13 [INFO] [stdout] | [INFO] [stdout] 551 | touserdata(state, 1).cast::().drop_in_place(); [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::ptr::mut_ptr::::drop_in_place` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:551:13 [INFO] [stdout] | [INFO] [stdout] 551 | touserdata(state, 1).cast::().drop_in_place(); [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/lib.rs:547:9 [INFO] [stdout] | [INFO] [stdout] 547 | / unsafe extern "C" fn cleanup_callback(state: lua_State) -> i32 [INFO] [stdout] 548 | | where [INFO] [stdout] 549 | | FUNC: 'static + FnMut(lua_State) -> Result, [INFO] [stdout] | |_______________________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `touserdata` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:551:13 [INFO] [stdout] | [INFO] [stdout] 551 | touserdata(state, 1).cast::().drop_in_place(); [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] error: aborting due to 2 previous errors; 28 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 28 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 `lua-shared` (lib) due to 3 previous errors; 28 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `lua-shared` (lib test) due to 3 previous errors; 28 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" "c369d05fa2dda433900dc2e9ac7f3fceb5f724db1054ebda687c38eeb7d5b038", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c369d05fa2dda433900dc2e9ac7f3fceb5f724db1054ebda687c38eeb7d5b038", kill_on_drop: false }` [INFO] [stdout] c369d05fa2dda433900dc2e9ac7f3fceb5f724db1054ebda687c38eeb7d5b038