[INFO] fetching crate lunka 0.9.0... [INFO] checking lunka-0.9.0 against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] extracting crate lunka 0.9.0 into /workspace/builds/worker-7-tc2/source [INFO] validating manifest of crates.io crate lunka 0.9.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 lunka 0.9.0 [INFO] removed 0 missing examples [INFO] finished tweaking crates.io crate lunka 0.9.0 [INFO] tweaked toml for crates.io crate lunka 0.9.0 written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] crate crates.io crate lunka 0.9.0 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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] d9c66ad7b1de70ad60727c6c21867367f7953188dd21e70853479296d36768f6 [INFO] running `Command { std: "docker" "start" "-a" "d9c66ad7b1de70ad60727c6c21867367f7953188dd21e70853479296d36768f6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d9c66ad7b1de70ad60727c6c21867367f7953188dd21e70853479296d36768f6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d9c66ad7b1de70ad60727c6c21867367f7953188dd21e70853479296d36768f6", kill_on_drop: false }` [INFO] [stdout] d9c66ad7b1de70ad60727c6c21867367f7953188dd21e70853479296d36768f6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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] 6a5f60284416abe2d51020870dffd4b1a734087e5aadfec14fa652c10e0eee42 [INFO] running `Command { std: "docker" "start" "-a" "6a5f60284416abe2d51020870dffd4b1a734087e5aadfec14fa652c10e0eee42", 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] Checking lunka v0.9.0 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `lunka` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/cdef/mod.rs [INFO] [stderr] * src/lib.rs [INFO] [stderr] * src/thread.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/cdef/mod.rs:163:22 [INFO] [stderr] | [INFO] [stderr] 163 | $variant:ident = $def: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/cdef/mod.rs:987:32 [INFO] [stderr] | [INFO] [stderr] 987 | $vis:vis fn $name:ident for $type: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:428:3 [INFO] [stderr] | [INFO] [stderr] 428 | ($lua:expr_2021, $fmt:literal $(, $fmt_arg: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:428:36 [INFO] [stderr] | [INFO] [stderr] 428 | ($lua:expr_2021, $fmt:literal $(, $fmt_arg: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:453:3 [INFO] [stderr] | [INFO] [stderr] 453 | ($lua:expr_2021, $fmt:literal $(, $fmt_arg: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:453:36 [INFO] [stderr] | [INFO] [stderr] 453 | ($lua:expr_2021, $fmt:literal $(, $fmt_arg: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:495:20 [INFO] [stderr] | [INFO] [stderr] 495 | $field:ident $(: $fn: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:502:23 [INFO] [stderr] | [INFO] [stderr] 502 | (@field $field:ident $fn: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] warning: unnecessary `unsafe` block [INFO] [stderr] --> src/thread.rs:558:15 [INFO] [stderr] | [INFO] [stderr] 557 | ) -> &'l mut [u8] { unsafe { [INFO] [stderr] | ------ because it's nested under this `unsafe` block [INFO] [stderr] 558 | let udata = unsafe { lua_newuserdatauv(self.l, size, n_uservalues as _) }; [INFO] [stderr] | ^^^^^^ unnecessary `unsafe` block [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_unsafe)]` on by default [INFO] [stderr] [INFO] [stderr] error: aborting due to 8 previous errors; 1 warning emitted [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: extern blocks should be unsafe [INFO] [stdout] --> src/cdef/auxlib.rs:68:1 [INFO] [stdout] | [INFO] [stdout] 68 | extern "C" { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | _help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 69 | | pub fn luaL_newstate() -> *mut State; [INFO] [stdout] 70 | | [INFO] [stdout] 71 | | pub fn luaL_prepbuffsize(buffer: *mut Buffer, size: usize) -> *mut c_char; [INFO] [stdout] ... | [INFO] [stdout] 175 | | } [INFO] [stdout] 176 | | } [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] = 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/cdef/stdlibs.rs:46:1 [INFO] [stdout] | [INFO] [stdout] 46 | extern "C" { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | _help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 47 | | lua_state_func! { [INFO] [stdout] 48 | | pub fn luaopen_base(self) -> c_int; [INFO] [stdout] ... | [INFO] [stdout] 61 | | } [INFO] [stdout] 62 | | } [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: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/cdef/mod.rs:163:27 [INFO] [stdout] | [INFO] [stdout] 163 | $variant:ident = $def: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] 163 | $variant:ident = $def:expr_2021, [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/cdef/mod.rs:593:1 [INFO] [stdout] | [INFO] [stdout] 593 | extern "C" { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | _help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 594 | | pub fn lua_newstate(f: Alloc, ud: *mut c_void) -> *mut State; [INFO] [stdout] 595 | | pub fn lua_close(l: *mut State); [INFO] [stdout] ... | [INFO] [stdout] 834 | | fn lua_gethook_(l: *mut State) -> Hook; [INFO] [stdout] 835 | | } [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: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/cdef/mod.rs:987:38 [INFO] [stdout] | [INFO] [stdout] 987 | $vis:vis fn $name:ident for $type: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] 987 | $vis:vis fn $name:ident for $type: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:428:8 [INFO] [stdout] | [INFO] [stdout] 428 | ($lua:expr, $fmt:literal $(, $fmt_arg: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] 428 | ($lua:expr_2021, $fmt:literal $(, $fmt_arg: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:428:40 [INFO] [stdout] | [INFO] [stdout] 428 | ($lua:expr, $fmt:literal $(, $fmt_arg: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] 428 | ($lua:expr, $fmt:literal $(, $fmt_arg: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:453:8 [INFO] [stdout] | [INFO] [stdout] 453 | ($lua:expr, $fmt:literal $(, $fmt_arg: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] 453 | ($lua:expr_2021, $fmt:literal $(, $fmt_arg: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:453:40 [INFO] [stdout] | [INFO] [stdout] 453 | ($lua:expr, $fmt:literal $(, $fmt_arg: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] 453 | ($lua:expr, $fmt:literal $(, $fmt_arg: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:495:24 [INFO] [stdout] | [INFO] [stdout] 495 | $field:ident $(: $fn: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] 495 | $field:ident $(: $fn: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:502:27 [INFO] [stdout] | [INFO] [stdout] 502 | (@field $field:ident $fn: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] 502 | (@field $field:ident $fn:expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::auxlib::luaL_checkversion_` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/auxlib.rs:181:2 [INFO] [stdout] | [INFO] [stdout] 181 | luaL_checkversion_(l, VERSION_NUM, NUM_SIZES) [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/cdef/auxlib.rs:180:1 [INFO] [stdout] | [INFO] [stdout] 180 | pub unsafe fn luaL_checkversion(l: *mut State) { [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 `cdef::auxlib::luaL_loadfilex` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/auxlib.rs:187:2 [INFO] [stdout] | [INFO] [stdout] 187 | luaL_loadfilex(l, file_name, null()) [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/cdef/auxlib.rs:186:1 [INFO] [stdout] | [INFO] [stdout] 186 | pub unsafe fn luaL_loadfile(l: *mut State, file_name: *const c_char) -> c_int { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::lua_createtable` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/auxlib.rs:195:2 [INFO] [stdout] | [INFO] [stdout] 195 | lua_createtable(l, 0, (lib.len() - 1) as _) [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/cdef/auxlib.rs:194:1 [INFO] [stdout] | [INFO] [stdout] 194 | pub unsafe fn luaL_newlibtable(l: *mut State, lib: &[Reg]) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::auxlib::luaL_checkversion` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/auxlib.rs:203:2 [INFO] [stdout] | [INFO] [stdout] 203 | luaL_checkversion(l); [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/cdef/auxlib.rs:202:1 [INFO] [stdout] | [INFO] [stdout] 202 | pub unsafe fn luaL_newlib(l: *mut State, lib: &[Reg]) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::auxlib::luaL_newlibtable` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/auxlib.rs:204:2 [INFO] [stdout] | [INFO] [stdout] 204 | luaL_newlibtable(l, lib); [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 `cdef::auxlib::luaL_setfuncs` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/auxlib.rs:205:2 [INFO] [stdout] | [INFO] [stdout] 205 | luaL_setfuncs(l, lib.as_ptr(), 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 `cdef::auxlib::luaL_checklstring` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/auxlib.rs:214:2 [INFO] [stdout] | [INFO] [stdout] 214 | luaL_checklstring(l, arg, null_mut()) [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/cdef/auxlib.rs:213:1 [INFO] [stdout] | [INFO] [stdout] 213 | pub unsafe fn luaL_checkstring(l: *mut State, arg: c_int) -> *const c_char { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::auxlib::luaL_optlstring` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/auxlib.rs:222:2 [INFO] [stdout] | [INFO] [stdout] 222 | luaL_optlstring(l, arg, default, null_mut()) [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/cdef/auxlib.rs:219:1 [INFO] [stdout] | [INFO] [stdout] 219 | / pub unsafe fn luaL_optstring( [INFO] [stdout] 220 | | l: *mut State, arg: c_int, default: *const c_char [INFO] [stdout] 221 | | ) -> *const c_char { [INFO] [stdout] | |__________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::lua_typename` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/auxlib.rs:228:2 [INFO] [stdout] | [INFO] [stdout] 228 | lua_typename(l, lua_type(l, idx)) [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/cdef/auxlib.rs:227:1 [INFO] [stdout] | [INFO] [stdout] 227 | pub unsafe fn luaL_typename(l: *mut State, idx: c_int) -> *const c_char { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::lua_type` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/auxlib.rs:228:18 [INFO] [stdout] | [INFO] [stdout] 228 | lua_typename(l, lua_type(l, idx)) [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 `cdef::auxlib::luaL_loadfile` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/auxlib.rs:234:2 [INFO] [stdout] | [INFO] [stdout] 234 | luaL_loadfile(l, file_name) != 0 || lua_pcall(l, 0, MULT_RET, 0) != 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] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/cdef/auxlib.rs:233:1 [INFO] [stdout] | [INFO] [stdout] 233 | pub unsafe fn luaL_dofile(l: *mut State, file_name: *const c_char) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::lua_pcall` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/auxlib.rs:234:38 [INFO] [stdout] | [INFO] [stdout] 234 | luaL_loadfile(l, file_name) != 0 || lua_pcall(l, 0, MULT_RET, 0) != 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 `cdef::auxlib::luaL_loadstring` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/auxlib.rs:240:2 [INFO] [stdout] | [INFO] [stdout] 240 | luaL_loadstring(l, code) != 0 || lua_pcall(l, 0, MULT_RET, 0) != 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] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/cdef/auxlib.rs:239:1 [INFO] [stdout] | [INFO] [stdout] 239 | pub unsafe fn luaL_dostring(l: *mut State, code: *const c_char) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::lua_pcall` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/auxlib.rs:240:35 [INFO] [stdout] | [INFO] [stdout] 240 | luaL_loadstring(l, code) != 0 || lua_pcall(l, 0, MULT_RET, 0) != 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 `cdef::lua_getfield` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/auxlib.rs:246:2 [INFO] [stdout] | [INFO] [stdout] 246 | lua_getfield(l, REGISTRY_INDEX, name) [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/cdef/auxlib.rs:245:1 [INFO] [stdout] | [INFO] [stdout] 245 | pub unsafe fn luaL_getmetatable(l: *mut State, name: *const c_char) -> c_int { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::auxlib::luaL_loadbufferx` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/auxlib.rs:258:2 [INFO] [stdout] | [INFO] [stdout] 258 | luaL_loadbufferx(l, buffer, buffer_sz, name, null()) [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/cdef/auxlib.rs:253:1 [INFO] [stdout] | [INFO] [stdout] 253 | / pub unsafe fn luaL_loadbuffer( [INFO] [stdout] 254 | | l: *mut State, [INFO] [stdout] 255 | | buffer: *const c_char, buffer_sz: usize, [INFO] [stdout] 256 | | name: *const c_char [INFO] [stdout] 257 | | ) -> c_int { [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::lua_pushnil` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/auxlib.rs:266:2 [INFO] [stdout] | [INFO] [stdout] 266 | lua_pushnil(l) [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/cdef/auxlib.rs:265:1 [INFO] [stdout] | [INFO] [stdout] 265 | pub unsafe fn luaL_pushfail(l: *mut State) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::auxlib::Buffer::<'l>::prep_with` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/auxlib.rs:347:3 [INFO] [stdout] | [INFO] [stdout] 347 | self.prep_with(BUFFER_SIZE, func) [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/cdef/auxlib.rs:346:2 [INFO] [stdout] | [INFO] [stdout] 346 | pub unsafe fn prep_default_with(&mut self, func: impl FnOnce(&mut [c_char])) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::hint::unreachable_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:185:11 [INFO] [stdout] | [INFO] [stdout] 185 | _ => core::hint::unreachable_unchecked() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 211 | / c_int_enum! { [INFO] [stdout] 212 | | /// Lua status code enumeration. [INFO] [stdout] 213 | | /// [INFO] [stdout] 214 | | /// This status usually indicates a success or some sort of failure in the [INFO] [stdout] ... | [INFO] [stdout] 245 | | } [INFO] [stdout] 246 | | } [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: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/cdef/mod.rs:182:4 [INFO] [stdout] | [INFO] [stdout] 182 | pub const unsafe fn from_c_int_unchecked(value: c_int) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 211 | / c_int_enum! { [INFO] [stdout] 212 | | /// Lua status code enumeration. [INFO] [stdout] 213 | | /// [INFO] [stdout] 214 | | /// This status usually indicates a success or some sort of failure in the [INFO] [stdout] ... | [INFO] [stdout] 245 | | } [INFO] [stdout] 246 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `c_int_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::hint::unreachable_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:185:11 [INFO] [stdout] | [INFO] [stdout] 185 | _ => core::hint::unreachable_unchecked() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 314 | / c_int_enum! { [INFO] [stdout] 315 | | /// Lua basic type enumeration. [INFO] [stdout] 316 | | #[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord)] [INFO] [stdout] 317 | | pub enum Type { [INFO] [stdout] ... | [INFO] [stdout] 340 | | } [INFO] [stdout] 341 | | } [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: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/cdef/mod.rs:182:4 [INFO] [stdout] | [INFO] [stdout] 182 | pub const unsafe fn from_c_int_unchecked(value: c_int) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 314 | / c_int_enum! { [INFO] [stdout] 315 | | /// Lua basic type enumeration. [INFO] [stdout] 316 | | #[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord)] [INFO] [stdout] 317 | | pub enum Type { [INFO] [stdout] ... | [INFO] [stdout] 340 | | } [INFO] [stdout] 341 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `c_int_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::hint::unreachable_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:185:11 [INFO] [stdout] | [INFO] [stdout] 185 | _ => core::hint::unreachable_unchecked() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 523 | / c_int_enum! { [INFO] [stdout] 524 | | /// Operation types for [`lua_arith`]. [INFO] [stdout] 525 | | #[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord)] [INFO] [stdout] 526 | | pub enum Arith { [INFO] [stdout] ... | [INFO] [stdout] 541 | | } [INFO] [stdout] 542 | | } [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: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/cdef/mod.rs:182:4 [INFO] [stdout] | [INFO] [stdout] 182 | pub const unsafe fn from_c_int_unchecked(value: c_int) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 523 | / c_int_enum! { [INFO] [stdout] 524 | | /// Operation types for [`lua_arith`]. [INFO] [stdout] 525 | | #[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord)] [INFO] [stdout] 526 | | pub enum Arith { [INFO] [stdout] ... | [INFO] [stdout] 541 | | } [INFO] [stdout] 542 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `c_int_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::hint::unreachable_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:185:11 [INFO] [stdout] | [INFO] [stdout] 185 | _ => core::hint::unreachable_unchecked() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 544 | / c_int_enum! { [INFO] [stdout] 545 | | /// Operation types for [`lua_compare`]. [INFO] [stdout] 546 | | #[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord)] [INFO] [stdout] 547 | | pub enum Compare { [INFO] [stdout] ... | [INFO] [stdout] 551 | | } [INFO] [stdout] 552 | | } [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: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/cdef/mod.rs:182:4 [INFO] [stdout] | [INFO] [stdout] 182 | pub const unsafe fn from_c_int_unchecked(value: c_int) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 544 | / c_int_enum! { [INFO] [stdout] 545 | | /// Operation types for [`lua_compare`]. [INFO] [stdout] 546 | | #[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord)] [INFO] [stdout] 547 | | pub enum Compare { [INFO] [stdout] ... | [INFO] [stdout] 551 | | } [INFO] [stdout] 552 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `c_int_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::hint::unreachable_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:185:11 [INFO] [stdout] | [INFO] [stdout] 185 | _ => core::hint::unreachable_unchecked() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 554 | / c_int_enum! { [INFO] [stdout] 555 | | /// Tasks for [`lua_gc`]. [INFO] [stdout] 556 | | /// [INFO] [stdout] 557 | | /// This enum does not include the arguments associated with a GC task. [INFO] [stdout] ... | [INFO] [stdout] 571 | | } [INFO] [stdout] 572 | | } [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: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/cdef/mod.rs:182:4 [INFO] [stdout] | [INFO] [stdout] 182 | pub const unsafe fn from_c_int_unchecked(value: c_int) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 554 | / c_int_enum! { [INFO] [stdout] 555 | | /// Tasks for [`lua_gc`]. [INFO] [stdout] 556 | | /// [INFO] [stdout] 557 | | /// This enum does not include the arguments associated with a GC task. [INFO] [stdout] ... | [INFO] [stdout] 571 | | } [INFO] [stdout] 572 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `c_int_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::intrinsics::transmute` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:855:43 [INFO] [stdout] | [INFO] [stdout] 855 | let target_fn: ApiFn<$($gen_value)+> = transmute( [INFO] [stdout] | ____________________________________________________^ [INFO] [stdout] 856 | | $link_fn as ApiFn<$($gen_src)+> [INFO] [stdout] 857 | | ); [INFO] [stdout] | |_____________^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 864 | / genericize_fn!( [INFO] [stdout] 865 | | fn lua_getstack_ for [INFO] [stdout] 866 | | as pub fn lua_getstack[const ID_SIZE: usize]( [INFO] [stdout] 867 | | l: *mut State, level: c_int, ar: *mut Debug [INFO] [stdout] 868 | | ) -> c_int [INFO] [stdout] 869 | | ); [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: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/cdef/mod.rs:848:3 [INFO] [stdout] | [INFO] [stdout] 848 | / $vis unsafe fn $name<$($gen)+>( [INFO] [stdout] 849 | | $($param_n : $param_ty),* [INFO] [stdout] 850 | | ) $( -> $ret )? { [INFO] [stdout] | |____________________^ [INFO] [stdout] ... [INFO] [stdout] 864 | / genericize_fn!( [INFO] [stdout] 865 | | fn lua_getstack_ for [INFO] [stdout] 866 | | as pub fn lua_getstack[const ID_SIZE: usize]( [INFO] [stdout] 867 | | l: *mut State, level: c_int, ar: *mut Debug [INFO] [stdout] 868 | | ) -> c_int [INFO] [stdout] 869 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `genericize_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:859:4 [INFO] [stdout] | [INFO] [stdout] 859 | target_fn($($param_n),*) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 864 | / genericize_fn!( [INFO] [stdout] 865 | | fn lua_getstack_ for [INFO] [stdout] 866 | | as pub fn lua_getstack[const ID_SIZE: usize]( [INFO] [stdout] 867 | | l: *mut State, level: c_int, ar: *mut Debug [INFO] [stdout] 868 | | ) -> c_int [INFO] [stdout] 869 | | ); [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 `genericize_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::intrinsics::transmute` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:855:43 [INFO] [stdout] | [INFO] [stdout] 855 | let target_fn: ApiFn<$($gen_value)+> = transmute( [INFO] [stdout] | ____________________________________________________^ [INFO] [stdout] 856 | | $link_fn as ApiFn<$($gen_src)+> [INFO] [stdout] 857 | | ); [INFO] [stdout] | |_____________^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 871 | / genericize_fn!( [INFO] [stdout] 872 | | fn lua_getinfo_ for [INFO] [stdout] 873 | | as pub fn lua_getinfo[const ID_SIZE: usize]( [INFO] [stdout] 874 | | l: *mut State, what: *const c_char, ar: *mut Debug [INFO] [stdout] 875 | | ) -> c_int [INFO] [stdout] 876 | | ); [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: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/cdef/mod.rs:848:3 [INFO] [stdout] | [INFO] [stdout] 848 | / $vis unsafe fn $name<$($gen)+>( [INFO] [stdout] 849 | | $($param_n : $param_ty),* [INFO] [stdout] 850 | | ) $( -> $ret )? { [INFO] [stdout] | |____________________^ [INFO] [stdout] ... [INFO] [stdout] 871 | / genericize_fn!( [INFO] [stdout] 872 | | fn lua_getinfo_ for [INFO] [stdout] 873 | | as pub fn lua_getinfo[const ID_SIZE: usize]( [INFO] [stdout] 874 | | l: *mut State, what: *const c_char, ar: *mut Debug [INFO] [stdout] 875 | | ) -> c_int [INFO] [stdout] 876 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `genericize_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:859:4 [INFO] [stdout] | [INFO] [stdout] 859 | target_fn($($param_n),*) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 871 | / genericize_fn!( [INFO] [stdout] 872 | | fn lua_getinfo_ for [INFO] [stdout] 873 | | as pub fn lua_getinfo[const ID_SIZE: usize]( [INFO] [stdout] 874 | | l: *mut State, what: *const c_char, ar: *mut Debug [INFO] [stdout] 875 | | ) -> c_int [INFO] [stdout] 876 | | ); [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 `genericize_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::intrinsics::transmute` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:855:43 [INFO] [stdout] | [INFO] [stdout] 855 | let target_fn: ApiFn<$($gen_value)+> = transmute( [INFO] [stdout] | ____________________________________________________^ [INFO] [stdout] 856 | | $link_fn as ApiFn<$($gen_src)+> [INFO] [stdout] 857 | | ); [INFO] [stdout] | |_____________^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 878 | / genericize_fn!( [INFO] [stdout] 879 | | fn lua_getlocal_ for [INFO] [stdout] 880 | | as pub fn lua_getlocal[const ID_SIZE: usize]( [INFO] [stdout] 881 | | l: *mut State, ar: *const Debug, n: c_int [INFO] [stdout] 882 | | ) -> *const c_char [INFO] [stdout] 883 | | ); [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: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/cdef/mod.rs:848:3 [INFO] [stdout] | [INFO] [stdout] 848 | / $vis unsafe fn $name<$($gen)+>( [INFO] [stdout] 849 | | $($param_n : $param_ty),* [INFO] [stdout] 850 | | ) $( -> $ret )? { [INFO] [stdout] | |____________________^ [INFO] [stdout] ... [INFO] [stdout] 878 | / genericize_fn!( [INFO] [stdout] 879 | | fn lua_getlocal_ for [INFO] [stdout] 880 | | as pub fn lua_getlocal[const ID_SIZE: usize]( [INFO] [stdout] 881 | | l: *mut State, ar: *const Debug, n: c_int [INFO] [stdout] 882 | | ) -> *const c_char [INFO] [stdout] 883 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `genericize_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:859:4 [INFO] [stdout] | [INFO] [stdout] 859 | target_fn($($param_n),*) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 878 | / genericize_fn!( [INFO] [stdout] 879 | | fn lua_getlocal_ for [INFO] [stdout] 880 | | as pub fn lua_getlocal[const ID_SIZE: usize]( [INFO] [stdout] 881 | | l: *mut State, ar: *const Debug, n: c_int [INFO] [stdout] 882 | | ) -> *const c_char [INFO] [stdout] 883 | | ); [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 `genericize_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::intrinsics::transmute` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:855:43 [INFO] [stdout] | [INFO] [stdout] 855 | let target_fn: ApiFn<$($gen_value)+> = transmute( [INFO] [stdout] | ____________________________________________________^ [INFO] [stdout] 856 | | $link_fn as ApiFn<$($gen_src)+> [INFO] [stdout] 857 | | ); [INFO] [stdout] | |_____________^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 885 | / genericize_fn!( [INFO] [stdout] 886 | | fn lua_setlocal_ for [INFO] [stdout] 887 | | as pub fn lua_setlocal[const ID_SIZE: usize]( [INFO] [stdout] 888 | | l: *mut State, ar: *const Debug, n: c_int [INFO] [stdout] 889 | | ) -> *const c_char [INFO] [stdout] 890 | | ); [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: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/cdef/mod.rs:848:3 [INFO] [stdout] | [INFO] [stdout] 848 | / $vis unsafe fn $name<$($gen)+>( [INFO] [stdout] 849 | | $($param_n : $param_ty),* [INFO] [stdout] 850 | | ) $( -> $ret )? { [INFO] [stdout] | |____________________^ [INFO] [stdout] ... [INFO] [stdout] 885 | / genericize_fn!( [INFO] [stdout] 886 | | fn lua_setlocal_ for [INFO] [stdout] 887 | | as pub fn lua_setlocal[const ID_SIZE: usize]( [INFO] [stdout] 888 | | l: *mut State, ar: *const Debug, n: c_int [INFO] [stdout] 889 | | ) -> *const c_char [INFO] [stdout] 890 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `genericize_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:859:4 [INFO] [stdout] | [INFO] [stdout] 859 | target_fn($($param_n),*) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 885 | / genericize_fn!( [INFO] [stdout] 886 | | fn lua_setlocal_ for [INFO] [stdout] 887 | | as pub fn lua_setlocal[const ID_SIZE: usize]( [INFO] [stdout] 888 | | l: *mut State, ar: *const Debug, n: c_int [INFO] [stdout] 889 | | ) -> *const c_char [INFO] [stdout] 890 | | ); [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 `genericize_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::intrinsics::transmute` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:855:43 [INFO] [stdout] | [INFO] [stdout] 855 | let target_fn: ApiFn<$($gen_value)+> = transmute( [INFO] [stdout] | ____________________________________________________^ [INFO] [stdout] 856 | | $link_fn as ApiFn<$($gen_src)+> [INFO] [stdout] 857 | | ); [INFO] [stdout] | |_____________^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 892 | / genericize_fn!( [INFO] [stdout] 893 | | fn lua_sethook_ for [INFO] [stdout] 894 | | as pub fn lua_sethook[const ID_SIZE: usize]( [INFO] [stdout] 895 | | l: *mut State, func: Hook, mask: c_int, count: c_int [INFO] [stdout] 896 | | ) [INFO] [stdout] 897 | | ); [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: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/cdef/mod.rs:848:3 [INFO] [stdout] | [INFO] [stdout] 848 | / $vis unsafe fn $name<$($gen)+>( [INFO] [stdout] 849 | | $($param_n : $param_ty),* [INFO] [stdout] 850 | | ) $( -> $ret )? { [INFO] [stdout] | |_________^ [INFO] [stdout] ... [INFO] [stdout] 892 | / genericize_fn!( [INFO] [stdout] 893 | | fn lua_sethook_ for [INFO] [stdout] 894 | | as pub fn lua_sethook[const ID_SIZE: usize]( [INFO] [stdout] 895 | | l: *mut State, func: Hook, mask: c_int, count: c_int [INFO] [stdout] 896 | | ) [INFO] [stdout] 897 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `genericize_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:859:4 [INFO] [stdout] | [INFO] [stdout] 859 | target_fn($($param_n),*) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 892 | / genericize_fn!( [INFO] [stdout] 893 | | fn lua_sethook_ for [INFO] [stdout] 894 | | as pub fn lua_sethook[const ID_SIZE: usize]( [INFO] [stdout] 895 | | l: *mut State, func: Hook, mask: c_int, count: c_int [INFO] [stdout] 896 | | ) [INFO] [stdout] 897 | | ); [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 `genericize_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::intrinsics::transmute` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:855:43 [INFO] [stdout] | [INFO] [stdout] 855 | let target_fn: ApiFn<$($gen_value)+> = transmute( [INFO] [stdout] | ____________________________________________________^ [INFO] [stdout] 856 | | $link_fn as ApiFn<$($gen_src)+> [INFO] [stdout] 857 | | ); [INFO] [stdout] | |_____________^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 899 | / genericize_fn!( [INFO] [stdout] 900 | | fn lua_gethook_ for [INFO] [stdout] 901 | | as pub fn lua_gethook[const ID_SIZE: usize](l: *mut State) -> Hook [INFO] [stdout] 902 | | ); [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: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/cdef/mod.rs:848:3 [INFO] [stdout] | [INFO] [stdout] 848 | / $vis unsafe fn $name<$($gen)+>( [INFO] [stdout] 849 | | $($param_n : $param_ty),* [INFO] [stdout] 850 | | ) $( -> $ret )? { [INFO] [stdout] | |____________________^ [INFO] [stdout] ... [INFO] [stdout] 899 | / genericize_fn!( [INFO] [stdout] 900 | | fn lua_gethook_ for [INFO] [stdout] 901 | | as pub fn lua_gethook[const ID_SIZE: usize](l: *mut State) -> Hook [INFO] [stdout] 902 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `genericize_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:859:4 [INFO] [stdout] | [INFO] [stdout] 859 | target_fn($($param_n),*) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 899 | / genericize_fn!( [INFO] [stdout] 900 | | fn lua_gethook_ for [INFO] [stdout] 901 | | as pub fn lua_gethook[const ID_SIZE: usize](l: *mut State) -> Hook [INFO] [stdout] 902 | | ); [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 `genericize_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::lua_callk` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:907:2 [INFO] [stdout] | [INFO] [stdout] 907 | lua_callk(l, n_args, n_results, 0, None) [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/cdef/mod.rs:906:1 [INFO] [stdout] | [INFO] [stdout] 906 | pub unsafe fn lua_call(l: *mut State, n_args: c_int, n_results: c_int) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::lua_pcallk` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:917:2 [INFO] [stdout] | [INFO] [stdout] 917 | lua_pcallk(l, n_args, n_results, err_func, 0, None) [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/cdef/mod.rs:912:1 [INFO] [stdout] | [INFO] [stdout] 912 | / pub unsafe fn lua_pcall( [INFO] [stdout] 913 | | l: *mut State, [INFO] [stdout] 914 | | n_args: c_int, n_results: c_int, [INFO] [stdout] 915 | | err_func: c_int [INFO] [stdout] 916 | | ) -> c_int { [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::lua_yieldk` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:924:2 [INFO] [stdout] | [INFO] [stdout] 924 | lua_yieldk(l, n_results, 0, None) [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/cdef/mod.rs:923:1 [INFO] [stdout] | [INFO] [stdout] 923 | pub unsafe fn lua_yield(l: *mut State, n_results: c_int) -> ! { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::lua_yieldk_in_hook` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:931:2 [INFO] [stdout] | [INFO] [stdout] 931 | lua_yieldk_in_hook(l, n_results, 0, None) [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/cdef/mod.rs:930:1 [INFO] [stdout] | [INFO] [stdout] 930 | pub unsafe fn lua_yield_in_hook(l: *mut State, n_results: c_int) -> c_int { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::ptr::mut_ptr::::byte_sub` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:944:2 [INFO] [stdout] | [INFO] [stdout] 944 | l.byte_sub(extra_space) as *mut c_void [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/cdef/mod.rs:941:1 [INFO] [stdout] | [INFO] [stdout] 941 | / pub const unsafe fn lua_getextraspace( [INFO] [stdout] 942 | | l: *mut State, extra_space: usize [INFO] [stdout] 943 | | ) -> *mut c_void { [INFO] [stdout] | |________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::lua_tonumberx` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:950:2 [INFO] [stdout] | [INFO] [stdout] 950 | lua_tonumberx(l, idx, null_mut()) [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/cdef/mod.rs:949:1 [INFO] [stdout] | [INFO] [stdout] 949 | pub unsafe fn lua_tonumber(l: *mut State, idx: c_int) -> Number { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::lua_tointegerx` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:956:2 [INFO] [stdout] | [INFO] [stdout] 956 | lua_tointegerx(l, idx, null_mut()) [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/cdef/mod.rs:955:1 [INFO] [stdout] | [INFO] [stdout] 955 | pub unsafe fn lua_tointeger(l: *mut State, idx: c_int) -> Integer { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::lua_settop` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:962:2 [INFO] [stdout] | [INFO] [stdout] 962 | lua_settop(l, -n - 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/cdef/mod.rs:961:1 [INFO] [stdout] | [INFO] [stdout] 961 | pub unsafe fn lua_pop(l: *mut State, n: c_int) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::lua_createtable` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:968:2 [INFO] [stdout] | [INFO] [stdout] 968 | lua_createtable(l, 0, 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] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/cdef/mod.rs:967:1 [INFO] [stdout] | [INFO] [stdout] 967 | pub unsafe fn lua_newtable(l: *mut State) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::lua_pushcclosure` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:974:2 [INFO] [stdout] | [INFO] [stdout] 974 | lua_pushcclosure(l, func, 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] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/cdef/mod.rs:973:1 [INFO] [stdout] | [INFO] [stdout] 973 | pub unsafe fn lua_pushcfunction(l: *mut State, func: CFunction) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::lua_pushcfunction` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:980:2 [INFO] [stdout] | [INFO] [stdout] 980 | lua_pushcfunction(l, func); [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/cdef/mod.rs:979:1 [INFO] [stdout] | [INFO] [stdout] 979 | pub unsafe fn lua_register(l: *mut State, name: *const c_char, func: CFunction) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::lua_setglobal` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:981:2 [INFO] [stdout] | [INFO] [stdout] 981 | lua_setglobal(l, name); [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 `cdef::lua_type` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:994:5 [INFO] [stdout] | [INFO] [stdout] 994 | lua_type(l, idx) == ($type as _) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 1000 | / lua_is! { [INFO] [stdout] 1001 | | pub fn lua_isfunction for Type::Function; [INFO] [stdout] 1002 | | pub fn lua_istable for Type::Table; [INFO] [stdout] 1003 | | pub fn lua_islightuserdata for Type::LightUserdata; [INFO] [stdout] ... | [INFO] [stdout] 1007 | | pub fn lua_isnone for Type::None; [INFO] [stdout] 1008 | | } [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: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/cdef/mod.rs:993:4 [INFO] [stdout] | [INFO] [stdout] 993 | $vis unsafe fn $name(l: *mut State, idx: c_int) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1000 | / lua_is! { [INFO] [stdout] 1001 | | pub fn lua_isfunction for Type::Function; [INFO] [stdout] 1002 | | pub fn lua_istable for Type::Table; [INFO] [stdout] 1003 | | pub fn lua_islightuserdata for Type::LightUserdata; [INFO] [stdout] ... | [INFO] [stdout] 1007 | | pub fn lua_isnone for Type::None; [INFO] [stdout] 1008 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `lua_is` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::lua_type` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:1013:2 [INFO] [stdout] | [INFO] [stdout] 1013 | lua_type(l, idx) <= 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] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/cdef/mod.rs:1012:1 [INFO] [stdout] | [INFO] [stdout] 1012 | pub unsafe fn lua_isnoneornil(l: *mut State, idx: c_int) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::lua_rawgeti` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:1023:2 [INFO] [stdout] | [INFO] [stdout] 1023 | lua_rawgeti(l, REGISTRY_INDEX, REGISTRY_GLOBALS); [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/cdef/mod.rs:1022:1 [INFO] [stdout] | [INFO] [stdout] 1022 | pub unsafe fn lua_pushglobaltable(l: *mut State) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::lua_tolstring` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:1029:2 [INFO] [stdout] | [INFO] [stdout] 1029 | lua_tolstring(l, idx, null_mut()) [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/cdef/mod.rs:1028:1 [INFO] [stdout] | [INFO] [stdout] 1028 | pub unsafe fn lua_tostring(l: *mut State, idx: c_int) -> *const c_char { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::lua_rotate` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:1035:2 [INFO] [stdout] | [INFO] [stdout] 1035 | lua_rotate(l, idx, 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/cdef/mod.rs:1034:1 [INFO] [stdout] | [INFO] [stdout] 1034 | pub unsafe fn lua_insert(l: *mut State, idx: c_int) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::lua_rotate` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:1041:2 [INFO] [stdout] | [INFO] [stdout] 1041 | lua_rotate(l, idx, -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/cdef/mod.rs:1040:1 [INFO] [stdout] | [INFO] [stdout] 1040 | pub unsafe fn lua_remove(l: *mut State, idx: c_int) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::lua_pop` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:1042:2 [INFO] [stdout] | [INFO] [stdout] 1042 | lua_pop(l, 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 `cdef::lua_copy` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:1048:2 [INFO] [stdout] | [INFO] [stdout] 1048 | lua_copy(l, -1, idx); [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/cdef/mod.rs:1047:1 [INFO] [stdout] | [INFO] [stdout] 1047 | pub unsafe fn lua_replace(l: *mut State, idx: c_int) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::lua_pop` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:1049:2 [INFO] [stdout] | [INFO] [stdout] 1049 | lua_pop(l, 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 `core::hint::unreachable_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:185:11 [INFO] [stdout] | [INFO] [stdout] 185 | _ => core::hint::unreachable_unchecked() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 1052 | / c_int_enum! { [INFO] [stdout] 1053 | | /// Lua event code enumeration. [INFO] [stdout] 1054 | | /// [INFO] [stdout] 1055 | | /// This is used in Lua debug hooks. [INFO] [stdout] ... | [INFO] [stdout] 1063 | | } [INFO] [stdout] 1064 | | } [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: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/cdef/mod.rs:182:4 [INFO] [stdout] | [INFO] [stdout] 182 | pub const unsafe fn from_c_int_unchecked(value: c_int) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1052 | / c_int_enum! { [INFO] [stdout] 1053 | | /// Lua event code enumeration. [INFO] [stdout] 1054 | | /// [INFO] [stdout] 1055 | | /// This is used in Lua debug hooks. [INFO] [stdout] ... | [INFO] [stdout] 1063 | | } [INFO] [stdout] 1064 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `c_int_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::lua_close` is unsafe and requires unsafe block [INFO] [stdout] --> src/thread.rs:170:3 [INFO] [stdout] | [INFO] [stdout] 170 | lua_close(self.l) [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/thread.rs:169:2 [INFO] [stdout] | [INFO] [stdout] 169 | pub unsafe fn close_as_main(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::slice::from_raw_parts_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/thread.rs:559:3 [INFO] [stdout] | [INFO] [stdout] 559 | from_raw_parts_mut(udata as *mut u8, 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] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/thread.rs:553:2 [INFO] [stdout] | [INFO] [stdout] 553 | / pub unsafe fn new_userdata_uv<'l>( [INFO] [stdout] 554 | | &'l self, [INFO] [stdout] 555 | | size: usize, [INFO] [stdout] 556 | | n_uservalues: c_ushort [INFO] [stdout] 557 | | ) -> &'l mut [u8] { [INFO] [stdout] | |_____________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::lua_tostring` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:121:17 [INFO] [stdout] | [INFO] [stdout] 121 | let msg_str = lua_tostring(l, -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:119:1 [INFO] [stdout] | [INFO] [stdout] 119 | pub unsafe extern "C" fn lua_panic(l: *mut State) -> c_int { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::ffi::CStr::from_bytes_with_nul_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:123:4 [INFO] [stdout] | [INFO] [stdout] 123 | / CStr::from_bytes_with_nul_unchecked( [INFO] [stdout] 124 | | b"error object is not a string\0" [INFO] [stdout] 125 | | ) [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 `core::ffi::CStr::from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:127:4 [INFO] [stdout] | [INFO] [stdout] 127 | CStr::from_ptr(msg_str) [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 `alloc::alloc::dealloc` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:306:6 [INFO] [stdout] | [INFO] [stdout] 306 | dealloc(ptr, guess_layout(osize)); [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:296:3 [INFO] [stdout] | [INFO] [stdout] 296 | / unsafe extern "C" fn l_alloc( [INFO] [stdout] 297 | | _ud: *mut c_void, [INFO] [stdout] 298 | | ptr: *mut c_void, osize: usize, [INFO] [stdout] 299 | | nsize: usize [INFO] [stdout] 300 | | ) -> *mut c_void { [INFO] [stdout] | |________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `alloc::alloc::realloc` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:330:6 [INFO] [stdout] | [INFO] [stdout] 330 | realloc(ptr, old_layout, nsize) as *mut c_void [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 `alloc::alloc::alloc` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:333:5 [INFO] [stdout] | [INFO] [stdout] 333 | alloc(guess_layout(nsize)) as *mut c_void [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 `thread::Thread::from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:357:16 [INFO] [stdout] | [INFO] [stdout] 357 | let thread = Thread::from_ptr(l); [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:356:2 [INFO] [stdout] | [INFO] [stdout] 356 | pub unsafe fn from_ptr(l: *mut State) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 77 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 `lunka` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/cdef/mod.rs [INFO] [stderr] * src/lib.rs [INFO] [stderr] * src/thread.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/cdef/mod.rs:163:22 [INFO] [stderr] | [INFO] [stderr] 163 | $variant:ident = $def: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/cdef/mod.rs:987:32 [INFO] [stderr] | [INFO] [stderr] 987 | $vis:vis fn $name:ident for $type: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] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/cdef/auxlib.rs:68:1 [INFO] [stdout] | [INFO] [stdout] 68 | extern "C" { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | _help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 69 | | pub fn luaL_newstate() -> *mut State; [INFO] [stdout] 70 | | [INFO] [stdout] 71 | | pub fn luaL_prepbuffsize(buffer: *mut Buffer, size: usize) -> *mut c_char; [INFO] [stdout] ... | [INFO] [stdout] 175 | | } [INFO] [stdout] 176 | | } [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] = note: `--force-warn missing-unsafe-on-extern` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/cdef/stdlibs.rs:46:1 [INFO] [stdout] | [INFO] [stdout] 46 | extern "C" { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | _help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 47 | | lua_state_func! { [INFO] [stdout] 48 | | pub fn luaopen_base(self) -> c_int; [INFO] [stdout] ... | [INFO] [stdout] 61 | | } [INFO] [stdout] 62 | | } [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] [stderr] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/cdef/mod.rs:163:27 [INFO] [stdout] | [INFO] [stdout] 163 | $variant:ident = $def: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] 163 | $variant:ident = $def:expr_2021, [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/lib.rs:428:3 [INFO] [stderr] | [INFO] [stderr] 428 | ($lua:expr_2021, $fmt:literal $(, $fmt_arg: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:428:36 [INFO] [stderr] | [INFO] [stderr] 428 | ($lua:expr_2021, $fmt:literal $(, $fmt_arg: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:453:3 [INFO] [stderr] | [INFO] [stderr] 453 | ($lua:expr_2021, $fmt:literal $(, $fmt_arg: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:453:36 [INFO] [stderr] | [INFO] [stderr] 453 | ($lua:expr_2021, $fmt:literal $(, $fmt_arg: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:495:20 [INFO] [stderr] | [INFO] [stderr] 495 | $field:ident $(: $fn: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:502:23 [INFO] [stderr] | [INFO] [stderr] 502 | (@field $field:ident $fn: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] warning: unnecessary `unsafe` block [INFO] [stderr] --> src/thread.rs:558:15 [INFO] [stderr] | [INFO] [stderr] 557 | ) -> &'l mut [u8] { unsafe { [INFO] [stderr] | ------ because it's nested under this `unsafe` block [INFO] [stderr] 558 | let udata = unsafe { lua_newuserdatauv(self.l, size, n_uservalues as _) }; [INFO] [stderr] | ^^^^^^ unnecessary `unsafe` block [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_unsafe)]` on by default [INFO] [stderr] [INFO] [stderr] error: aborting due to 8 previous errors; 1 warning emitted [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: extern blocks should be unsafe [INFO] [stdout] --> src/cdef/mod.rs:593:1 [INFO] [stdout] | [INFO] [stdout] 593 | extern "C" { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | _help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 594 | | pub fn lua_newstate(f: Alloc, ud: *mut c_void) -> *mut State; [INFO] [stdout] 595 | | pub fn lua_close(l: *mut State); [INFO] [stdout] ... | [INFO] [stdout] 834 | | fn lua_gethook_(l: *mut State) -> Hook; [INFO] [stdout] 835 | | } [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: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/cdef/mod.rs:987:38 [INFO] [stdout] | [INFO] [stdout] 987 | $vis:vis fn $name:ident for $type: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] 987 | $vis:vis fn $name:ident for $type: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:428:8 [INFO] [stdout] | [INFO] [stdout] 428 | ($lua:expr, $fmt:literal $(, $fmt_arg: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] 428 | ($lua:expr_2021, $fmt:literal $(, $fmt_arg: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:428:40 [INFO] [stdout] | [INFO] [stdout] 428 | ($lua:expr, $fmt:literal $(, $fmt_arg: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] 428 | ($lua:expr, $fmt:literal $(, $fmt_arg: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:453:8 [INFO] [stdout] | [INFO] [stdout] 453 | ($lua:expr, $fmt:literal $(, $fmt_arg: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] 453 | ($lua:expr_2021, $fmt:literal $(, $fmt_arg: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:453:40 [INFO] [stdout] | [INFO] [stdout] 453 | ($lua:expr, $fmt:literal $(, $fmt_arg: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] 453 | ($lua:expr, $fmt:literal $(, $fmt_arg: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:495:24 [INFO] [stdout] | [INFO] [stdout] 495 | $field:ident $(: $fn: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] 495 | $field:ident $(: $fn: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:502:27 [INFO] [stdout] | [INFO] [stdout] 502 | (@field $field:ident $fn: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] 502 | (@field $field:ident $fn:expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::auxlib::luaL_checkversion_` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/auxlib.rs:181:2 [INFO] [stdout] | [INFO] [stdout] 181 | luaL_checkversion_(l, VERSION_NUM, NUM_SIZES) [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/cdef/auxlib.rs:180:1 [INFO] [stdout] | [INFO] [stdout] 180 | pub unsafe fn luaL_checkversion(l: *mut State) { [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 `cdef::auxlib::luaL_loadfilex` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/auxlib.rs:187:2 [INFO] [stdout] | [INFO] [stdout] 187 | luaL_loadfilex(l, file_name, null()) [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/cdef/auxlib.rs:186:1 [INFO] [stdout] | [INFO] [stdout] 186 | pub unsafe fn luaL_loadfile(l: *mut State, file_name: *const c_char) -> c_int { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::lua_createtable` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/auxlib.rs:195:2 [INFO] [stdout] | [INFO] [stdout] 195 | lua_createtable(l, 0, (lib.len() - 1) as _) [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/cdef/auxlib.rs:194:1 [INFO] [stdout] | [INFO] [stdout] 194 | pub unsafe fn luaL_newlibtable(l: *mut State, lib: &[Reg]) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::auxlib::luaL_checkversion` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/auxlib.rs:203:2 [INFO] [stdout] | [INFO] [stdout] 203 | luaL_checkversion(l); [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/cdef/auxlib.rs:202:1 [INFO] [stdout] | [INFO] [stdout] 202 | pub unsafe fn luaL_newlib(l: *mut State, lib: &[Reg]) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::auxlib::luaL_newlibtable` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/auxlib.rs:204:2 [INFO] [stdout] | [INFO] [stdout] 204 | luaL_newlibtable(l, lib); [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 `cdef::auxlib::luaL_setfuncs` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/auxlib.rs:205:2 [INFO] [stdout] | [INFO] [stdout] 205 | luaL_setfuncs(l, lib.as_ptr(), 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 `cdef::auxlib::luaL_checklstring` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/auxlib.rs:214:2 [INFO] [stdout] | [INFO] [stdout] 214 | luaL_checklstring(l, arg, null_mut()) [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/cdef/auxlib.rs:213:1 [INFO] [stdout] | [INFO] [stdout] 213 | pub unsafe fn luaL_checkstring(l: *mut State, arg: c_int) -> *const c_char { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::auxlib::luaL_optlstring` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/auxlib.rs:222:2 [INFO] [stdout] | [INFO] [stdout] 222 | luaL_optlstring(l, arg, default, null_mut()) [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/cdef/auxlib.rs:219:1 [INFO] [stdout] | [INFO] [stdout] 219 | / pub unsafe fn luaL_optstring( [INFO] [stdout] 220 | | l: *mut State, arg: c_int, default: *const c_char [INFO] [stdout] 221 | | ) -> *const c_char { [INFO] [stdout] | |__________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::lua_typename` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/auxlib.rs:228:2 [INFO] [stdout] | [INFO] [stdout] 228 | lua_typename(l, lua_type(l, idx)) [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/cdef/auxlib.rs:227:1 [INFO] [stdout] | [INFO] [stdout] 227 | pub unsafe fn luaL_typename(l: *mut State, idx: c_int) -> *const c_char { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::lua_type` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/auxlib.rs:228:18 [INFO] [stdout] | [INFO] [stdout] 228 | lua_typename(l, lua_type(l, idx)) [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 `cdef::auxlib::luaL_loadfile` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/auxlib.rs:234:2 [INFO] [stdout] | [INFO] [stdout] 234 | luaL_loadfile(l, file_name) != 0 || lua_pcall(l, 0, MULT_RET, 0) != 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] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/cdef/auxlib.rs:233:1 [INFO] [stdout] | [INFO] [stdout] 233 | pub unsafe fn luaL_dofile(l: *mut State, file_name: *const c_char) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::lua_pcall` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/auxlib.rs:234:38 [INFO] [stdout] | [INFO] [stdout] 234 | luaL_loadfile(l, file_name) != 0 || lua_pcall(l, 0, MULT_RET, 0) != 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 `cdef::auxlib::luaL_loadstring` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/auxlib.rs:240:2 [INFO] [stdout] | [INFO] [stdout] 240 | luaL_loadstring(l, code) != 0 || lua_pcall(l, 0, MULT_RET, 0) != 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] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/cdef/auxlib.rs:239:1 [INFO] [stdout] | [INFO] [stdout] 239 | pub unsafe fn luaL_dostring(l: *mut State, code: *const c_char) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::lua_pcall` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/auxlib.rs:240:35 [INFO] [stdout] | [INFO] [stdout] 240 | luaL_loadstring(l, code) != 0 || lua_pcall(l, 0, MULT_RET, 0) != 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 `cdef::lua_getfield` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/auxlib.rs:246:2 [INFO] [stdout] | [INFO] [stdout] 246 | lua_getfield(l, REGISTRY_INDEX, name) [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/cdef/auxlib.rs:245:1 [INFO] [stdout] | [INFO] [stdout] 245 | pub unsafe fn luaL_getmetatable(l: *mut State, name: *const c_char) -> c_int { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::auxlib::luaL_loadbufferx` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/auxlib.rs:258:2 [INFO] [stdout] | [INFO] [stdout] 258 | luaL_loadbufferx(l, buffer, buffer_sz, name, null()) [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/cdef/auxlib.rs:253:1 [INFO] [stdout] | [INFO] [stdout] 253 | / pub unsafe fn luaL_loadbuffer( [INFO] [stdout] 254 | | l: *mut State, [INFO] [stdout] 255 | | buffer: *const c_char, buffer_sz: usize, [INFO] [stdout] 256 | | name: *const c_char [INFO] [stdout] 257 | | ) -> c_int { [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::lua_pushnil` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/auxlib.rs:266:2 [INFO] [stdout] | [INFO] [stdout] 266 | lua_pushnil(l) [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/cdef/auxlib.rs:265:1 [INFO] [stdout] | [INFO] [stdout] 265 | pub unsafe fn luaL_pushfail(l: *mut State) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::auxlib::Buffer::<'l>::prep_with` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/auxlib.rs:347:3 [INFO] [stdout] | [INFO] [stdout] 347 | self.prep_with(BUFFER_SIZE, func) [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/cdef/auxlib.rs:346:2 [INFO] [stdout] | [INFO] [stdout] 346 | pub unsafe fn prep_default_with(&mut self, func: impl FnOnce(&mut [c_char])) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::hint::unreachable_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:185:11 [INFO] [stdout] | [INFO] [stdout] 185 | _ => core::hint::unreachable_unchecked() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 211 | / c_int_enum! { [INFO] [stdout] 212 | | /// Lua status code enumeration. [INFO] [stdout] 213 | | /// [INFO] [stdout] 214 | | /// This status usually indicates a success or some sort of failure in the [INFO] [stdout] ... | [INFO] [stdout] 245 | | } [INFO] [stdout] 246 | | } [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: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/cdef/mod.rs:182:4 [INFO] [stdout] | [INFO] [stdout] 182 | pub const unsafe fn from_c_int_unchecked(value: c_int) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 211 | / c_int_enum! { [INFO] [stdout] 212 | | /// Lua status code enumeration. [INFO] [stdout] 213 | | /// [INFO] [stdout] 214 | | /// This status usually indicates a success or some sort of failure in the [INFO] [stdout] ... | [INFO] [stdout] 245 | | } [INFO] [stdout] 246 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `c_int_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::hint::unreachable_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:185:11 [INFO] [stdout] | [INFO] [stdout] 185 | _ => core::hint::unreachable_unchecked() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 314 | / c_int_enum! { [INFO] [stdout] 315 | | /// Lua basic type enumeration. [INFO] [stdout] 316 | | #[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord)] [INFO] [stdout] 317 | | pub enum Type { [INFO] [stdout] ... | [INFO] [stdout] 340 | | } [INFO] [stdout] 341 | | } [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: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/cdef/mod.rs:182:4 [INFO] [stdout] | [INFO] [stdout] 182 | pub const unsafe fn from_c_int_unchecked(value: c_int) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 314 | / c_int_enum! { [INFO] [stdout] 315 | | /// Lua basic type enumeration. [INFO] [stdout] 316 | | #[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord)] [INFO] [stdout] 317 | | pub enum Type { [INFO] [stdout] ... | [INFO] [stdout] 340 | | } [INFO] [stdout] 341 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `c_int_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::hint::unreachable_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:185:11 [INFO] [stdout] | [INFO] [stdout] 185 | _ => core::hint::unreachable_unchecked() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 523 | / c_int_enum! { [INFO] [stdout] 524 | | /// Operation types for [`lua_arith`]. [INFO] [stdout] 525 | | #[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord)] [INFO] [stdout] 526 | | pub enum Arith { [INFO] [stdout] ... | [INFO] [stdout] 541 | | } [INFO] [stdout] 542 | | } [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: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/cdef/mod.rs:182:4 [INFO] [stdout] | [INFO] [stdout] 182 | pub const unsafe fn from_c_int_unchecked(value: c_int) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 523 | / c_int_enum! { [INFO] [stdout] 524 | | /// Operation types for [`lua_arith`]. [INFO] [stdout] 525 | | #[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord)] [INFO] [stdout] 526 | | pub enum Arith { [INFO] [stdout] ... | [INFO] [stdout] 541 | | } [INFO] [stdout] 542 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `c_int_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::hint::unreachable_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:185:11 [INFO] [stdout] | [INFO] [stdout] 185 | _ => core::hint::unreachable_unchecked() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 544 | / c_int_enum! { [INFO] [stdout] 545 | | /// Operation types for [`lua_compare`]. [INFO] [stdout] 546 | | #[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord)] [INFO] [stdout] 547 | | pub enum Compare { [INFO] [stdout] ... | [INFO] [stdout] 551 | | } [INFO] [stdout] 552 | | } [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: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/cdef/mod.rs:182:4 [INFO] [stdout] | [INFO] [stdout] 182 | pub const unsafe fn from_c_int_unchecked(value: c_int) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 544 | / c_int_enum! { [INFO] [stdout] 545 | | /// Operation types for [`lua_compare`]. [INFO] [stdout] 546 | | #[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord)] [INFO] [stdout] 547 | | pub enum Compare { [INFO] [stdout] ... | [INFO] [stdout] 551 | | } [INFO] [stdout] 552 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `c_int_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::hint::unreachable_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:185:11 [INFO] [stdout] | [INFO] [stdout] 185 | _ => core::hint::unreachable_unchecked() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 554 | / c_int_enum! { [INFO] [stdout] 555 | | /// Tasks for [`lua_gc`]. [INFO] [stdout] 556 | | /// [INFO] [stdout] 557 | | /// This enum does not include the arguments associated with a GC task. [INFO] [stdout] ... | [INFO] [stdout] 571 | | } [INFO] [stdout] 572 | | } [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: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/cdef/mod.rs:182:4 [INFO] [stdout] | [INFO] [stdout] 182 | pub const unsafe fn from_c_int_unchecked(value: c_int) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 554 | / c_int_enum! { [INFO] [stdout] 555 | | /// Tasks for [`lua_gc`]. [INFO] [stdout] 556 | | /// [INFO] [stdout] 557 | | /// This enum does not include the arguments associated with a GC task. [INFO] [stdout] ... | [INFO] [stdout] 571 | | } [INFO] [stdout] 572 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `c_int_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::intrinsics::transmute` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:855:43 [INFO] [stdout] | [INFO] [stdout] 855 | let target_fn: ApiFn<$($gen_value)+> = transmute( [INFO] [stdout] | ____________________________________________________^ [INFO] [stdout] 856 | | $link_fn as ApiFn<$($gen_src)+> [INFO] [stdout] 857 | | ); [INFO] [stdout] | |_____________^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 864 | / genericize_fn!( [INFO] [stdout] 865 | | fn lua_getstack_ for [INFO] [stdout] 866 | | as pub fn lua_getstack[const ID_SIZE: usize]( [INFO] [stdout] 867 | | l: *mut State, level: c_int, ar: *mut Debug [INFO] [stdout] 868 | | ) -> c_int [INFO] [stdout] 869 | | ); [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: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/cdef/mod.rs:848:3 [INFO] [stdout] | [INFO] [stdout] 848 | / $vis unsafe fn $name<$($gen)+>( [INFO] [stdout] 849 | | $($param_n : $param_ty),* [INFO] [stdout] 850 | | ) $( -> $ret )? { [INFO] [stdout] | |____________________^ [INFO] [stdout] ... [INFO] [stdout] 864 | / genericize_fn!( [INFO] [stdout] 865 | | fn lua_getstack_ for [INFO] [stdout] 866 | | as pub fn lua_getstack[const ID_SIZE: usize]( [INFO] [stdout] 867 | | l: *mut State, level: c_int, ar: *mut Debug [INFO] [stdout] 868 | | ) -> c_int [INFO] [stdout] 869 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `genericize_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:859:4 [INFO] [stdout] | [INFO] [stdout] 859 | target_fn($($param_n),*) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 864 | / genericize_fn!( [INFO] [stdout] 865 | | fn lua_getstack_ for [INFO] [stdout] 866 | | as pub fn lua_getstack[const ID_SIZE: usize]( [INFO] [stdout] 867 | | l: *mut State, level: c_int, ar: *mut Debug [INFO] [stdout] 868 | | ) -> c_int [INFO] [stdout] 869 | | ); [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 `genericize_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::intrinsics::transmute` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:855:43 [INFO] [stdout] | [INFO] [stdout] 855 | let target_fn: ApiFn<$($gen_value)+> = transmute( [INFO] [stdout] | ____________________________________________________^ [INFO] [stdout] 856 | | $link_fn as ApiFn<$($gen_src)+> [INFO] [stdout] 857 | | ); [INFO] [stdout] | |_____________^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 871 | / genericize_fn!( [INFO] [stdout] 872 | | fn lua_getinfo_ for [INFO] [stdout] 873 | | as pub fn lua_getinfo[const ID_SIZE: usize]( [INFO] [stdout] 874 | | l: *mut State, what: *const c_char, ar: *mut Debug [INFO] [stdout] 875 | | ) -> c_int [INFO] [stdout] 876 | | ); [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: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/cdef/mod.rs:848:3 [INFO] [stdout] | [INFO] [stdout] 848 | / $vis unsafe fn $name<$($gen)+>( [INFO] [stdout] 849 | | $($param_n : $param_ty),* [INFO] [stdout] 850 | | ) $( -> $ret )? { [INFO] [stdout] | |____________________^ [INFO] [stdout] ... [INFO] [stdout] 871 | / genericize_fn!( [INFO] [stdout] 872 | | fn lua_getinfo_ for [INFO] [stdout] 873 | | as pub fn lua_getinfo[const ID_SIZE: usize]( [INFO] [stdout] 874 | | l: *mut State, what: *const c_char, ar: *mut Debug [INFO] [stdout] 875 | | ) -> c_int [INFO] [stdout] 876 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `genericize_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:859:4 [INFO] [stdout] | [INFO] [stdout] 859 | target_fn($($param_n),*) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 871 | / genericize_fn!( [INFO] [stdout] 872 | | fn lua_getinfo_ for [INFO] [stdout] 873 | | as pub fn lua_getinfo[const ID_SIZE: usize]( [INFO] [stdout] 874 | | l: *mut State, what: *const c_char, ar: *mut Debug [INFO] [stdout] 875 | | ) -> c_int [INFO] [stdout] 876 | | ); [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 `genericize_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::intrinsics::transmute` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:855:43 [INFO] [stdout] | [INFO] [stdout] 855 | let target_fn: ApiFn<$($gen_value)+> = transmute( [INFO] [stdout] | ____________________________________________________^ [INFO] [stdout] 856 | | $link_fn as ApiFn<$($gen_src)+> [INFO] [stdout] 857 | | ); [INFO] [stdout] | |_____________^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 878 | / genericize_fn!( [INFO] [stdout] 879 | | fn lua_getlocal_ for [INFO] [stdout] 880 | | as pub fn lua_getlocal[const ID_SIZE: usize]( [INFO] [stdout] 881 | | l: *mut State, ar: *const Debug, n: c_int [INFO] [stdout] 882 | | ) -> *const c_char [INFO] [stdout] 883 | | ); [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: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/cdef/mod.rs:848:3 [INFO] [stdout] | [INFO] [stdout] 848 | / $vis unsafe fn $name<$($gen)+>( [INFO] [stdout] 849 | | $($param_n : $param_ty),* [INFO] [stdout] 850 | | ) $( -> $ret )? { [INFO] [stdout] | |____________________^ [INFO] [stdout] ... [INFO] [stdout] 878 | / genericize_fn!( [INFO] [stdout] 879 | | fn lua_getlocal_ for [INFO] [stdout] 880 | | as pub fn lua_getlocal[const ID_SIZE: usize]( [INFO] [stdout] 881 | | l: *mut State, ar: *const Debug, n: c_int [INFO] [stdout] 882 | | ) -> *const c_char [INFO] [stdout] 883 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `genericize_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:859:4 [INFO] [stdout] | [INFO] [stdout] 859 | target_fn($($param_n),*) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 878 | / genericize_fn!( [INFO] [stdout] 879 | | fn lua_getlocal_ for [INFO] [stdout] 880 | | as pub fn lua_getlocal[const ID_SIZE: usize]( [INFO] [stdout] 881 | | l: *mut State, ar: *const Debug, n: c_int [INFO] [stdout] 882 | | ) -> *const c_char [INFO] [stdout] 883 | | ); [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 `genericize_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::intrinsics::transmute` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:855:43 [INFO] [stdout] | [INFO] [stdout] 855 | let target_fn: ApiFn<$($gen_value)+> = transmute( [INFO] [stdout] | ____________________________________________________^ [INFO] [stdout] 856 | | $link_fn as ApiFn<$($gen_src)+> [INFO] [stdout] 857 | | ); [INFO] [stdout] | |_____________^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 885 | / genericize_fn!( [INFO] [stdout] 886 | | fn lua_setlocal_ for [INFO] [stdout] 887 | | as pub fn lua_setlocal[const ID_SIZE: usize]( [INFO] [stdout] 888 | | l: *mut State, ar: *const Debug, n: c_int [INFO] [stdout] 889 | | ) -> *const c_char [INFO] [stdout] 890 | | ); [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: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/cdef/mod.rs:848:3 [INFO] [stdout] | [INFO] [stdout] 848 | / $vis unsafe fn $name<$($gen)+>( [INFO] [stdout] 849 | | $($param_n : $param_ty),* [INFO] [stdout] 850 | | ) $( -> $ret )? { [INFO] [stdout] | |____________________^ [INFO] [stdout] ... [INFO] [stdout] 885 | / genericize_fn!( [INFO] [stdout] 886 | | fn lua_setlocal_ for [INFO] [stdout] 887 | | as pub fn lua_setlocal[const ID_SIZE: usize]( [INFO] [stdout] 888 | | l: *mut State, ar: *const Debug, n: c_int [INFO] [stdout] 889 | | ) -> *const c_char [INFO] [stdout] 890 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `genericize_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:859:4 [INFO] [stdout] | [INFO] [stdout] 859 | target_fn($($param_n),*) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 885 | / genericize_fn!( [INFO] [stdout] 886 | | fn lua_setlocal_ for [INFO] [stdout] 887 | | as pub fn lua_setlocal[const ID_SIZE: usize]( [INFO] [stdout] 888 | | l: *mut State, ar: *const Debug, n: c_int [INFO] [stdout] 889 | | ) -> *const c_char [INFO] [stdout] 890 | | ); [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 `genericize_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::intrinsics::transmute` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:855:43 [INFO] [stdout] | [INFO] [stdout] 855 | let target_fn: ApiFn<$($gen_value)+> = transmute( [INFO] [stdout] | ____________________________________________________^ [INFO] [stdout] 856 | | $link_fn as ApiFn<$($gen_src)+> [INFO] [stdout] 857 | | ); [INFO] [stdout] | |_____________^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 892 | / genericize_fn!( [INFO] [stdout] 893 | | fn lua_sethook_ for [INFO] [stdout] 894 | | as pub fn lua_sethook[const ID_SIZE: usize]( [INFO] [stdout] 895 | | l: *mut State, func: Hook, mask: c_int, count: c_int [INFO] [stdout] 896 | | ) [INFO] [stdout] 897 | | ); [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: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/cdef/mod.rs:848:3 [INFO] [stdout] | [INFO] [stdout] 848 | / $vis unsafe fn $name<$($gen)+>( [INFO] [stdout] 849 | | $($param_n : $param_ty),* [INFO] [stdout] 850 | | ) $( -> $ret )? { [INFO] [stdout] | |_________^ [INFO] [stdout] ... [INFO] [stdout] 892 | / genericize_fn!( [INFO] [stdout] 893 | | fn lua_sethook_ for [INFO] [stdout] 894 | | as pub fn lua_sethook[const ID_SIZE: usize]( [INFO] [stdout] 895 | | l: *mut State, func: Hook, mask: c_int, count: c_int [INFO] [stdout] 896 | | ) [INFO] [stdout] 897 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `genericize_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:859:4 [INFO] [stdout] | [INFO] [stdout] 859 | target_fn($($param_n),*) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 892 | / genericize_fn!( [INFO] [stdout] 893 | | fn lua_sethook_ for [INFO] [stdout] 894 | | as pub fn lua_sethook[const ID_SIZE: usize]( [INFO] [stdout] 895 | | l: *mut State, func: Hook, mask: c_int, count: c_int [INFO] [stdout] 896 | | ) [INFO] [stdout] 897 | | ); [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 `genericize_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::intrinsics::transmute` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:855:43 [INFO] [stdout] | [INFO] [stdout] 855 | let target_fn: ApiFn<$($gen_value)+> = transmute( [INFO] [stdout] | ____________________________________________________^ [INFO] [stdout] 856 | | $link_fn as ApiFn<$($gen_src)+> [INFO] [stdout] 857 | | ); [INFO] [stdout] | |_____________^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 899 | / genericize_fn!( [INFO] [stdout] 900 | | fn lua_gethook_ for [INFO] [stdout] 901 | | as pub fn lua_gethook[const ID_SIZE: usize](l: *mut State) -> Hook [INFO] [stdout] 902 | | ); [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: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/cdef/mod.rs:848:3 [INFO] [stdout] | [INFO] [stdout] 848 | / $vis unsafe fn $name<$($gen)+>( [INFO] [stdout] 849 | | $($param_n : $param_ty),* [INFO] [stdout] 850 | | ) $( -> $ret )? { [INFO] [stdout] | |____________________^ [INFO] [stdout] ... [INFO] [stdout] 899 | / genericize_fn!( [INFO] [stdout] 900 | | fn lua_gethook_ for [INFO] [stdout] 901 | | as pub fn lua_gethook[const ID_SIZE: usize](l: *mut State) -> Hook [INFO] [stdout] 902 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `genericize_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:859:4 [INFO] [stdout] | [INFO] [stdout] 859 | target_fn($($param_n),*) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 899 | / genericize_fn!( [INFO] [stdout] 900 | | fn lua_gethook_ for [INFO] [stdout] 901 | | as pub fn lua_gethook[const ID_SIZE: usize](l: *mut State) -> Hook [INFO] [stdout] 902 | | ); [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 `genericize_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::lua_callk` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:907:2 [INFO] [stdout] | [INFO] [stdout] 907 | lua_callk(l, n_args, n_results, 0, None) [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/cdef/mod.rs:906:1 [INFO] [stdout] | [INFO] [stdout] 906 | pub unsafe fn lua_call(l: *mut State, n_args: c_int, n_results: c_int) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::lua_pcallk` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:917:2 [INFO] [stdout] | [INFO] [stdout] 917 | lua_pcallk(l, n_args, n_results, err_func, 0, None) [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/cdef/mod.rs:912:1 [INFO] [stdout] | [INFO] [stdout] 912 | / pub unsafe fn lua_pcall( [INFO] [stdout] 913 | | l: *mut State, [INFO] [stdout] 914 | | n_args: c_int, n_results: c_int, [INFO] [stdout] 915 | | err_func: c_int [INFO] [stdout] 916 | | ) -> c_int { [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::lua_yieldk` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:924:2 [INFO] [stdout] | [INFO] [stdout] 924 | lua_yieldk(l, n_results, 0, None) [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/cdef/mod.rs:923:1 [INFO] [stdout] | [INFO] [stdout] 923 | pub unsafe fn lua_yield(l: *mut State, n_results: c_int) -> ! { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::lua_yieldk_in_hook` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:931:2 [INFO] [stdout] | [INFO] [stdout] 931 | lua_yieldk_in_hook(l, n_results, 0, None) [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/cdef/mod.rs:930:1 [INFO] [stdout] | [INFO] [stdout] 930 | pub unsafe fn lua_yield_in_hook(l: *mut State, n_results: c_int) -> c_int { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::ptr::mut_ptr::::byte_sub` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:944:2 [INFO] [stdout] | [INFO] [stdout] 944 | l.byte_sub(extra_space) as *mut c_void [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/cdef/mod.rs:941:1 [INFO] [stdout] | [INFO] [stdout] 941 | / pub const unsafe fn lua_getextraspace( [INFO] [stdout] 942 | | l: *mut State, extra_space: usize [INFO] [stdout] 943 | | ) -> *mut c_void { [INFO] [stdout] | |________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::lua_tonumberx` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:950:2 [INFO] [stdout] | [INFO] [stdout] 950 | lua_tonumberx(l, idx, null_mut()) [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/cdef/mod.rs:949:1 [INFO] [stdout] | [INFO] [stdout] 949 | pub unsafe fn lua_tonumber(l: *mut State, idx: c_int) -> Number { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::lua_tointegerx` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:956:2 [INFO] [stdout] | [INFO] [stdout] 956 | lua_tointegerx(l, idx, null_mut()) [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/cdef/mod.rs:955:1 [INFO] [stdout] | [INFO] [stdout] 955 | pub unsafe fn lua_tointeger(l: *mut State, idx: c_int) -> Integer { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::lua_settop` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:962:2 [INFO] [stdout] | [INFO] [stdout] 962 | lua_settop(l, -n - 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/cdef/mod.rs:961:1 [INFO] [stdout] | [INFO] [stdout] 961 | pub unsafe fn lua_pop(l: *mut State, n: c_int) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::lua_createtable` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:968:2 [INFO] [stdout] | [INFO] [stdout] 968 | lua_createtable(l, 0, 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] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/cdef/mod.rs:967:1 [INFO] [stdout] | [INFO] [stdout] 967 | pub unsafe fn lua_newtable(l: *mut State) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::lua_pushcclosure` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:974:2 [INFO] [stdout] | [INFO] [stdout] 974 | lua_pushcclosure(l, func, 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] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/cdef/mod.rs:973:1 [INFO] [stdout] | [INFO] [stdout] 973 | pub unsafe fn lua_pushcfunction(l: *mut State, func: CFunction) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::lua_pushcfunction` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:980:2 [INFO] [stdout] | [INFO] [stdout] 980 | lua_pushcfunction(l, func); [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/cdef/mod.rs:979:1 [INFO] [stdout] | [INFO] [stdout] 979 | pub unsafe fn lua_register(l: *mut State, name: *const c_char, func: CFunction) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::lua_setglobal` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:981:2 [INFO] [stdout] | [INFO] [stdout] 981 | lua_setglobal(l, name); [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 `cdef::lua_type` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:994:5 [INFO] [stdout] | [INFO] [stdout] 994 | lua_type(l, idx) == ($type as _) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 1000 | / lua_is! { [INFO] [stdout] 1001 | | pub fn lua_isfunction for Type::Function; [INFO] [stdout] 1002 | | pub fn lua_istable for Type::Table; [INFO] [stdout] 1003 | | pub fn lua_islightuserdata for Type::LightUserdata; [INFO] [stdout] ... | [INFO] [stdout] 1007 | | pub fn lua_isnone for Type::None; [INFO] [stdout] 1008 | | } [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: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/cdef/mod.rs:993:4 [INFO] [stdout] | [INFO] [stdout] 993 | $vis unsafe fn $name(l: *mut State, idx: c_int) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1000 | / lua_is! { [INFO] [stdout] 1001 | | pub fn lua_isfunction for Type::Function; [INFO] [stdout] 1002 | | pub fn lua_istable for Type::Table; [INFO] [stdout] 1003 | | pub fn lua_islightuserdata for Type::LightUserdata; [INFO] [stdout] ... | [INFO] [stdout] 1007 | | pub fn lua_isnone for Type::None; [INFO] [stdout] 1008 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `lua_is` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::lua_type` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:1013:2 [INFO] [stdout] | [INFO] [stdout] 1013 | lua_type(l, idx) <= 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] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/cdef/mod.rs:1012:1 [INFO] [stdout] | [INFO] [stdout] 1012 | pub unsafe fn lua_isnoneornil(l: *mut State, idx: c_int) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::lua_rawgeti` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:1023:2 [INFO] [stdout] | [INFO] [stdout] 1023 | lua_rawgeti(l, REGISTRY_INDEX, REGISTRY_GLOBALS); [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/cdef/mod.rs:1022:1 [INFO] [stdout] | [INFO] [stdout] 1022 | pub unsafe fn lua_pushglobaltable(l: *mut State) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::lua_tolstring` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:1029:2 [INFO] [stdout] | [INFO] [stdout] 1029 | lua_tolstring(l, idx, null_mut()) [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/cdef/mod.rs:1028:1 [INFO] [stdout] | [INFO] [stdout] 1028 | pub unsafe fn lua_tostring(l: *mut State, idx: c_int) -> *const c_char { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::lua_rotate` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:1035:2 [INFO] [stdout] | [INFO] [stdout] 1035 | lua_rotate(l, idx, 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/cdef/mod.rs:1034:1 [INFO] [stdout] | [INFO] [stdout] 1034 | pub unsafe fn lua_insert(l: *mut State, idx: c_int) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::lua_rotate` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:1041:2 [INFO] [stdout] | [INFO] [stdout] 1041 | lua_rotate(l, idx, -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/cdef/mod.rs:1040:1 [INFO] [stdout] | [INFO] [stdout] 1040 | pub unsafe fn lua_remove(l: *mut State, idx: c_int) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::lua_pop` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:1042:2 [INFO] [stdout] | [INFO] [stdout] 1042 | lua_pop(l, 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 `cdef::lua_copy` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:1048:2 [INFO] [stdout] | [INFO] [stdout] 1048 | lua_copy(l, -1, idx); [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/cdef/mod.rs:1047:1 [INFO] [stdout] | [INFO] [stdout] 1047 | pub unsafe fn lua_replace(l: *mut State, idx: c_int) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::lua_pop` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:1049:2 [INFO] [stdout] | [INFO] [stdout] 1049 | lua_pop(l, 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 `core::hint::unreachable_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:185:11 [INFO] [stdout] | [INFO] [stdout] 185 | _ => core::hint::unreachable_unchecked() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 1052 | / c_int_enum! { [INFO] [stdout] 1053 | | /// Lua event code enumeration. [INFO] [stdout] 1054 | | /// [INFO] [stdout] 1055 | | /// This is used in Lua debug hooks. [INFO] [stdout] ... | [INFO] [stdout] 1063 | | } [INFO] [stdout] 1064 | | } [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: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/cdef/mod.rs:182:4 [INFO] [stdout] | [INFO] [stdout] 182 | pub const unsafe fn from_c_int_unchecked(value: c_int) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1052 | / c_int_enum! { [INFO] [stdout] 1053 | | /// Lua event code enumeration. [INFO] [stdout] 1054 | | /// [INFO] [stdout] 1055 | | /// This is used in Lua debug hooks. [INFO] [stdout] ... | [INFO] [stdout] 1063 | | } [INFO] [stdout] 1064 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `c_int_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::lua_close` is unsafe and requires unsafe block [INFO] [stdout] --> src/thread.rs:170:3 [INFO] [stdout] | [INFO] [stdout] 170 | lua_close(self.l) [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/thread.rs:169:2 [INFO] [stdout] | [INFO] [stdout] 169 | pub unsafe fn close_as_main(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::slice::from_raw_parts_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/thread.rs:559:3 [INFO] [stdout] | [INFO] [stdout] 559 | from_raw_parts_mut(udata as *mut u8, 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] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/thread.rs:553:2 [INFO] [stdout] | [INFO] [stdout] 553 | / pub unsafe fn new_userdata_uv<'l>( [INFO] [stdout] 554 | | &'l self, [INFO] [stdout] 555 | | size: usize, [INFO] [stdout] 556 | | n_uservalues: c_ushort [INFO] [stdout] 557 | | ) -> &'l mut [u8] { [INFO] [stdout] | |_____________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::lua_tostring` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:121:17 [INFO] [stdout] | [INFO] [stdout] 121 | let msg_str = lua_tostring(l, -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:119:1 [INFO] [stdout] | [INFO] [stdout] 119 | pub unsafe extern "C" fn lua_panic(l: *mut State) -> c_int { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::ffi::CStr::from_bytes_with_nul_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:123:4 [INFO] [stdout] | [INFO] [stdout] 123 | / CStr::from_bytes_with_nul_unchecked( [INFO] [stdout] 124 | | b"error object is not a string\0" [INFO] [stdout] 125 | | ) [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 `core::ffi::CStr::from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:127:4 [INFO] [stdout] | [INFO] [stdout] 127 | CStr::from_ptr(msg_str) [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 `alloc::alloc::dealloc` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:306:6 [INFO] [stdout] | [INFO] [stdout] 306 | dealloc(ptr, guess_layout(osize)); [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:296:3 [INFO] [stdout] | [INFO] [stdout] 296 | / unsafe extern "C" fn l_alloc( [INFO] [stdout] 297 | | _ud: *mut c_void, [INFO] [stdout] 298 | | ptr: *mut c_void, osize: usize, [INFO] [stdout] 299 | | nsize: usize [INFO] [stdout] 300 | | ) -> *mut c_void { [INFO] [stdout] | |________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `alloc::alloc::realloc` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:330:6 [INFO] [stdout] | [INFO] [stdout] 330 | realloc(ptr, old_layout, nsize) as *mut c_void [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 `alloc::alloc::alloc` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:333:5 [INFO] [stdout] | [INFO] [stdout] 333 | alloc(guess_layout(nsize)) as *mut c_void [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 `thread::Thread::from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:357:16 [INFO] [stdout] | [INFO] [stdout] 357 | let thread = Thread::from_ptr(l); [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:356:2 [INFO] [stdout] | [INFO] [stdout] 356 | pub unsafe fn from_ptr(l: *mut State) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 77 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] Migrating examples/interpreter.rs from 2021 edition to 2024 [INFO] [stderr] Fixed examples/interpreter.rs (2 fixes) [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> examples/interpreter.rs:65:2 [INFO] [stdout] | [INFO] [stdout] 62 | unsafe extern "C" fn l_main(lua: *mut LuaState) -> c_int { unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] ... [INFO] [stdout] 65 | unsafe { lua.check_version() }; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> examples/interpreter.rs:66:27 [INFO] [stdout] | [INFO] [stdout] 62 | unsafe extern "C" fn l_main(lua: *mut LuaState) -> c_int { unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] ... [INFO] [stdout] 66 | lua.run_managed(|mut mg| unsafe { mg.open_libs() }); [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> examples/interpreter.rs:73:17 [INFO] [stdout] | [INFO] [stdout] 62 | unsafe extern "C" fn l_main(lua: *mut LuaState) -> c_int { unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] ... [INFO] [stdout] 73 | lua.load_file(unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating examples/os2.rs from 2021 edition to 2024 [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> examples/interpreter.rs:87:3 [INFO] [stdout] | [INFO] [stdout] 62 | unsafe extern "C" fn l_main(lua: *mut LuaState) -> c_int { unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] ... [INFO] [stdout] 87 | unsafe { lua.push_byte_str(arg.as_bytes()) }; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Fixed examples/os2.rs (4 fixes) [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> examples/os2.rs:15:3 [INFO] [stdout] | [INFO] [stdout] 15 | unsafe { CStr::from_bytes_with_nul_unchecked( [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] ... [INFO] [stdout] 21 | unsafe extern "C" fn l_metadata(l: *mut LuaState) -> c_int { unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] ... [INFO] [stdout] 48 | mg.set_field(-2, c_str!(type)); [INFO] [stdout] | ------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` on by default [INFO] [stdout] = note: this warning originates in the macro `c_str` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating examples/hello.rs from 2021 edition to 2024 [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> examples/os2.rs:15:3 [INFO] [stdout] | [INFO] [stdout] 15 | unsafe { CStr::from_bytes_with_nul_unchecked( [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] ... [INFO] [stdout] 21 | unsafe extern "C" fn l_metadata(l: *mut LuaState) -> c_int { unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] ... [INFO] [stdout] 51 | mg.set_field(-2, c_str!(len)); [INFO] [stdout] | ----------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `c_str` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> examples/os2.rs:15:3 [INFO] [stdout] | [INFO] [stdout] 15 | unsafe { CStr::from_bytes_with_nul_unchecked( [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] ... [INFO] [stdout] 21 | unsafe extern "C" fn l_metadata(l: *mut LuaState) -> c_int { unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] ... [INFO] [stdout] 56 | mg.set_field(-2, c_str!(modified)); [INFO] [stdout] | ---------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `c_str` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating examples/push-trait.rs from 2021 edition to 2024 [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.38s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking lunka v0.9.0 (/tmp/fixit) [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/cdef/auxlib.rs:68:1 [INFO] [stdout] | [INFO] [stdout] 68 | / extern "C" { [INFO] [stdout] 69 | | pub fn luaL_newstate() -> *mut State; [INFO] [stdout] 70 | | [INFO] [stdout] 71 | | pub fn luaL_prepbuffsize(buffer: *mut Buffer, size: usize) -> *mut c_char; [INFO] [stdout] ... | [INFO] [stdout] 175 | | } [INFO] [stdout] 176 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/cdef/stdlibs.rs:46:1 [INFO] [stdout] | [INFO] [stdout] 46 | / extern "C" { [INFO] [stdout] 47 | | lua_state_func! { [INFO] [stdout] 48 | | pub fn luaopen_base(self) -> c_int; [INFO] [stdout] ... | [INFO] [stdout] 61 | | } [INFO] [stdout] 62 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/cdef/mod.rs:593:1 [INFO] [stdout] | [INFO] [stdout] 593 | / extern "C" { [INFO] [stdout] 594 | | pub fn lua_newstate(f: Alloc, ud: *mut c_void) -> *mut State; [INFO] [stdout] 595 | | pub fn lua_close(l: *mut State); [INFO] [stdout] ... | [INFO] [stdout] 834 | | fn lua_gethook_(l: *mut State) -> Hook; [INFO] [stdout] 835 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/cdef/auxlib.rs:68:1 [INFO] [stdout] | [INFO] [stdout] 68 | / extern "C" { [INFO] [stdout] 69 | | pub fn luaL_newstate() -> *mut State; [INFO] [stdout] 70 | | [INFO] [stdout] 71 | | pub fn luaL_prepbuffsize(buffer: *mut Buffer, size: usize) -> *mut c_char; [INFO] [stdout] ... | [INFO] [stdout] 175 | | } [INFO] [stdout] 176 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/cdef/stdlibs.rs:46:1 [INFO] [stdout] | [INFO] [stdout] 46 | / extern "C" { [INFO] [stdout] 47 | | lua_state_func! { [INFO] [stdout] 48 | | pub fn luaopen_base(self) -> c_int; [INFO] [stdout] ... | [INFO] [stdout] 61 | | } [INFO] [stdout] 62 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/cdef/mod.rs:593:1 [INFO] [stdout] | [INFO] [stdout] 593 | / extern "C" { [INFO] [stdout] 594 | | pub fn lua_newstate(f: Alloc, ud: *mut c_void) -> *mut State; [INFO] [stdout] 595 | | pub fn lua_close(l: *mut State); [INFO] [stdout] ... | [INFO] [stdout] 834 | | fn lua_gethook_(l: *mut State) -> Hook; [INFO] [stdout] 835 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::auxlib::luaL_checkversion_` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/auxlib.rs:181:2 [INFO] [stdout] | [INFO] [stdout] 181 | luaL_checkversion_(l, VERSION_NUM, NUM_SIZES) [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/cdef/auxlib.rs:180:1 [INFO] [stdout] | [INFO] [stdout] 180 | pub unsafe fn luaL_checkversion(l: *mut State) { [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 `cdef::auxlib::luaL_loadfilex` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/auxlib.rs:187:2 [INFO] [stdout] | [INFO] [stdout] 187 | luaL_loadfilex(l, file_name, null()) [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/cdef/auxlib.rs:186:1 [INFO] [stdout] | [INFO] [stdout] 186 | pub unsafe fn luaL_loadfile(l: *mut State, file_name: *const c_char) -> c_int { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::lua_createtable` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/auxlib.rs:195:2 [INFO] [stdout] | [INFO] [stdout] 195 | lua_createtable(l, 0, (lib.len() - 1) as _) [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/cdef/auxlib.rs:194:1 [INFO] [stdout] | [INFO] [stdout] 194 | pub unsafe fn luaL_newlibtable(l: *mut State, lib: &[Reg]) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::auxlib::luaL_checkversion` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/auxlib.rs:203:2 [INFO] [stdout] | [INFO] [stdout] 203 | luaL_checkversion(l); [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/cdef/auxlib.rs:202:1 [INFO] [stdout] | [INFO] [stdout] 202 | pub unsafe fn luaL_newlib(l: *mut State, lib: &[Reg]) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::auxlib::luaL_newlibtable` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/auxlib.rs:204:2 [INFO] [stdout] | [INFO] [stdout] 204 | luaL_newlibtable(l, lib); [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 `cdef::auxlib::luaL_setfuncs` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/auxlib.rs:205:2 [INFO] [stdout] | [INFO] [stdout] 205 | luaL_setfuncs(l, lib.as_ptr(), 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 `cdef::auxlib::luaL_checklstring` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/auxlib.rs:214:2 [INFO] [stdout] | [INFO] [stdout] 214 | luaL_checklstring(l, arg, null_mut()) [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/cdef/auxlib.rs:213:1 [INFO] [stdout] | [INFO] [stdout] 213 | pub unsafe fn luaL_checkstring(l: *mut State, arg: c_int) -> *const c_char { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::auxlib::luaL_optlstring` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/auxlib.rs:222:2 [INFO] [stdout] | [INFO] [stdout] 222 | luaL_optlstring(l, arg, default, null_mut()) [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/cdef/auxlib.rs:219:1 [INFO] [stdout] | [INFO] [stdout] 219 | / pub unsafe fn luaL_optstring( [INFO] [stdout] 220 | | l: *mut State, arg: c_int, default: *const c_char [INFO] [stdout] 221 | | ) -> *const c_char { [INFO] [stdout] | |__________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::lua_typename` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/auxlib.rs:228:2 [INFO] [stdout] | [INFO] [stdout] 228 | lua_typename(l, lua_type(l, idx)) [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/cdef/auxlib.rs:227:1 [INFO] [stdout] | [INFO] [stdout] 227 | pub unsafe fn luaL_typename(l: *mut State, idx: c_int) -> *const c_char { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::lua_type` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/auxlib.rs:228:18 [INFO] [stdout] | [INFO] [stdout] 228 | lua_typename(l, lua_type(l, idx)) [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 `cdef::auxlib::luaL_loadfile` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/auxlib.rs:234:2 [INFO] [stdout] | [INFO] [stdout] 234 | luaL_loadfile(l, file_name) != 0 || lua_pcall(l, 0, MULT_RET, 0) != 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] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/cdef/auxlib.rs:233:1 [INFO] [stdout] | [INFO] [stdout] 233 | pub unsafe fn luaL_dofile(l: *mut State, file_name: *const c_char) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::lua_pcall` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/auxlib.rs:234:38 [INFO] [stdout] | [INFO] [stdout] 234 | luaL_loadfile(l, file_name) != 0 || lua_pcall(l, 0, MULT_RET, 0) != 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 `cdef::auxlib::luaL_loadstring` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/auxlib.rs:240:2 [INFO] [stdout] | [INFO] [stdout] 240 | luaL_loadstring(l, code) != 0 || lua_pcall(l, 0, MULT_RET, 0) != 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] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/cdef/auxlib.rs:239:1 [INFO] [stdout] | [INFO] [stdout] 239 | pub unsafe fn luaL_dostring(l: *mut State, code: *const c_char) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::lua_pcall` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/auxlib.rs:240:35 [INFO] [stdout] | [INFO] [stdout] 240 | luaL_loadstring(l, code) != 0 || lua_pcall(l, 0, MULT_RET, 0) != 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 `cdef::lua_getfield` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/auxlib.rs:246:2 [INFO] [stdout] | [INFO] [stdout] 246 | lua_getfield(l, REGISTRY_INDEX, name) [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/cdef/auxlib.rs:245:1 [INFO] [stdout] | [INFO] [stdout] 245 | pub unsafe fn luaL_getmetatable(l: *mut State, name: *const c_char) -> c_int { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::auxlib::luaL_loadbufferx` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/auxlib.rs:258:2 [INFO] [stdout] | [INFO] [stdout] 258 | luaL_loadbufferx(l, buffer, buffer_sz, name, null()) [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/cdef/auxlib.rs:253:1 [INFO] [stdout] | [INFO] [stdout] 253 | / pub unsafe fn luaL_loadbuffer( [INFO] [stdout] 254 | | l: *mut State, [INFO] [stdout] 255 | | buffer: *const c_char, buffer_sz: usize, [INFO] [stdout] 256 | | name: *const c_char [INFO] [stdout] 257 | | ) -> c_int { [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::lua_pushnil` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/auxlib.rs:266:2 [INFO] [stdout] | [INFO] [stdout] 266 | lua_pushnil(l) [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/cdef/auxlib.rs:265:1 [INFO] [stdout] | [INFO] [stdout] 265 | pub unsafe fn luaL_pushfail(l: *mut State) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::auxlib::Buffer::<'l>::prep_with` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/auxlib.rs:347:3 [INFO] [stdout] | [INFO] [stdout] 347 | self.prep_with(BUFFER_SIZE, func) [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/cdef/auxlib.rs:346:2 [INFO] [stdout] | [INFO] [stdout] 346 | pub unsafe fn prep_default_with(&mut self, func: impl FnOnce(&mut [c_char])) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::auxlib::luaL_checkversion_` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/auxlib.rs:181:2 [INFO] [stdout] | [INFO] [stdout] 181 | luaL_checkversion_(l, VERSION_NUM, NUM_SIZES) [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/cdef/auxlib.rs:180:1 [INFO] [stdout] | [INFO] [stdout] 180 | pub unsafe fn luaL_checkversion(l: *mut State) { [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 `cdef::auxlib::luaL_loadfilex` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/auxlib.rs:187:2 [INFO] [stdout] | [INFO] [stdout] 187 | luaL_loadfilex(l, file_name, null()) [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/cdef/auxlib.rs:186:1 [INFO] [stdout] | [INFO] [stdout] 186 | pub unsafe fn luaL_loadfile(l: *mut State, file_name: *const c_char) -> c_int { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::lua_createtable` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/auxlib.rs:195:2 [INFO] [stdout] | [INFO] [stdout] 195 | lua_createtable(l, 0, (lib.len() - 1) as _) [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/cdef/auxlib.rs:194:1 [INFO] [stdout] | [INFO] [stdout] 194 | pub unsafe fn luaL_newlibtable(l: *mut State, lib: &[Reg]) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::auxlib::luaL_checkversion` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/auxlib.rs:203:2 [INFO] [stdout] | [INFO] [stdout] 203 | luaL_checkversion(l); [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/cdef/auxlib.rs:202:1 [INFO] [stdout] | [INFO] [stdout] 202 | pub unsafe fn luaL_newlib(l: *mut State, lib: &[Reg]) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::auxlib::luaL_newlibtable` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/auxlib.rs:204:2 [INFO] [stdout] | [INFO] [stdout] 204 | luaL_newlibtable(l, lib); [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 `cdef::auxlib::luaL_setfuncs` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/auxlib.rs:205:2 [INFO] [stdout] | [INFO] [stdout] 205 | luaL_setfuncs(l, lib.as_ptr(), 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 `cdef::auxlib::luaL_checklstring` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/auxlib.rs:214:2 [INFO] [stdout] | [INFO] [stdout] 214 | luaL_checklstring(l, arg, null_mut()) [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/cdef/auxlib.rs:213:1 [INFO] [stdout] | [INFO] [stdout] 213 | pub unsafe fn luaL_checkstring(l: *mut State, arg: c_int) -> *const c_char { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::auxlib::luaL_optlstring` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/auxlib.rs:222:2 [INFO] [stdout] | [INFO] [stdout] 222 | luaL_optlstring(l, arg, default, null_mut()) [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/cdef/auxlib.rs:219:1 [INFO] [stdout] | [INFO] [stdout] 219 | / pub unsafe fn luaL_optstring( [INFO] [stdout] 220 | | l: *mut State, arg: c_int, default: *const c_char [INFO] [stdout] 221 | | ) -> *const c_char { [INFO] [stdout] | |__________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::lua_typename` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/auxlib.rs:228:2 [INFO] [stdout] | [INFO] [stdout] 228 | lua_typename(l, lua_type(l, idx)) [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/cdef/auxlib.rs:227:1 [INFO] [stdout] | [INFO] [stdout] 227 | pub unsafe fn luaL_typename(l: *mut State, idx: c_int) -> *const c_char { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::lua_type` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/auxlib.rs:228:18 [INFO] [stdout] | [INFO] [stdout] 228 | lua_typename(l, lua_type(l, idx)) [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 `cdef::auxlib::luaL_loadfile` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/auxlib.rs:234:2 [INFO] [stdout] | [INFO] [stdout] 234 | luaL_loadfile(l, file_name) != 0 || lua_pcall(l, 0, MULT_RET, 0) != 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] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/cdef/auxlib.rs:233:1 [INFO] [stdout] | [INFO] [stdout] 233 | pub unsafe fn luaL_dofile(l: *mut State, file_name: *const c_char) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::lua_pcall` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/auxlib.rs:234:38 [INFO] [stdout] | [INFO] [stdout] 234 | luaL_loadfile(l, file_name) != 0 || lua_pcall(l, 0, MULT_RET, 0) != 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 `cdef::auxlib::luaL_loadstring` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/auxlib.rs:240:2 [INFO] [stdout] | [INFO] [stdout] 240 | luaL_loadstring(l, code) != 0 || lua_pcall(l, 0, MULT_RET, 0) != 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] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/cdef/auxlib.rs:239:1 [INFO] [stdout] | [INFO] [stdout] 239 | pub unsafe fn luaL_dostring(l: *mut State, code: *const c_char) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::lua_pcall` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/auxlib.rs:240:35 [INFO] [stdout] | [INFO] [stdout] 240 | luaL_loadstring(l, code) != 0 || lua_pcall(l, 0, MULT_RET, 0) != 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 `core::hint::unreachable_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:185:11 [INFO] [stdout] | [INFO] [stdout] 185 | _ => core::hint::unreachable_unchecked() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 211 | / c_int_enum! { [INFO] [stdout] 212 | | /// Lua status code enumeration. [INFO] [stdout] 213 | | /// [INFO] [stdout] 214 | | /// This status usually indicates a success or some sort of failure in the [INFO] [stdout] ... | [INFO] [stdout] 245 | | } [INFO] [stdout] 246 | | } [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: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/cdef/mod.rs:182:4 [INFO] [stdout] | [INFO] [stdout] 182 | pub const unsafe fn from_c_int_unchecked(value: c_int) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 211 | / c_int_enum! { [INFO] [stdout] 212 | | /// Lua status code enumeration. [INFO] [stdout] 213 | | /// [INFO] [stdout] 214 | | /// This status usually indicates a success or some sort of failure in the [INFO] [stdout] ... | [INFO] [stdout] 245 | | } [INFO] [stdout] 246 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `c_int_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::lua_getfield` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/auxlib.rs:246:2 [INFO] [stdout] | [INFO] [stdout] 246 | lua_getfield(l, REGISTRY_INDEX, name) [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/cdef/auxlib.rs:245:1 [INFO] [stdout] | [INFO] [stdout] 245 | pub unsafe fn luaL_getmetatable(l: *mut State, name: *const c_char) -> c_int { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::auxlib::luaL_loadbufferx` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/auxlib.rs:258:2 [INFO] [stdout] | [INFO] [stdout] 258 | luaL_loadbufferx(l, buffer, buffer_sz, name, null()) [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/cdef/auxlib.rs:253:1 [INFO] [stdout] | [INFO] [stdout] 253 | / pub unsafe fn luaL_loadbuffer( [INFO] [stdout] 254 | | l: *mut State, [INFO] [stdout] 255 | | buffer: *const c_char, buffer_sz: usize, [INFO] [stdout] 256 | | name: *const c_char [INFO] [stdout] 257 | | ) -> c_int { [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::lua_pushnil` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/auxlib.rs:266:2 [INFO] [stdout] | [INFO] [stdout] 266 | lua_pushnil(l) [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/cdef/auxlib.rs:265:1 [INFO] [stdout] | [INFO] [stdout] 265 | pub unsafe fn luaL_pushfail(l: *mut State) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::hint::unreachable_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:185:11 [INFO] [stdout] | [INFO] [stdout] 185 | _ => core::hint::unreachable_unchecked() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 314 | / c_int_enum! { [INFO] [stdout] 315 | | /// Lua basic type enumeration. [INFO] [stdout] 316 | | #[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord)] [INFO] [stdout] 317 | | pub enum Type { [INFO] [stdout] ... | [INFO] [stdout] 340 | | } [INFO] [stdout] 341 | | } [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: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/cdef/mod.rs:182:4 [INFO] [stdout] | [INFO] [stdout] 182 | pub const unsafe fn from_c_int_unchecked(value: c_int) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 314 | / c_int_enum! { [INFO] [stdout] 315 | | /// Lua basic type enumeration. [INFO] [stdout] 316 | | #[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord)] [INFO] [stdout] 317 | | pub enum Type { [INFO] [stdout] ... | [INFO] [stdout] 340 | | } [INFO] [stdout] 341 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `c_int_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::auxlib::Buffer::<'l>::prep_with` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/auxlib.rs:347:3 [INFO] [stdout] | [INFO] [stdout] 347 | self.prep_with(BUFFER_SIZE, func) [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/cdef/auxlib.rs:346:2 [INFO] [stdout] | [INFO] [stdout] 346 | pub unsafe fn prep_default_with(&mut self, func: impl FnOnce(&mut [c_char])) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::hint::unreachable_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:185:11 [INFO] [stdout] | [INFO] [stdout] 185 | _ => core::hint::unreachable_unchecked() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 523 | / c_int_enum! { [INFO] [stdout] 524 | | /// Operation types for [`lua_arith`]. [INFO] [stdout] 525 | | #[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord)] [INFO] [stdout] 526 | | pub enum Arith { [INFO] [stdout] ... | [INFO] [stdout] 541 | | } [INFO] [stdout] 542 | | } [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: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/cdef/mod.rs:182:4 [INFO] [stdout] | [INFO] [stdout] 182 | pub const unsafe fn from_c_int_unchecked(value: c_int) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 523 | / c_int_enum! { [INFO] [stdout] 524 | | /// Operation types for [`lua_arith`]. [INFO] [stdout] 525 | | #[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord)] [INFO] [stdout] 526 | | pub enum Arith { [INFO] [stdout] ... | [INFO] [stdout] 541 | | } [INFO] [stdout] 542 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `c_int_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::hint::unreachable_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:185:11 [INFO] [stdout] | [INFO] [stdout] 185 | _ => core::hint::unreachable_unchecked() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 544 | / c_int_enum! { [INFO] [stdout] 545 | | /// Operation types for [`lua_compare`]. [INFO] [stdout] 546 | | #[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord)] [INFO] [stdout] 547 | | pub enum Compare { [INFO] [stdout] ... | [INFO] [stdout] 551 | | } [INFO] [stdout] 552 | | } [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: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/cdef/mod.rs:182:4 [INFO] [stdout] | [INFO] [stdout] 182 | pub const unsafe fn from_c_int_unchecked(value: c_int) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 544 | / c_int_enum! { [INFO] [stdout] 545 | | /// Operation types for [`lua_compare`]. [INFO] [stdout] 546 | | #[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord)] [INFO] [stdout] 547 | | pub enum Compare { [INFO] [stdout] ... | [INFO] [stdout] 551 | | } [INFO] [stdout] 552 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `c_int_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::hint::unreachable_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:185:11 [INFO] [stdout] | [INFO] [stdout] 185 | _ => core::hint::unreachable_unchecked() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 554 | / c_int_enum! { [INFO] [stdout] 555 | | /// Tasks for [`lua_gc`]. [INFO] [stdout] 556 | | /// [INFO] [stdout] 557 | | /// This enum does not include the arguments associated with a GC task. [INFO] [stdout] ... | [INFO] [stdout] 571 | | } [INFO] [stdout] 572 | | } [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: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/cdef/mod.rs:182:4 [INFO] [stdout] | [INFO] [stdout] 182 | pub const unsafe fn from_c_int_unchecked(value: c_int) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 554 | / c_int_enum! { [INFO] [stdout] 555 | | /// Tasks for [`lua_gc`]. [INFO] [stdout] 556 | | /// [INFO] [stdout] 557 | | /// This enum does not include the arguments associated with a GC task. [INFO] [stdout] ... | [INFO] [stdout] 571 | | } [INFO] [stdout] 572 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `c_int_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::intrinsics::transmute` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:855:43 [INFO] [stdout] | [INFO] [stdout] 855 | let target_fn: ApiFn<$($gen_value)+> = transmute( [INFO] [stdout] | ____________________________________________________^ [INFO] [stdout] 856 | | $link_fn as ApiFn<$($gen_src)+> [INFO] [stdout] 857 | | ); [INFO] [stdout] | |_____________^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 864 | / genericize_fn!( [INFO] [stdout] 865 | | fn lua_getstack_ for [INFO] [stdout] 866 | | as pub fn lua_getstack[const ID_SIZE: usize]( [INFO] [stdout] 867 | | l: *mut State, level: c_int, ar: *mut Debug [INFO] [stdout] 868 | | ) -> c_int [INFO] [stdout] 869 | | ); [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: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/cdef/mod.rs:848:3 [INFO] [stdout] | [INFO] [stdout] 848 | / $vis unsafe fn $name<$($gen)+>( [INFO] [stdout] 849 | | $($param_n : $param_ty),* [INFO] [stdout] 850 | | ) $( -> $ret )? { [INFO] [stdout] | |____________________^ [INFO] [stdout] ... [INFO] [stdout] 864 | / genericize_fn!( [INFO] [stdout] 865 | | fn lua_getstack_ for [INFO] [stdout] 866 | | as pub fn lua_getstack[const ID_SIZE: usize]( [INFO] [stdout] 867 | | l: *mut State, level: c_int, ar: *mut Debug [INFO] [stdout] 868 | | ) -> c_int [INFO] [stdout] 869 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `genericize_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:859:4 [INFO] [stdout] | [INFO] [stdout] 859 | target_fn($($param_n),*) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 864 | / genericize_fn!( [INFO] [stdout] 865 | | fn lua_getstack_ for [INFO] [stdout] 866 | | as pub fn lua_getstack[const ID_SIZE: usize]( [INFO] [stdout] 867 | | l: *mut State, level: c_int, ar: *mut Debug [INFO] [stdout] 868 | | ) -> c_int [INFO] [stdout] 869 | | ); [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 `genericize_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::intrinsics::transmute` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:855:43 [INFO] [stdout] | [INFO] [stdout] 855 | let target_fn: ApiFn<$($gen_value)+> = transmute( [INFO] [stdout] | ____________________________________________________^ [INFO] [stdout] 856 | | $link_fn as ApiFn<$($gen_src)+> [INFO] [stdout] 857 | | ); [INFO] [stdout] | |_____________^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 871 | / genericize_fn!( [INFO] [stdout] 872 | | fn lua_getinfo_ for [INFO] [stdout] 873 | | as pub fn lua_getinfo[const ID_SIZE: usize]( [INFO] [stdout] 874 | | l: *mut State, what: *const c_char, ar: *mut Debug [INFO] [stdout] 875 | | ) -> c_int [INFO] [stdout] 876 | | ); [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: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/cdef/mod.rs:848:3 [INFO] [stdout] | [INFO] [stdout] 848 | / $vis unsafe fn $name<$($gen)+>( [INFO] [stdout] 849 | | $($param_n : $param_ty),* [INFO] [stdout] 850 | | ) $( -> $ret )? { [INFO] [stdout] | |____________________^ [INFO] [stdout] ... [INFO] [stdout] 871 | / genericize_fn!( [INFO] [stdout] 872 | | fn lua_getinfo_ for [INFO] [stdout] 873 | | as pub fn lua_getinfo[const ID_SIZE: usize]( [INFO] [stdout] 874 | | l: *mut State, what: *const c_char, ar: *mut Debug [INFO] [stdout] 875 | | ) -> c_int [INFO] [stdout] 876 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `genericize_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:859:4 [INFO] [stdout] | [INFO] [stdout] 859 | target_fn($($param_n),*) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 871 | / genericize_fn!( [INFO] [stdout] 872 | | fn lua_getinfo_ for [INFO] [stdout] 873 | | as pub fn lua_getinfo[const ID_SIZE: usize]( [INFO] [stdout] 874 | | l: *mut State, what: *const c_char, ar: *mut Debug [INFO] [stdout] 875 | | ) -> c_int [INFO] [stdout] 876 | | ); [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 `genericize_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::intrinsics::transmute` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:855:43 [INFO] [stdout] | [INFO] [stdout] 855 | let target_fn: ApiFn<$($gen_value)+> = transmute( [INFO] [stdout] | ____________________________________________________^ [INFO] [stdout] 856 | | $link_fn as ApiFn<$($gen_src)+> [INFO] [stdout] 857 | | ); [INFO] [stdout] | |_____________^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 878 | / genericize_fn!( [INFO] [stdout] 879 | | fn lua_getlocal_ for [INFO] [stdout] 880 | | as pub fn lua_getlocal[const ID_SIZE: usize]( [INFO] [stdout] 881 | | l: *mut State, ar: *const Debug, n: c_int [INFO] [stdout] 882 | | ) -> *const c_char [INFO] [stdout] 883 | | ); [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: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/cdef/mod.rs:848:3 [INFO] [stdout] | [INFO] [stdout] 848 | / $vis unsafe fn $name<$($gen)+>( [INFO] [stdout] 849 | | $($param_n : $param_ty),* [INFO] [stdout] 850 | | ) $( -> $ret )? { [INFO] [stdout] | |____________________^ [INFO] [stdout] ... [INFO] [stdout] 878 | / genericize_fn!( [INFO] [stdout] 879 | | fn lua_getlocal_ for [INFO] [stdout] 880 | | as pub fn lua_getlocal[const ID_SIZE: usize]( [INFO] [stdout] 881 | | l: *mut State, ar: *const Debug, n: c_int [INFO] [stdout] 882 | | ) -> *const c_char [INFO] [stdout] 883 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `genericize_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::hint::unreachable_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:185:11 [INFO] [stdout] | [INFO] [stdout] 185 | _ => core::hint::unreachable_unchecked() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 211 | / c_int_enum! { [INFO] [stdout] 212 | | /// Lua status code enumeration. [INFO] [stdout] 213 | | /// [INFO] [stdout] 214 | | /// This status usually indicates a success or some sort of failure in the [INFO] [stdout] ... | [INFO] [stdout] 245 | | } [INFO] [stdout] 246 | | } [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: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/cdef/mod.rs:182:4 [INFO] [stdout] | [INFO] [stdout] 182 | pub const unsafe fn from_c_int_unchecked(value: c_int) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 211 | / c_int_enum! { [INFO] [stdout] 212 | | /// Lua status code enumeration. [INFO] [stdout] 213 | | /// [INFO] [stdout] 214 | | /// This status usually indicates a success or some sort of failure in the [INFO] [stdout] ... | [INFO] [stdout] 245 | | } [INFO] [stdout] 246 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `c_int_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:859:4 [INFO] [stdout] | [INFO] [stdout] 859 | target_fn($($param_n),*) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 878 | / genericize_fn!( [INFO] [stdout] 879 | | fn lua_getlocal_ for [INFO] [stdout] 880 | | as pub fn lua_getlocal[const ID_SIZE: usize]( [INFO] [stdout] 881 | | l: *mut State, ar: *const Debug, n: c_int [INFO] [stdout] 882 | | ) -> *const c_char [INFO] [stdout] 883 | | ); [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 `genericize_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::intrinsics::transmute` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:855:43 [INFO] [stdout] | [INFO] [stdout] 855 | let target_fn: ApiFn<$($gen_value)+> = transmute( [INFO] [stdout] | ____________________________________________________^ [INFO] [stdout] 856 | | $link_fn as ApiFn<$($gen_src)+> [INFO] [stdout] 857 | | ); [INFO] [stdout] | |_____________^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 885 | / genericize_fn!( [INFO] [stdout] 886 | | fn lua_setlocal_ for [INFO] [stdout] 887 | | as pub fn lua_setlocal[const ID_SIZE: usize]( [INFO] [stdout] 888 | | l: *mut State, ar: *const Debug, n: c_int [INFO] [stdout] 889 | | ) -> *const c_char [INFO] [stdout] 890 | | ); [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: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/cdef/mod.rs:848:3 [INFO] [stdout] | [INFO] [stdout] 848 | / $vis unsafe fn $name<$($gen)+>( [INFO] [stdout] 849 | | $($param_n : $param_ty),* [INFO] [stdout] 850 | | ) $( -> $ret )? { [INFO] [stdout] | |____________________^ [INFO] [stdout] ... [INFO] [stdout] 885 | / genericize_fn!( [INFO] [stdout] 886 | | fn lua_setlocal_ for [INFO] [stdout] 887 | | as pub fn lua_setlocal[const ID_SIZE: usize]( [INFO] [stdout] 888 | | l: *mut State, ar: *const Debug, n: c_int [INFO] [stdout] 889 | | ) -> *const c_char [INFO] [stdout] 890 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `genericize_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:859:4 [INFO] [stdout] | [INFO] [stdout] 859 | target_fn($($param_n),*) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 885 | / genericize_fn!( [INFO] [stdout] 886 | | fn lua_setlocal_ for [INFO] [stdout] 887 | | as pub fn lua_setlocal[const ID_SIZE: usize]( [INFO] [stdout] 888 | | l: *mut State, ar: *const Debug, n: c_int [INFO] [stdout] 889 | | ) -> *const c_char [INFO] [stdout] 890 | | ); [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 `genericize_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::hint::unreachable_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:185:11 [INFO] [stdout] | [INFO] [stdout] 185 | _ => core::hint::unreachable_unchecked() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 314 | / c_int_enum! { [INFO] [stdout] 315 | | /// Lua basic type enumeration. [INFO] [stdout] 316 | | #[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord)] [INFO] [stdout] 317 | | pub enum Type { [INFO] [stdout] ... | [INFO] [stdout] 340 | | } [INFO] [stdout] 341 | | } [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: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/cdef/mod.rs:182:4 [INFO] [stdout] | [INFO] [stdout] 182 | pub const unsafe fn from_c_int_unchecked(value: c_int) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 314 | / c_int_enum! { [INFO] [stdout] 315 | | /// Lua basic type enumeration. [INFO] [stdout] 316 | | #[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord)] [INFO] [stdout] 317 | | pub enum Type { [INFO] [stdout] ... | [INFO] [stdout] 340 | | } [INFO] [stdout] 341 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `c_int_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::intrinsics::transmute` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:855:43 [INFO] [stdout] | [INFO] [stdout] 855 | let target_fn: ApiFn<$($gen_value)+> = transmute( [INFO] [stdout] | ____________________________________________________^ [INFO] [stdout] 856 | | $link_fn as ApiFn<$($gen_src)+> [INFO] [stdout] 857 | | ); [INFO] [stdout] | |_____________^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 892 | / genericize_fn!( [INFO] [stdout] 893 | | fn lua_sethook_ for [INFO] [stdout] 894 | | as pub fn lua_sethook[const ID_SIZE: usize]( [INFO] [stdout] 895 | | l: *mut State, func: Hook, mask: c_int, count: c_int [INFO] [stdout] 896 | | ) [INFO] [stdout] 897 | | ); [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: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/cdef/mod.rs:848:3 [INFO] [stdout] | [INFO] [stdout] 848 | / $vis unsafe fn $name<$($gen)+>( [INFO] [stdout] 849 | | $($param_n : $param_ty),* [INFO] [stdout] 850 | | ) $( -> $ret )? { [INFO] [stdout] | |_________^ [INFO] [stdout] ... [INFO] [stdout] 892 | / genericize_fn!( [INFO] [stdout] 893 | | fn lua_sethook_ for [INFO] [stdout] 894 | | as pub fn lua_sethook[const ID_SIZE: usize]( [INFO] [stdout] 895 | | l: *mut State, func: Hook, mask: c_int, count: c_int [INFO] [stdout] 896 | | ) [INFO] [stdout] 897 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `genericize_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:859:4 [INFO] [stdout] | [INFO] [stdout] 859 | target_fn($($param_n),*) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 892 | / genericize_fn!( [INFO] [stdout] 893 | | fn lua_sethook_ for [INFO] [stdout] 894 | | as pub fn lua_sethook[const ID_SIZE: usize]( [INFO] [stdout] 895 | | l: *mut State, func: Hook, mask: c_int, count: c_int [INFO] [stdout] 896 | | ) [INFO] [stdout] 897 | | ); [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 `genericize_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::intrinsics::transmute` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:855:43 [INFO] [stdout] | [INFO] [stdout] 855 | let target_fn: ApiFn<$($gen_value)+> = transmute( [INFO] [stdout] | ____________________________________________________^ [INFO] [stdout] 856 | | $link_fn as ApiFn<$($gen_src)+> [INFO] [stdout] 857 | | ); [INFO] [stdout] | |_____________^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 899 | / genericize_fn!( [INFO] [stdout] 900 | | fn lua_gethook_ for [INFO] [stdout] 901 | | as pub fn lua_gethook[const ID_SIZE: usize](l: *mut State) -> Hook [INFO] [stdout] 902 | | ); [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: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/cdef/mod.rs:848:3 [INFO] [stdout] | [INFO] [stdout] 848 | / $vis unsafe fn $name<$($gen)+>( [INFO] [stdout] 849 | | $($param_n : $param_ty),* [INFO] [stdout] 850 | | ) $( -> $ret )? { [INFO] [stdout] | |____________________^ [INFO] [stdout] ... [INFO] [stdout] 899 | / genericize_fn!( [INFO] [stdout] 900 | | fn lua_gethook_ for [INFO] [stdout] 901 | | as pub fn lua_gethook[const ID_SIZE: usize](l: *mut State) -> Hook [INFO] [stdout] 902 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `genericize_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:859:4 [INFO] [stdout] | [INFO] [stdout] 859 | target_fn($($param_n),*) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 899 | / genericize_fn!( [INFO] [stdout] 900 | | fn lua_gethook_ for [INFO] [stdout] 901 | | as pub fn lua_gethook[const ID_SIZE: usize](l: *mut State) -> Hook [INFO] [stdout] 902 | | ); [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 `genericize_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::lua_callk` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:907:2 [INFO] [stdout] | [INFO] [stdout] 907 | lua_callk(l, n_args, n_results, 0, None) [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/cdef/mod.rs:906:1 [INFO] [stdout] | [INFO] [stdout] 906 | pub unsafe fn lua_call(l: *mut State, n_args: c_int, n_results: c_int) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::lua_pcallk` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:917:2 [INFO] [stdout] | [INFO] [stdout] 917 | lua_pcallk(l, n_args, n_results, err_func, 0, None) [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/cdef/mod.rs:912:1 [INFO] [stdout] | [INFO] [stdout] 912 | / pub unsafe fn lua_pcall( [INFO] [stdout] 913 | | l: *mut State, [INFO] [stdout] 914 | | n_args: c_int, n_results: c_int, [INFO] [stdout] 915 | | err_func: c_int [INFO] [stdout] 916 | | ) -> c_int { [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::lua_yieldk` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:924:2 [INFO] [stdout] | [INFO] [stdout] 924 | lua_yieldk(l, n_results, 0, None) [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/cdef/mod.rs:923:1 [INFO] [stdout] | [INFO] [stdout] 923 | pub unsafe fn lua_yield(l: *mut State, n_results: c_int) -> ! { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::lua_yieldk_in_hook` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:931:2 [INFO] [stdout] | [INFO] [stdout] 931 | lua_yieldk_in_hook(l, n_results, 0, None) [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/cdef/mod.rs:930:1 [INFO] [stdout] | [INFO] [stdout] 930 | pub unsafe fn lua_yield_in_hook(l: *mut State, n_results: c_int) -> c_int { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::ptr::mut_ptr::::byte_sub` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:944:2 [INFO] [stdout] | [INFO] [stdout] 944 | l.byte_sub(extra_space) as *mut c_void [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/cdef/mod.rs:941:1 [INFO] [stdout] | [INFO] [stdout] 941 | / pub const unsafe fn lua_getextraspace( [INFO] [stdout] 942 | | l: *mut State, extra_space: usize [INFO] [stdout] 943 | | ) -> *mut c_void { [INFO] [stdout] | |________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::lua_tonumberx` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:950:2 [INFO] [stdout] | [INFO] [stdout] 950 | lua_tonumberx(l, idx, null_mut()) [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/cdef/mod.rs:949:1 [INFO] [stdout] | [INFO] [stdout] 949 | pub unsafe fn lua_tonumber(l: *mut State, idx: c_int) -> Number { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::lua_tointegerx` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:956:2 [INFO] [stdout] | [INFO] [stdout] 956 | lua_tointegerx(l, idx, null_mut()) [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/cdef/mod.rs:955:1 [INFO] [stdout] | [INFO] [stdout] 955 | pub unsafe fn lua_tointeger(l: *mut State, idx: c_int) -> Integer { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::lua_settop` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:962:2 [INFO] [stdout] | [INFO] [stdout] 962 | lua_settop(l, -n - 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/cdef/mod.rs:961:1 [INFO] [stdout] | [INFO] [stdout] 961 | pub unsafe fn lua_pop(l: *mut State, n: c_int) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::lua_createtable` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:968:2 [INFO] [stdout] | [INFO] [stdout] 968 | lua_createtable(l, 0, 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] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/cdef/mod.rs:967:1 [INFO] [stdout] | [INFO] [stdout] 967 | pub unsafe fn lua_newtable(l: *mut State) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::lua_pushcclosure` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:974:2 [INFO] [stdout] | [INFO] [stdout] 974 | lua_pushcclosure(l, func, 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] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/cdef/mod.rs:973:1 [INFO] [stdout] | [INFO] [stdout] 973 | pub unsafe fn lua_pushcfunction(l: *mut State, func: CFunction) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::lua_pushcfunction` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:980:2 [INFO] [stdout] | [INFO] [stdout] 980 | lua_pushcfunction(l, func); [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/cdef/mod.rs:979:1 [INFO] [stdout] | [INFO] [stdout] 979 | pub unsafe fn lua_register(l: *mut State, name: *const c_char, func: CFunction) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::lua_setglobal` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:981:2 [INFO] [stdout] | [INFO] [stdout] 981 | lua_setglobal(l, name); [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 `cdef::lua_type` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:994:5 [INFO] [stdout] | [INFO] [stdout] 994 | lua_type(l, idx) == ($type as _) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 1000 | / lua_is! { [INFO] [stdout] 1001 | | pub fn lua_isfunction for Type::Function; [INFO] [stdout] 1002 | | pub fn lua_istable for Type::Table; [INFO] [stdout] 1003 | | pub fn lua_islightuserdata for Type::LightUserdata; [INFO] [stdout] ... | [INFO] [stdout] 1007 | | pub fn lua_isnone for Type::None; [INFO] [stdout] 1008 | | } [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: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/cdef/mod.rs:993:4 [INFO] [stdout] | [INFO] [stdout] 993 | $vis unsafe fn $name(l: *mut State, idx: c_int) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1000 | / lua_is! { [INFO] [stdout] 1001 | | pub fn lua_isfunction for Type::Function; [INFO] [stdout] 1002 | | pub fn lua_istable for Type::Table; [INFO] [stdout] 1003 | | pub fn lua_islightuserdata for Type::LightUserdata; [INFO] [stdout] ... | [INFO] [stdout] 1007 | | pub fn lua_isnone for Type::None; [INFO] [stdout] 1008 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `lua_is` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::hint::unreachable_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:185:11 [INFO] [stdout] | [INFO] [stdout] 185 | _ => core::hint::unreachable_unchecked() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 523 | / c_int_enum! { [INFO] [stdout] 524 | | /// Operation types for [`lua_arith`]. [INFO] [stdout] 525 | | #[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord)] [INFO] [stdout] 526 | | pub enum Arith { [INFO] [stdout] ... | [INFO] [stdout] 541 | | } [INFO] [stdout] 542 | | } [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: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/cdef/mod.rs:182:4 [INFO] [stdout] | [INFO] [stdout] 182 | pub const unsafe fn from_c_int_unchecked(value: c_int) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 523 | / c_int_enum! { [INFO] [stdout] 524 | | /// Operation types for [`lua_arith`]. [INFO] [stdout] 525 | | #[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord)] [INFO] [stdout] 526 | | pub enum Arith { [INFO] [stdout] ... | [INFO] [stdout] 541 | | } [INFO] [stdout] 542 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `c_int_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::lua_type` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:1013:2 [INFO] [stdout] | [INFO] [stdout] 1013 | lua_type(l, idx) <= 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] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/cdef/mod.rs:1012:1 [INFO] [stdout] | [INFO] [stdout] 1012 | pub unsafe fn lua_isnoneornil(l: *mut State, idx: c_int) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::lua_rawgeti` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:1023:2 [INFO] [stdout] | [INFO] [stdout] 1023 | lua_rawgeti(l, REGISTRY_INDEX, REGISTRY_GLOBALS); [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/cdef/mod.rs:1022:1 [INFO] [stdout] | [INFO] [stdout] 1022 | pub unsafe fn lua_pushglobaltable(l: *mut State) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::lua_tolstring` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:1029:2 [INFO] [stdout] | [INFO] [stdout] 1029 | lua_tolstring(l, idx, null_mut()) [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/cdef/mod.rs:1028:1 [INFO] [stdout] | [INFO] [stdout] 1028 | pub unsafe fn lua_tostring(l: *mut State, idx: c_int) -> *const c_char { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::lua_rotate` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:1035:2 [INFO] [stdout] | [INFO] [stdout] 1035 | lua_rotate(l, idx, 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/cdef/mod.rs:1034:1 [INFO] [stdout] | [INFO] [stdout] 1034 | pub unsafe fn lua_insert(l: *mut State, idx: c_int) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::lua_rotate` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:1041:2 [INFO] [stdout] | [INFO] [stdout] 1041 | lua_rotate(l, idx, -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/cdef/mod.rs:1040:1 [INFO] [stdout] | [INFO] [stdout] 1040 | pub unsafe fn lua_remove(l: *mut State, idx: c_int) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::lua_pop` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:1042:2 [INFO] [stdout] | [INFO] [stdout] 1042 | lua_pop(l, 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 `cdef::lua_copy` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:1048:2 [INFO] [stdout] | [INFO] [stdout] 1048 | lua_copy(l, -1, idx); [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/cdef/mod.rs:1047:1 [INFO] [stdout] | [INFO] [stdout] 1047 | pub unsafe fn lua_replace(l: *mut State, idx: c_int) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::lua_pop` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:1049:2 [INFO] [stdout] | [INFO] [stdout] 1049 | lua_pop(l, 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 `core::hint::unreachable_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:185:11 [INFO] [stdout] | [INFO] [stdout] 185 | _ => core::hint::unreachable_unchecked() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 544 | / c_int_enum! { [INFO] [stdout] 545 | | /// Operation types for [`lua_compare`]. [INFO] [stdout] 546 | | #[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord)] [INFO] [stdout] 547 | | pub enum Compare { [INFO] [stdout] ... | [INFO] [stdout] 551 | | } [INFO] [stdout] 552 | | } [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: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/cdef/mod.rs:182:4 [INFO] [stdout] | [INFO] [stdout] 182 | pub const unsafe fn from_c_int_unchecked(value: c_int) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 544 | / c_int_enum! { [INFO] [stdout] 545 | | /// Operation types for [`lua_compare`]. [INFO] [stdout] 546 | | #[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord)] [INFO] [stdout] 547 | | pub enum Compare { [INFO] [stdout] ... | [INFO] [stdout] 551 | | } [INFO] [stdout] 552 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `c_int_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::hint::unreachable_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:185:11 [INFO] [stdout] | [INFO] [stdout] 185 | _ => core::hint::unreachable_unchecked() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 1052 | / c_int_enum! { [INFO] [stdout] 1053 | | /// Lua event code enumeration. [INFO] [stdout] 1054 | | /// [INFO] [stdout] 1055 | | /// This is used in Lua debug hooks. [INFO] [stdout] ... | [INFO] [stdout] 1063 | | } [INFO] [stdout] 1064 | | } [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: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/cdef/mod.rs:182:4 [INFO] [stdout] | [INFO] [stdout] 182 | pub const unsafe fn from_c_int_unchecked(value: c_int) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1052 | / c_int_enum! { [INFO] [stdout] 1053 | | /// Lua event code enumeration. [INFO] [stdout] 1054 | | /// [INFO] [stdout] 1055 | | /// This is used in Lua debug hooks. [INFO] [stdout] ... | [INFO] [stdout] 1063 | | } [INFO] [stdout] 1064 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `c_int_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::hint::unreachable_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:185:11 [INFO] [stdout] | [INFO] [stdout] 185 | _ => core::hint::unreachable_unchecked() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 554 | / c_int_enum! { [INFO] [stdout] 555 | | /// Tasks for [`lua_gc`]. [INFO] [stdout] 556 | | /// [INFO] [stdout] 557 | | /// This enum does not include the arguments associated with a GC task. [INFO] [stdout] ... | [INFO] [stdout] 571 | | } [INFO] [stdout] 572 | | } [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: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/cdef/mod.rs:182:4 [INFO] [stdout] | [INFO] [stdout] 182 | pub const unsafe fn from_c_int_unchecked(value: c_int) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 554 | / c_int_enum! { [INFO] [stdout] 555 | | /// Tasks for [`lua_gc`]. [INFO] [stdout] 556 | | /// [INFO] [stdout] 557 | | /// This enum does not include the arguments associated with a GC task. [INFO] [stdout] ... | [INFO] [stdout] 571 | | } [INFO] [stdout] 572 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `c_int_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::intrinsics::transmute` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:855:43 [INFO] [stdout] | [INFO] [stdout] 855 | let target_fn: ApiFn<$($gen_value)+> = transmute( [INFO] [stdout] | ____________________________________________________^ [INFO] [stdout] 856 | | $link_fn as ApiFn<$($gen_src)+> [INFO] [stdout] 857 | | ); [INFO] [stdout] | |_____________^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 864 | / genericize_fn!( [INFO] [stdout] 865 | | fn lua_getstack_ for [INFO] [stdout] 866 | | as pub fn lua_getstack[const ID_SIZE: usize]( [INFO] [stdout] 867 | | l: *mut State, level: c_int, ar: *mut Debug [INFO] [stdout] 868 | | ) -> c_int [INFO] [stdout] 869 | | ); [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: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/cdef/mod.rs:848:3 [INFO] [stdout] | [INFO] [stdout] 848 | / $vis unsafe fn $name<$($gen)+>( [INFO] [stdout] 849 | | $($param_n : $param_ty),* [INFO] [stdout] 850 | | ) $( -> $ret )? { [INFO] [stdout] | |____________________^ [INFO] [stdout] ... [INFO] [stdout] 864 | / genericize_fn!( [INFO] [stdout] 865 | | fn lua_getstack_ for [INFO] [stdout] 866 | | as pub fn lua_getstack[const ID_SIZE: usize]( [INFO] [stdout] 867 | | l: *mut State, level: c_int, ar: *mut Debug [INFO] [stdout] 868 | | ) -> c_int [INFO] [stdout] 869 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `genericize_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:859:4 [INFO] [stdout] | [INFO] [stdout] 859 | target_fn($($param_n),*) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 864 | / genericize_fn!( [INFO] [stdout] 865 | | fn lua_getstack_ for [INFO] [stdout] 866 | | as pub fn lua_getstack[const ID_SIZE: usize]( [INFO] [stdout] 867 | | l: *mut State, level: c_int, ar: *mut Debug [INFO] [stdout] 868 | | ) -> c_int [INFO] [stdout] 869 | | ); [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 `genericize_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::intrinsics::transmute` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:855:43 [INFO] [stdout] | [INFO] [stdout] 855 | let target_fn: ApiFn<$($gen_value)+> = transmute( [INFO] [stdout] | ____________________________________________________^ [INFO] [stdout] 856 | | $link_fn as ApiFn<$($gen_src)+> [INFO] [stdout] 857 | | ); [INFO] [stdout] | |_____________^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 871 | / genericize_fn!( [INFO] [stdout] 872 | | fn lua_getinfo_ for [INFO] [stdout] 873 | | as pub fn lua_getinfo[const ID_SIZE: usize]( [INFO] [stdout] 874 | | l: *mut State, what: *const c_char, ar: *mut Debug [INFO] [stdout] 875 | | ) -> c_int [INFO] [stdout] 876 | | ); [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: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/cdef/mod.rs:848:3 [INFO] [stdout] | [INFO] [stdout] 848 | / $vis unsafe fn $name<$($gen)+>( [INFO] [stdout] 849 | | $($param_n : $param_ty),* [INFO] [stdout] 850 | | ) $( -> $ret )? { [INFO] [stdout] | |____________________^ [INFO] [stdout] ... [INFO] [stdout] 871 | / genericize_fn!( [INFO] [stdout] 872 | | fn lua_getinfo_ for [INFO] [stdout] 873 | | as pub fn lua_getinfo[const ID_SIZE: usize]( [INFO] [stdout] 874 | | l: *mut State, what: *const c_char, ar: *mut Debug [INFO] [stdout] 875 | | ) -> c_int [INFO] [stdout] 876 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `genericize_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:859:4 [INFO] [stdout] | [INFO] [stdout] 859 | target_fn($($param_n),*) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 871 | / genericize_fn!( [INFO] [stdout] 872 | | fn lua_getinfo_ for [INFO] [stdout] 873 | | as pub fn lua_getinfo[const ID_SIZE: usize]( [INFO] [stdout] 874 | | l: *mut State, what: *const c_char, ar: *mut Debug [INFO] [stdout] 875 | | ) -> c_int [INFO] [stdout] 876 | | ); [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 `genericize_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::intrinsics::transmute` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:855:43 [INFO] [stdout] | [INFO] [stdout] 855 | let target_fn: ApiFn<$($gen_value)+> = transmute( [INFO] [stdout] | ____________________________________________________^ [INFO] [stdout] 856 | | $link_fn as ApiFn<$($gen_src)+> [INFO] [stdout] 857 | | ); [INFO] [stdout] | |_____________^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 878 | / genericize_fn!( [INFO] [stdout] 879 | | fn lua_getlocal_ for [INFO] [stdout] 880 | | as pub fn lua_getlocal[const ID_SIZE: usize]( [INFO] [stdout] 881 | | l: *mut State, ar: *const Debug, n: c_int [INFO] [stdout] 882 | | ) -> *const c_char [INFO] [stdout] 883 | | ); [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: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/cdef/mod.rs:848:3 [INFO] [stdout] | [INFO] [stdout] 848 | / $vis unsafe fn $name<$($gen)+>( [INFO] [stdout] 849 | | $($param_n : $param_ty),* [INFO] [stdout] 850 | | ) $( -> $ret )? { [INFO] [stdout] | |____________________^ [INFO] [stdout] ... [INFO] [stdout] 878 | / genericize_fn!( [INFO] [stdout] 879 | | fn lua_getlocal_ for [INFO] [stdout] 880 | | as pub fn lua_getlocal[const ID_SIZE: usize]( [INFO] [stdout] 881 | | l: *mut State, ar: *const Debug, n: c_int [INFO] [stdout] 882 | | ) -> *const c_char [INFO] [stdout] 883 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `genericize_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:859:4 [INFO] [stdout] | [INFO] [stdout] 859 | target_fn($($param_n),*) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 878 | / genericize_fn!( [INFO] [stdout] 879 | | fn lua_getlocal_ for [INFO] [stdout] 880 | | as pub fn lua_getlocal[const ID_SIZE: usize]( [INFO] [stdout] 881 | | l: *mut State, ar: *const Debug, n: c_int [INFO] [stdout] 882 | | ) -> *const c_char [INFO] [stdout] 883 | | ); [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 `genericize_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::intrinsics::transmute` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:855:43 [INFO] [stdout] | [INFO] [stdout] 855 | let target_fn: ApiFn<$($gen_value)+> = transmute( [INFO] [stdout] | ____________________________________________________^ [INFO] [stdout] 856 | | $link_fn as ApiFn<$($gen_src)+> [INFO] [stdout] 857 | | ); [INFO] [stdout] | |_____________^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 885 | / genericize_fn!( [INFO] [stdout] 886 | | fn lua_setlocal_ for [INFO] [stdout] 887 | | as pub fn lua_setlocal[const ID_SIZE: usize]( [INFO] [stdout] 888 | | l: *mut State, ar: *const Debug, n: c_int [INFO] [stdout] 889 | | ) -> *const c_char [INFO] [stdout] 890 | | ); [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: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/cdef/mod.rs:848:3 [INFO] [stdout] | [INFO] [stdout] 848 | / $vis unsafe fn $name<$($gen)+>( [INFO] [stdout] 849 | | $($param_n : $param_ty),* [INFO] [stdout] 850 | | ) $( -> $ret )? { [INFO] [stdout] | |____________________^ [INFO] [stdout] ... [INFO] [stdout] 885 | / genericize_fn!( [INFO] [stdout] 886 | | fn lua_setlocal_ for [INFO] [stdout] 887 | | as pub fn lua_setlocal[const ID_SIZE: usize]( [INFO] [stdout] 888 | | l: *mut State, ar: *const Debug, n: c_int [INFO] [stdout] 889 | | ) -> *const c_char [INFO] [stdout] 890 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `genericize_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:859:4 [INFO] [stdout] | [INFO] [stdout] 859 | target_fn($($param_n),*) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 885 | / genericize_fn!( [INFO] [stdout] 886 | | fn lua_setlocal_ for [INFO] [stdout] 887 | | as pub fn lua_setlocal[const ID_SIZE: usize]( [INFO] [stdout] 888 | | l: *mut State, ar: *const Debug, n: c_int [INFO] [stdout] 889 | | ) -> *const c_char [INFO] [stdout] 890 | | ); [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 `genericize_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::intrinsics::transmute` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:855:43 [INFO] [stdout] | [INFO] [stdout] 855 | let target_fn: ApiFn<$($gen_value)+> = transmute( [INFO] [stdout] | ____________________________________________________^ [INFO] [stdout] 856 | | $link_fn as ApiFn<$($gen_src)+> [INFO] [stdout] 857 | | ); [INFO] [stdout] | |_____________^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 892 | / genericize_fn!( [INFO] [stdout] 893 | | fn lua_sethook_ for [INFO] [stdout] 894 | | as pub fn lua_sethook[const ID_SIZE: usize]( [INFO] [stdout] 895 | | l: *mut State, func: Hook, mask: c_int, count: c_int [INFO] [stdout] 896 | | ) [INFO] [stdout] 897 | | ); [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: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/cdef/mod.rs:848:3 [INFO] [stdout] | [INFO] [stdout] 848 | / $vis unsafe fn $name<$($gen)+>( [INFO] [stdout] 849 | | $($param_n : $param_ty),* [INFO] [stdout] 850 | | ) $( -> $ret )? { [INFO] [stdout] | |_________^ [INFO] [stdout] ... [INFO] [stdout] 892 | / genericize_fn!( [INFO] [stdout] 893 | | fn lua_sethook_ for [INFO] [stdout] 894 | | as pub fn lua_sethook[const ID_SIZE: usize]( [INFO] [stdout] 895 | | l: *mut State, func: Hook, mask: c_int, count: c_int [INFO] [stdout] 896 | | ) [INFO] [stdout] 897 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `genericize_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:859:4 [INFO] [stdout] | [INFO] [stdout] 859 | target_fn($($param_n),*) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 892 | / genericize_fn!( [INFO] [stdout] 893 | | fn lua_sethook_ for [INFO] [stdout] 894 | | as pub fn lua_sethook[const ID_SIZE: usize]( [INFO] [stdout] 895 | | l: *mut State, func: Hook, mask: c_int, count: c_int [INFO] [stdout] 896 | | ) [INFO] [stdout] 897 | | ); [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 `genericize_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::intrinsics::transmute` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:855:43 [INFO] [stdout] | [INFO] [stdout] 855 | let target_fn: ApiFn<$($gen_value)+> = transmute( [INFO] [stdout] | ____________________________________________________^ [INFO] [stdout] 856 | | $link_fn as ApiFn<$($gen_src)+> [INFO] [stdout] 857 | | ); [INFO] [stdout] | |_____________^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 899 | / genericize_fn!( [INFO] [stdout] 900 | | fn lua_gethook_ for [INFO] [stdout] 901 | | as pub fn lua_gethook[const ID_SIZE: usize](l: *mut State) -> Hook [INFO] [stdout] 902 | | ); [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: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/cdef/mod.rs:848:3 [INFO] [stdout] | [INFO] [stdout] 848 | / $vis unsafe fn $name<$($gen)+>( [INFO] [stdout] 849 | | $($param_n : $param_ty),* [INFO] [stdout] 850 | | ) $( -> $ret )? { [INFO] [stdout] | |____________________^ [INFO] [stdout] ... [INFO] [stdout] 899 | / genericize_fn!( [INFO] [stdout] 900 | | fn lua_gethook_ for [INFO] [stdout] 901 | | as pub fn lua_gethook[const ID_SIZE: usize](l: *mut State) -> Hook [INFO] [stdout] 902 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `genericize_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:859:4 [INFO] [stdout] | [INFO] [stdout] 859 | target_fn($($param_n),*) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 899 | / genericize_fn!( [INFO] [stdout] 900 | | fn lua_gethook_ for [INFO] [stdout] 901 | | as pub fn lua_gethook[const ID_SIZE: usize](l: *mut State) -> Hook [INFO] [stdout] 902 | | ); [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 `genericize_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::lua_callk` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:907:2 [INFO] [stdout] | [INFO] [stdout] 907 | lua_callk(l, n_args, n_results, 0, None) [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/cdef/mod.rs:906:1 [INFO] [stdout] | [INFO] [stdout] 906 | pub unsafe fn lua_call(l: *mut State, n_args: c_int, n_results: c_int) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::lua_pcallk` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:917:2 [INFO] [stdout] | [INFO] [stdout] 917 | lua_pcallk(l, n_args, n_results, err_func, 0, None) [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/cdef/mod.rs:912:1 [INFO] [stdout] | [INFO] [stdout] 912 | / pub unsafe fn lua_pcall( [INFO] [stdout] 913 | | l: *mut State, [INFO] [stdout] 914 | | n_args: c_int, n_results: c_int, [INFO] [stdout] 915 | | err_func: c_int [INFO] [stdout] 916 | | ) -> c_int { [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::lua_yieldk` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:924:2 [INFO] [stdout] | [INFO] [stdout] 924 | lua_yieldk(l, n_results, 0, None) [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/cdef/mod.rs:923:1 [INFO] [stdout] | [INFO] [stdout] 923 | pub unsafe fn lua_yield(l: *mut State, n_results: c_int) -> ! { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::lua_yieldk_in_hook` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:931:2 [INFO] [stdout] | [INFO] [stdout] 931 | lua_yieldk_in_hook(l, n_results, 0, None) [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/cdef/mod.rs:930:1 [INFO] [stdout] | [INFO] [stdout] 930 | pub unsafe fn lua_yield_in_hook(l: *mut State, n_results: c_int) -> c_int { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::ptr::mut_ptr::::byte_sub` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:944:2 [INFO] [stdout] | [INFO] [stdout] 944 | l.byte_sub(extra_space) as *mut c_void [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/cdef/mod.rs:941:1 [INFO] [stdout] | [INFO] [stdout] 941 | / pub const unsafe fn lua_getextraspace( [INFO] [stdout] 942 | | l: *mut State, extra_space: usize [INFO] [stdout] 943 | | ) -> *mut c_void { [INFO] [stdout] | |________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::lua_tonumberx` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:950:2 [INFO] [stdout] | [INFO] [stdout] 950 | lua_tonumberx(l, idx, null_mut()) [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/cdef/mod.rs:949:1 [INFO] [stdout] | [INFO] [stdout] 949 | pub unsafe fn lua_tonumber(l: *mut State, idx: c_int) -> Number { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::lua_tointegerx` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:956:2 [INFO] [stdout] | [INFO] [stdout] 956 | lua_tointegerx(l, idx, null_mut()) [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/cdef/mod.rs:955:1 [INFO] [stdout] | [INFO] [stdout] 955 | pub unsafe fn lua_tointeger(l: *mut State, idx: c_int) -> Integer { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::lua_settop` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:962:2 [INFO] [stdout] | [INFO] [stdout] 962 | lua_settop(l, -n - 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/cdef/mod.rs:961:1 [INFO] [stdout] | [INFO] [stdout] 961 | pub unsafe fn lua_pop(l: *mut State, n: c_int) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::lua_createtable` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:968:2 [INFO] [stdout] | [INFO] [stdout] 968 | lua_createtable(l, 0, 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] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/cdef/mod.rs:967:1 [INFO] [stdout] | [INFO] [stdout] 967 | pub unsafe fn lua_newtable(l: *mut State) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::lua_pushcclosure` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:974:2 [INFO] [stdout] | [INFO] [stdout] 974 | lua_pushcclosure(l, func, 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] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/cdef/mod.rs:973:1 [INFO] [stdout] | [INFO] [stdout] 973 | pub unsafe fn lua_pushcfunction(l: *mut State, func: CFunction) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::lua_pushcfunction` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:980:2 [INFO] [stdout] | [INFO] [stdout] 980 | lua_pushcfunction(l, func); [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/cdef/mod.rs:979:1 [INFO] [stdout] | [INFO] [stdout] 979 | pub unsafe fn lua_register(l: *mut State, name: *const c_char, func: CFunction) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::lua_setglobal` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:981:2 [INFO] [stdout] | [INFO] [stdout] 981 | lua_setglobal(l, name); [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 `cdef::lua_close` is unsafe and requires unsafe block [INFO] [stdout] --> src/thread.rs:170:3 [INFO] [stdout] | [INFO] [stdout] 170 | lua_close(self.l) [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/thread.rs:169:2 [INFO] [stdout] | [INFO] [stdout] 169 | pub unsafe fn close_as_main(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::lua_type` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:994:5 [INFO] [stdout] | [INFO] [stdout] 994 | lua_type(l, idx) == ($type as _) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 1000 | / lua_is! { [INFO] [stdout] 1001 | | pub fn lua_isfunction for Type::Function; [INFO] [stdout] 1002 | | pub fn lua_istable for Type::Table; [INFO] [stdout] 1003 | | pub fn lua_islightuserdata for Type::LightUserdata; [INFO] [stdout] ... | [INFO] [stdout] 1007 | | pub fn lua_isnone for Type::None; [INFO] [stdout] 1008 | | } [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: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/cdef/mod.rs:993:4 [INFO] [stdout] | [INFO] [stdout] 993 | $vis unsafe fn $name(l: *mut State, idx: c_int) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1000 | / lua_is! { [INFO] [stdout] 1001 | | pub fn lua_isfunction for Type::Function; [INFO] [stdout] 1002 | | pub fn lua_istable for Type::Table; [INFO] [stdout] 1003 | | pub fn lua_islightuserdata for Type::LightUserdata; [INFO] [stdout] ... | [INFO] [stdout] 1007 | | pub fn lua_isnone for Type::None; [INFO] [stdout] 1008 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `lua_is` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::lua_type` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:1013:2 [INFO] [stdout] | [INFO] [stdout] 1013 | lua_type(l, idx) <= 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] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/cdef/mod.rs:1012:1 [INFO] [stdout] | [INFO] [stdout] 1012 | pub unsafe fn lua_isnoneornil(l: *mut State, idx: c_int) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::lua_rawgeti` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:1023:2 [INFO] [stdout] | [INFO] [stdout] 1023 | lua_rawgeti(l, REGISTRY_INDEX, REGISTRY_GLOBALS); [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/cdef/mod.rs:1022:1 [INFO] [stdout] | [INFO] [stdout] 1022 | pub unsafe fn lua_pushglobaltable(l: *mut State) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::lua_tolstring` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:1029:2 [INFO] [stdout] | [INFO] [stdout] 1029 | lua_tolstring(l, idx, null_mut()) [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/cdef/mod.rs:1028:1 [INFO] [stdout] | [INFO] [stdout] 1028 | pub unsafe fn lua_tostring(l: *mut State, idx: c_int) -> *const c_char { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::lua_rotate` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:1035:2 [INFO] [stdout] | [INFO] [stdout] 1035 | lua_rotate(l, idx, 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/cdef/mod.rs:1034:1 [INFO] [stdout] | [INFO] [stdout] 1034 | pub unsafe fn lua_insert(l: *mut State, idx: c_int) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::lua_rotate` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:1041:2 [INFO] [stdout] | [INFO] [stdout] 1041 | lua_rotate(l, idx, -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/cdef/mod.rs:1040:1 [INFO] [stdout] | [INFO] [stdout] 1040 | pub unsafe fn lua_remove(l: *mut State, idx: c_int) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::lua_pop` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:1042:2 [INFO] [stdout] | [INFO] [stdout] 1042 | lua_pop(l, 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 `cdef::lua_copy` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:1048:2 [INFO] [stdout] | [INFO] [stdout] 1048 | lua_copy(l, -1, idx); [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/cdef/mod.rs:1047:1 [INFO] [stdout] | [INFO] [stdout] 1047 | pub unsafe fn lua_replace(l: *mut State, idx: c_int) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::lua_pop` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:1049:2 [INFO] [stdout] | [INFO] [stdout] 1049 | lua_pop(l, 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 `core::slice::from_raw_parts_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/thread.rs:559:3 [INFO] [stdout] | [INFO] [stdout] 559 | from_raw_parts_mut(udata as *mut u8, 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] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/thread.rs:553:2 [INFO] [stdout] | [INFO] [stdout] 553 | / pub unsafe fn new_userdata_uv<'l>( [INFO] [stdout] 554 | | &'l self, [INFO] [stdout] 555 | | size: usize, [INFO] [stdout] 556 | | n_uservalues: c_ushort [INFO] [stdout] 557 | | ) -> &'l mut [u8] { [INFO] [stdout] | |_____________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::hint::unreachable_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/cdef/mod.rs:185:11 [INFO] [stdout] | [INFO] [stdout] 185 | _ => core::hint::unreachable_unchecked() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] ... [INFO] [stdout] 1052 | / c_int_enum! { [INFO] [stdout] 1053 | | /// Lua event code enumeration. [INFO] [stdout] 1054 | | /// [INFO] [stdout] 1055 | | /// This is used in Lua debug hooks. [INFO] [stdout] ... | [INFO] [stdout] 1063 | | } [INFO] [stdout] 1064 | | } [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: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/cdef/mod.rs:182:4 [INFO] [stdout] | [INFO] [stdout] 182 | pub const unsafe fn from_c_int_unchecked(value: c_int) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1052 | / c_int_enum! { [INFO] [stdout] 1053 | | /// Lua event code enumeration. [INFO] [stdout] 1054 | | /// [INFO] [stdout] 1055 | | /// This is used in Lua debug hooks. [INFO] [stdout] ... | [INFO] [stdout] 1063 | | } [INFO] [stdout] 1064 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `c_int_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::lua_close` is unsafe and requires unsafe block [INFO] [stdout] --> src/thread.rs:170:3 [INFO] [stdout] | [INFO] [stdout] 170 | lua_close(self.l) [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/thread.rs:169:2 [INFO] [stdout] | [INFO] [stdout] 169 | pub unsafe fn close_as_main(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::slice::from_raw_parts_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/thread.rs:559:3 [INFO] [stdout] | [INFO] [stdout] 559 | from_raw_parts_mut(udata as *mut u8, 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] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/thread.rs:553:2 [INFO] [stdout] | [INFO] [stdout] 553 | / pub unsafe fn new_userdata_uv<'l>( [INFO] [stdout] 554 | | &'l self, [INFO] [stdout] 555 | | size: usize, [INFO] [stdout] 556 | | n_uservalues: c_ushort [INFO] [stdout] 557 | | ) -> &'l mut [u8] { [INFO] [stdout] | |_____________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::lua_tostring` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:121:17 [INFO] [stdout] | [INFO] [stdout] 121 | let msg_str = lua_tostring(l, -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:119:1 [INFO] [stdout] | [INFO] [stdout] 119 | pub unsafe extern "C" fn lua_panic(l: *mut State) -> c_int { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::ffi::CStr::from_bytes_with_nul_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:123:4 [INFO] [stdout] | [INFO] [stdout] 123 | / CStr::from_bytes_with_nul_unchecked( [INFO] [stdout] 124 | | b"error object is not a string\0" [INFO] [stdout] 125 | | ) [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 `core::ffi::CStr::from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:127:4 [INFO] [stdout] | [INFO] [stdout] 127 | CStr::from_ptr(msg_str) [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 `alloc::alloc::dealloc` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:306:6 [INFO] [stdout] | [INFO] [stdout] 306 | dealloc(ptr, guess_layout(osize)); [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:296:3 [INFO] [stdout] | [INFO] [stdout] 296 | / unsafe extern "C" fn l_alloc( [INFO] [stdout] 297 | | _ud: *mut c_void, [INFO] [stdout] 298 | | ptr: *mut c_void, osize: usize, [INFO] [stdout] 299 | | nsize: usize [INFO] [stdout] 300 | | ) -> *mut c_void { [INFO] [stdout] | |________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `alloc::alloc::realloc` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:330:6 [INFO] [stdout] | [INFO] [stdout] 330 | realloc(ptr, old_layout, nsize) as *mut c_void [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 `alloc::alloc::alloc` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:333:5 [INFO] [stdout] | [INFO] [stdout] 333 | alloc(guess_layout(nsize)) as *mut c_void [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 `thread::Thread::from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:357:16 [INFO] [stdout] | [INFO] [stdout] 357 | let thread = Thread::from_ptr(l); [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:356:2 [INFO] [stdout] | [INFO] [stdout] 356 | pub unsafe fn from_ptr(l: *mut State) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cdef::lua_tostring` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:121:17 [INFO] [stdout] | [INFO] [stdout] 121 | let msg_str = lua_tostring(l, -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:119:1 [INFO] [stdout] | [INFO] [stdout] 119 | pub unsafe extern "C" fn lua_panic(l: *mut State) -> c_int { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::ffi::CStr::from_bytes_with_nul_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:123:4 [INFO] [stdout] | [INFO] [stdout] 123 | / CStr::from_bytes_with_nul_unchecked( [INFO] [stdout] 124 | | b"error object is not a string\0" [INFO] [stdout] 125 | | ) [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 `core::ffi::CStr::from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:127:4 [INFO] [stdout] | [INFO] [stdout] 127 | CStr::from_ptr(msg_str) [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 3 previous errors; 66 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `alloc::alloc::dealloc` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:306:6 [INFO] [stdout] | [INFO] [stdout] 306 | dealloc(ptr, guess_layout(osize)); [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:296:3 [INFO] [stdout] | [INFO] [stdout] 296 | / unsafe extern "C" fn l_alloc( [INFO] [stdout] 297 | | _ud: *mut c_void, [INFO] [stdout] 298 | | ptr: *mut c_void, osize: usize, [INFO] [stdout] 299 | | nsize: usize [INFO] [stdout] 300 | | ) -> *mut c_void { [INFO] [stdout] | |________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `alloc::alloc::realloc` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:330:6 [INFO] [stdout] | [INFO] [stdout] 330 | realloc(ptr, old_layout, nsize) as *mut c_void [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 `alloc::alloc::alloc` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:333:5 [INFO] [stdout] | [INFO] [stdout] 333 | alloc(guess_layout(nsize)) as *mut c_void [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 `thread::Thread::from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:357:16 [INFO] [stdout] | [INFO] [stdout] 357 | let thread = Thread::from_ptr(l); [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:356:2 [INFO] [stdout] | [INFO] [stdout] 356 | pub unsafe fn from_ptr(l: *mut State) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors; 66 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 `lunka` (lib) due to 4 previous errors; 66 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `lunka` (lib test) due to 4 previous errors; 66 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" "6a5f60284416abe2d51020870dffd4b1a734087e5aadfec14fa652c10e0eee42", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6a5f60284416abe2d51020870dffd4b1a734087e5aadfec14fa652c10e0eee42", kill_on_drop: false }` [INFO] [stdout] 6a5f60284416abe2d51020870dffd4b1a734087e5aadfec14fa652c10e0eee42