[INFO] cloning repository https://github.com/dfint/df-steam-hook-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/dfint/df-steam-hook-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdfint%2Fdf-steam-hook-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdfint%2Fdf-steam-hook-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 0d12625986b443146a39976eae9a60d415aa8e39 [INFO] checking dfint/df-steam-hook-rs/0d12625986b443146a39976eae9a60d415aa8e39 against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdfint%2Fdf-steam-hook-rs" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/dfint/df-steam-hook-rs 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] removed /workspace/builds/worker-7-tc2/source/rust-toolchain.toml [INFO] started tweaking git repo https://github.com/dfint/df-steam-hook-rs [INFO] finished tweaking git repo https://github.com/dfint/df-steam-hook-rs [INFO] tweaked toml for git repo https://github.com/dfint/df-steam-hook-rs written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/dfint/df-steam-hook-rs 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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9fd3ac0c772d2c5a5154435682d7968788a89e223136e2ca0f36325e7cbac537 [INFO] running `Command { std: "docker" "start" "-a" "9fd3ac0c772d2c5a5154435682d7968788a89e223136e2ca0f36325e7cbac537", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9fd3ac0c772d2c5a5154435682d7968788a89e223136e2ca0f36325e7cbac537", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9fd3ac0c772d2c5a5154435682d7968788a89e223136e2ca0f36325e7cbac537", kill_on_drop: false }` [INFO] [stdout] 9fd3ac0c772d2c5a5154435682d7968788a89e223136e2ca0f36325e7cbac537 [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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4a2a51c18c31980b9a4c2cb7cef649612d0aea323a2030ec625a532b7fdcf979 [INFO] running `Command { std: "docker" "start" "-a" "4a2a51c18c31980b9a4c2cb7cef649612d0aea323a2030ec625a532b7fdcf979", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Migrating Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Compiling libc v0.2.148 [INFO] [stderr] Compiling proc-macro2 v1.0.82 [INFO] [stderr] Compiling unicode-ident v1.0.8 [INFO] [stderr] Compiling cc v1.0.98 [INFO] [stderr] Compiling serde v1.0.209 [INFO] [stderr] Compiling pkg-config v0.3.27 [INFO] [stderr] Compiling cfg_aliases v0.1.1 [INFO] [stderr] Checking memchr v2.6.3 [INFO] [stderr] Compiling typenum v1.16.0 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Checking hashbrown v0.14.0 [INFO] [stderr] Checking equivalent v1.0.0 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Compiling static_init_macro v1.0.2 [INFO] [stderr] Compiling static_init v1.0.3 [INFO] [stderr] Checking winnow v0.6.18 [INFO] [stderr] Checking gimli v0.29.0 [INFO] [stderr] Checking adler v1.0.2 [INFO] [stderr] Compiling anyhow v1.0.86 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Checking once_cell v1.18.0 [INFO] [stderr] Checking regex-syntax v0.8.2 [INFO] [stderr] Checking miniz_oxide v0.7.1 [INFO] [stderr] Compiling x11 v2.21.0 [INFO] [stderr] Checking aho-corasick v1.0.1 [INFO] [stderr] Compiling device_query v2.1.0 [INFO] [stderr] Checking object v0.36.1 [INFO] [stderr] Checking indexmap v2.0.0 [INFO] [stderr] Checking iana-time-zone v0.1.56 [INFO] [stderr] Checking rustc-demangle v0.1.24 [INFO] [stderr] Checking log v0.4.22 [INFO] [stderr] Checking slice-pool2 v0.4.3 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Checking checksum v0.2.1 [INFO] [stderr] Checking region v3.0.0 [INFO] [stderr] Compiling syn v2.0.63 [INFO] [stderr] Checking mmap-fixed-fixed v0.1.3 [INFO] [stderr] Checking thread-id v3.3.0 [INFO] [stderr] Checking simple-logging v2.0.2 [INFO] [stderr] Compiling libudis86-sys v0.2.1 [INFO] [stderr] Compiling backtrace v0.3.73 [INFO] [stderr] Checking chrono v0.4.38 [INFO] [stderr] Checking retour v0.3.1 [INFO] [stderr] Checking regex-automata v0.4.5 [INFO] [stderr] Checking addr2line v0.22.0 [INFO] [stderr] Checking serde_spanned v0.6.7 [INFO] [stderr] Checking toml_datetime v0.6.8 [INFO] [stderr] Checking toml_edit v0.22.20 [INFO] [stderr] Checking regex v1.10.6 [INFO] [stderr] Checking toml v0.8.19 [INFO] [stderr] Compiling dlopen2_derive v0.4.0 [INFO] [stderr] Compiling serde_derive v1.0.209 [INFO] [stderr] Compiling macro v0.1.0 (/tmp/fixit/src/macro) [INFO] [stderr] Checking dlopen2 v0.7.0 [INFO] [stderr] Checking dfint_hook v0.1.3 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `dfint_hook` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/lib.rs [INFO] [stderr] * src/utils.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: expected path [INFO] [stderr] --> src/lib.rs:23:3 [INFO] [stderr] | [INFO] [stderr] 23 | #[unsafe(no_mangle)] [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] error: expected path [INFO] [stderr] --> src/lib.rs:61:3 [INFO] [stderr] | [INFO] [stderr] 61 | #[unsafe(no_mangle)] [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `debug`, `error`, and `info` [INFO] [stderr] --> src/lib.rs:16:11 [INFO] [stderr] | [INFO] [stderr] 16 | use log::{debug, error, info}; [INFO] [stderr] | ^^^^^ ^^^^^ ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `crate::config::CONFIG` [INFO] [stderr] --> src/lib.rs:18:5 [INFO] [stderr] | [INFO] [stderr] 18 | use crate::config::CONFIG; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `crate::constants::PATH_DICTIONARY` [INFO] [stderr] --> src/lib.rs:19:5 [INFO] [stderr] | [INFO] [stderr] 19 | use crate::constants::PATH_DICTIONARY; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `crate::dictionary::DICTIONARY` [INFO] [stderr] --> src/lib.rs:20:5 [INFO] [stderr] | [INFO] [stderr] 20 | use crate::dictionary::DICTIONARY; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unnecessary `unsafe` block [INFO] [stderr] --> src/utils.rs:25:3 [INFO] [stderr] | [INFO] [stderr] 20 | pub unsafe fn symbol_handle(module: &str, symbol: &str) -> T { unsafe { [INFO] [stderr] | ------ because it's nested under this `unsafe` block [INFO] [stderr] ... [INFO] [stderr] 25 | unsafe { lib.symbol(symbol) }.unwrap() [INFO] [stderr] | ^^^^^^ unnecessary `unsafe` block [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_unsafe)]` on by default [INFO] [stderr] [INFO] [stderr] error: aborting due to 2 previous errors; 5 warnings emitted [INFO] [stderr] [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/lib.rs:23:3 [INFO] [stdout] | [INFO] [stdout] 23 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] = note: `--force-warn unsafe-attr-outside-unsafe` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 23 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/lib.rs:60:3 [INFO] [stdout] | [INFO] [stdout] 60 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 60 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/lib.rs:69:3 [INFO] [stdout] | [INFO] [stdout] 69 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 69 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::intrinsics::transmute` is unsafe and requires unsafe block [INFO] [stdout] --> src/cxxstring.rs:36:14 [INFO] [stdout] | [INFO] [stdout] 36 | buf: std::mem::transmute(*array_ptr), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for 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/cxxstring.rs:23:3 [INFO] [stdout] | [INFO] [stdout] 23 | pub unsafe fn new(ptr: *mut T, size: usize) -> Self { [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]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/cxxstring.rs:36:34 [INFO] [stdout] | [INFO] [stdout] 36 | buf: std::mem::transmute(*array_ptr), [INFO] [stdout] | ^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::alloc::alloc_zeroed` is unsafe and requires unsafe block [INFO] [stdout] --> src/cxxstring.rs:46:27 [INFO] [stdout] | [INFO] [stdout] 46 | let new_array = alloc_zeroed(Layout::array::(32).unwrap()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for 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/cxxstring.rs:42:3 [INFO] [stdout] | [INFO] [stdout] 42 | pub unsafe fn resize(&mut self, size: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::intrinsics::copy_nonoverlapping` is unsafe and requires unsafe block [INFO] [stdout] --> src/cxxstring.rs:47:11 [INFO] [stdout] | [INFO] [stdout] 47 | std::ptr::copy_nonoverlapping(self.sso.buf.as_ptr(), new_array, 16); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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]: access to union field is unsafe and requires unsafe block [INFO] [stdout] --> src/cxxstring.rs:47:41 [INFO] [stdout] | [INFO] [stdout] 47 | std::ptr::copy_nonoverlapping(self.sso.buf.as_ptr(), new_array, 16); [INFO] [stdout] | ^^^^^^^^^^^^ access to union field [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: the field may not be properly initialized: using uninitialized data will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: access to union field is unsafe and requires unsafe block [INFO] [stdout] --> src/cxxstring.rs:51:40 [INFO] [stdout] | [INFO] [stdout] 51 | (true, v) if v >= 16 && size > self.sso.capa => { [INFO] [stdout] | ^^^^^^^^^^^^^ access to union field [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: the field may not be properly initialized: using uninitialized data will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::alloc::realloc` is unsafe and requires unsafe block [INFO] [stdout] --> src/cxxstring.rs:52:22 [INFO] [stdout] | [INFO] [stdout] 52 | self.ptr = realloc( [INFO] [stdout] | ______________________^ [INFO] [stdout] 53 | | self.ptr, [INFO] [stdout] 54 | | Layout::array::(self.sso.capa).unwrap(), [INFO] [stdout] 55 | | self.sso.capa + 16, [INFO] [stdout] 56 | | ); [INFO] [stdout] | |___________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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]: access to union field is unsafe and requires unsafe block [INFO] [stdout] --> src/cxxstring.rs:54:33 [INFO] [stdout] | [INFO] [stdout] 54 | Layout::array::(self.sso.capa).unwrap(), [INFO] [stdout] | ^^^^^^^^^^^^^ access to union field [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: the field may not be properly initialized: using uninitialized data will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: access to union field is unsafe and requires unsafe block [INFO] [stdout] --> src/cxxstring.rs:55:13 [INFO] [stdout] | [INFO] [stdout] 55 | self.sso.capa + 16, [INFO] [stdout] | ^^^^^^^^^^^^^ access to union field [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: the field may not be properly initialized: using uninitialized data will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: access to union field is unsafe and requires unsafe block [INFO] [stdout] --> src/cxxstring.rs:57:11 [INFO] [stdout] | [INFO] [stdout] 57 | self.sso.capa += 16; [INFO] [stdout] | ^^^^^^^^^^^^^ access to union field [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: the field may not be properly initialized: using uninitialized data will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::slice::from_raw_parts_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/cxxstring.rs:65:23 [INFO] [stdout] | [INFO] [stdout] 65 | let slice = std::slice::from_raw_parts_mut(target as *mut u8, 1); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::intrinsics::copy_nonoverlapping` is unsafe and requires unsafe block [INFO] [stdout] --> src/cxxstring.rs:69:11 [INFO] [stdout] | [INFO] [stdout] 69 | std::ptr::copy_nonoverlapping(self.ptr, self.sso.buf.as_mut_ptr(), 16); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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]: access to union field is unsafe and requires unsafe block [INFO] [stdout] --> src/cxxstring.rs:69:51 [INFO] [stdout] | [INFO] [stdout] 69 | std::ptr::copy_nonoverlapping(self.ptr, self.sso.buf.as_mut_ptr(), 16); [INFO] [stdout] | ^^^^^^^^^^^^ access to union field [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: the field may not be properly initialized: using uninitialized data will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::intrinsics::transmute` is unsafe and requires unsafe block [INFO] [stdout] --> src/cxxstring.rs:78:5 [INFO] [stdout] | [INFO] [stdout] 78 | std::mem::transmute(ptr) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for 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/cxxstring.rs:77:3 [INFO] [stdout] | [INFO] [stdout] 77 | pub unsafe fn from_ptr(ptr: *const u8) -> &'static mut Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::intrinsics::transmute` is unsafe and requires unsafe block [INFO] [stdout] --> src/cxxstring.rs:82:5 [INFO] [stdout] | [INFO] [stdout] 82 | std::mem::transmute(self) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for 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/cxxstring.rs:81:3 [INFO] [stdout] | [INFO] [stdout] 81 | pub unsafe fn as_ptr(&mut self) -> *const u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::intrinsics::transmute` is unsafe and requires unsafe block [INFO] [stdout] --> src/cxxstring.rs:86:5 [INFO] [stdout] | [INFO] [stdout] 86 | std::mem::transmute(self) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for 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/cxxstring.rs:85:3 [INFO] [stdout] | [INFO] [stdout] 85 | pub unsafe fn as_mut_ptr(&mut self) -> *mut u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::slice::from_raw_parts` is unsafe and requires unsafe block [INFO] [stdout] --> src/cxxstring.rs:90:47 [INFO] [stdout] | [INFO] [stdout] 90 | match std::ffi::CStr::from_bytes_with_nul(std::slice::from_raw_parts(self.ptr, self.len + 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/cxxstring.rs:89:3 [INFO] [stdout] | [INFO] [stdout] 89 | pub unsafe fn to_str(&mut self) -> Result<&'static str, Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::slice::from_raw_parts` is unsafe and requires unsafe block [INFO] [stdout] --> src/cxxstring.rs:100:5 [INFO] [stdout] | [INFO] [stdout] 100 | std::slice::from_raw_parts(self.ptr, self.len) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/cxxstring.rs:99:3 [INFO] [stdout] | [INFO] [stdout] 99 | pub unsafe fn to_bytes_without_nul(&mut self) -> &[u8] { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cxxstring::CxxString::resize` is unsafe and requires unsafe block [INFO] [stdout] --> src/cxxstring.rs:110:5 [INFO] [stdout] | [INFO] [stdout] 110 | self.resize(self.len - 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/cxxstring.rs:107:3 [INFO] [stdout] | [INFO] [stdout] 107 | pub unsafe fn pop_back(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cxxstring::CxxString::resize` is unsafe and requires unsafe block [INFO] [stdout] --> src/cxxstring.rs:115:5 [INFO] [stdout] | [INFO] [stdout] 115 | self.resize(index + 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/cxxstring.rs:113:3 [INFO] [stdout] | [INFO] [stdout] 113 | pub unsafe fn push_back(&mut self, symbol: u8) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `hooks::attach_string_copy_n` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | attach_string_copy_n()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for 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/hooks.rs:23:1 [INFO] [stdout] | [INFO] [stdout] 23 | pub unsafe fn attach_all() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `hooks::attach_string_append_n` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | attach_string_append_n()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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 `hooks::attach_std_string_ctor` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | attach_std_string_ctor()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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 `hooks::attach_std_string_append` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | attach_std_string_append()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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 `hooks::attach_std_string_assign` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | attach_std_string_assign()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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 `hooks::attach_addst` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | attach_addst()?; [INFO] [stdout] | ^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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 `hooks::attach_addst_top` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | attach_addst_top()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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 `hooks::attach_addst_flag` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | attach_addst_flag()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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 `hooks::attach_standardstringentry` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | attach_standardstringentry()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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 `hooks::attach_simplify_string` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 36 | attach_simplify_string()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `hooks::attach_upper_case_string` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | attach_upper_case_string()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `hooks::attach_lower_case_string` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 38 | attach_lower_case_string()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `hooks::attach_capitalize_string_words` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 39 | attach_capitalize_string_words()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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 `hooks::attach_capitalize_string_first_word` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | attach_capitalize_string_first_word()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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 `hooks::enable_string_copy_n` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:46:3 [INFO] [stdout] | [INFO] [stdout] 46 | enable_string_copy_n()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for 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/hooks.rs:45:1 [INFO] [stdout] | [INFO] [stdout] 45 | pub unsafe fn enable_translation() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `hooks::enable_string_append_n` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:47:3 [INFO] [stdout] | [INFO] [stdout] 47 | enable_string_append_n()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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 `hooks::enable_std_string_ctor` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:48:3 [INFO] [stdout] | [INFO] [stdout] 48 | enable_std_string_ctor()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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 `hooks::enable_std_string_append` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:49:3 [INFO] [stdout] | [INFO] [stdout] 49 | enable_std_string_append()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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 `hooks::enable_std_string_assign` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:50:3 [INFO] [stdout] | [INFO] [stdout] 50 | enable_std_string_assign()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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 `hooks::enable_addst` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:51:3 [INFO] [stdout] | [INFO] [stdout] 51 | enable_addst()?; [INFO] [stdout] | ^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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 `hooks::enable_addst_top` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:52:3 [INFO] [stdout] | [INFO] [stdout] 52 | enable_addst_top()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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 `hooks::enable_addst_flag` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:53:3 [INFO] [stdout] | [INFO] [stdout] 53 | enable_addst_flag()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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 `hooks::enable_standardstringentry` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:58:3 [INFO] [stdout] | [INFO] [stdout] 58 | enable_standardstringentry()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for 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/hooks.rs:57:1 [INFO] [stdout] | [INFO] [stdout] 57 | pub unsafe fn enable_search() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `hooks::enable_simplify_string` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:59:3 [INFO] [stdout] | [INFO] [stdout] 59 | enable_simplify_string()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `hooks::enable_upper_case_string` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:60:3 [INFO] [stdout] | [INFO] [stdout] 60 | enable_upper_case_string()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `hooks::enable_lower_case_string` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:61:3 [INFO] [stdout] | [INFO] [stdout] 61 | enable_lower_case_string()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `hooks::enable_capitalize_string_words` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:62:3 [INFO] [stdout] | [INFO] [stdout] 62 | enable_capitalize_string_words()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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 `hooks::enable_capitalize_string_first_word` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:63:3 [INFO] [stdout] | [INFO] [stdout] 63 | enable_capitalize_string_first_word()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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 `hooks::enable_translation` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:68:3 [INFO] [stdout] | [INFO] [stdout] 68 | enable_translation()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for 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/hooks.rs:67:1 [INFO] [stdout] | [INFO] [stdout] 67 | pub unsafe fn enable_all() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `hooks::enable_search` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:69:3 [INFO] [stdout] | [INFO] [stdout] 69 | enable_search()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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 `hooks::disable_string_copy_n` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:74:3 [INFO] [stdout] | [INFO] [stdout] 74 | disable_string_copy_n()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for 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/hooks.rs:73:1 [INFO] [stdout] | [INFO] [stdout] 73 | pub unsafe fn disable_translation() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `hooks::disable_string_append_n` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:75:3 [INFO] [stdout] | [INFO] [stdout] 75 | disable_string_append_n()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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 `hooks::disable_std_string_ctor` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:76:3 [INFO] [stdout] | [INFO] [stdout] 76 | disable_std_string_ctor()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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 `hooks::disable_std_string_append` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:77:3 [INFO] [stdout] | [INFO] [stdout] 77 | disable_std_string_append()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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 `hooks::disable_std_string_assign` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:78:3 [INFO] [stdout] | [INFO] [stdout] 78 | disable_std_string_assign()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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 `hooks::disable_addst` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:79:3 [INFO] [stdout] | [INFO] [stdout] 79 | disable_addst()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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 `hooks::disable_addst_top` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:80:3 [INFO] [stdout] | [INFO] [stdout] 80 | disable_addst_top()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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 `hooks::disable_addst_flag` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:81:3 [INFO] [stdout] | [INFO] [stdout] 81 | disable_addst_flag()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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 `hooks::disable_standardstringentry` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:86:3 [INFO] [stdout] | [INFO] [stdout] 86 | disable_standardstringentry()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for 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/hooks.rs:85:1 [INFO] [stdout] | [INFO] [stdout] 85 | pub unsafe fn disable_search() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `hooks::disable_simplify_string` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:87:3 [INFO] [stdout] | [INFO] [stdout] 87 | disable_simplify_string()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `hooks::disable_upper_case_string` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:88:3 [INFO] [stdout] | [INFO] [stdout] 88 | disable_upper_case_string()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `hooks::disable_lower_case_string` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:89:3 [INFO] [stdout] | [INFO] [stdout] 89 | disable_lower_case_string()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `hooks::disable_capitalize_string_words` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:90:3 [INFO] [stdout] | [INFO] [stdout] 90 | disable_capitalize_string_words()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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 `hooks::disable_capitalize_string_first_word` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:91:3 [INFO] [stdout] | [INFO] [stdout] 91 | disable_capitalize_string_first_word()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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 `hooks::disable_translation` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:96:3 [INFO] [stdout] | [INFO] [stdout] 96 | disable_translation()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for 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/hooks.rs:95:1 [INFO] [stdout] | [INFO] [stdout] 95 | pub unsafe fn disable_all() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `hooks::disable_search` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:97:3 [INFO] [stdout] | [INFO] [stdout] 97 | disable_search()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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 `utils::symbol_handle_self` is unsafe and requires unsafe block [INFO] [stdout] --> src/utils.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | return symbol_handle_self::(symbol); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for 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/utils.rs:20:1 [INFO] [stdout] | [INFO] [stdout] 20 | pub unsafe fn symbol_handle(module: &str, symbol: &str) -> T { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ffi::CStr::from_bytes_with_nul_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/utils.rs:63:3 [INFO] [stdout] | [INFO] [stdout] 63 | std::ffi::CStr::from_bytes_with_nul_unchecked(std::slice::from_raw_parts(src as *const u8, size)).to_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] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/utils.rs:62:1 [INFO] [stdout] | [INFO] [stdout] 62 | pub unsafe fn cstr(src: *const T, size: usize) -> Result<&'static str, std::str::Utf8Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::slice::from_raw_parts` is unsafe and requires unsafe block [INFO] [stdout] --> src/utils.rs:63:49 [INFO] [stdout] | [INFO] [stdout] 63 | std::ffi::CStr::from_bytes_with_nul_unchecked(std::slice::from_raw_parts(src as *const u8, size)).to_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: call to deprecated safe function `std::env::set_var` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:25:3 [INFO] [stdout] | [INFO] [stdout] 25 | std::env::set_var("RUST_BACKTRACE", "1"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [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 #27970 [INFO] [stdout] = note: `--force-warn deprecated-safe-2024` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: you can wrap the call in an `unsafe` block if you can guarantee that the environment access only happens in single-threaded code [INFO] [stdout] | [INFO] [stdout] 25 + // TODO: Audit that the environment access only happens in single-threaded code. [INFO] [stdout] 26 ~ unsafe { std::env::set_var("RUST_BACKTRACE", "1") }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 73 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 `dfint_hook` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/cxxstring.rs [INFO] [stderr] * src/hooks.rs [INFO] [stderr] * src/lib.rs [INFO] [stderr] * src/utils.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: expected path [INFO] [stderr] --> src/lib.rs:23:3 [INFO] [stderr] | [INFO] [stderr] 23 | #[unsafe(no_mangle)] [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] error: expected path [INFO] [stderr] --> src/lib.rs:61:3 [INFO] [stderr] | [INFO] [stderr] 61 | #[unsafe(no_mangle)] [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `debug`, `error`, and `info` [INFO] [stderr] --> src/lib.rs:16:11 [INFO] [stderr] | [INFO] [stderr] 16 | use log::{debug, error, info}; [INFO] [stderr] | ^^^^^ ^^^^^ ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `crate::config::CONFIG` [INFO] [stderr] --> src/lib.rs:18:5 [INFO] [stderr] | [INFO] [stderr] 18 | use crate::config::CONFIG; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `crate::constants::PATH_DICTIONARY` [INFO] [stderr] --> src/lib.rs:19:5 [INFO] [stderr] | [INFO] [stderr] 19 | use crate::constants::PATH_DICTIONARY; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `crate::dictionary::DICTIONARY` [INFO] [stderr] --> src/lib.rs:20:5 [INFO] [stderr] | [INFO] [stderr] 20 | use crate::dictionary::DICTIONARY; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning[E0133]: call to unsafe function `std::intrinsics::transmute` is unsafe and requires unsafe block [INFO] [stderr] --> src/cxxstring.rs:36:14 [INFO] [stderr] | [INFO] [stderr] 36 | buf: std::mem::transmute(*array_ptr), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: for more information, see issue #71668 [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stderr] --> src/cxxstring.rs:23:3 [INFO] [stderr] | [INFO] [stderr] 23 | pub unsafe fn new(ptr: *mut T, size: usize) -> Self { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = note: `--force-warn unsafe-op-in-unsafe-fn` implied by `--force-warn rust-2024-compatibility` [INFO] [stderr] [INFO] [stderr] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stderr] --> src/cxxstring.rs:36:34 [INFO] [stderr] | [INFO] [stderr] 36 | buf: std::mem::transmute(*array_ptr), [INFO] [stderr] | ^^^^^^^^^^ dereference of raw pointer [INFO] [stderr] | [INFO] [stderr] = note: for more information, see issue #71668 [INFO] [stderr] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stderr] [INFO] [stderr] warning[E0133]: call to unsafe function `std::alloc::alloc_zeroed` is unsafe and requires unsafe block [INFO] [stderr] --> src/cxxstring.rs:46:27 [INFO] [stderr] | [INFO] [stderr] 46 | let new_array = alloc_zeroed(Layout::array::(32).unwrap()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: for more information, see issue #71668 [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stderr] --> src/cxxstring.rs:42:3 [INFO] [stderr] | [INFO] [stderr] 42 | pub unsafe fn resize(&mut self, size: usize) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning[E0133]: call to unsafe function `std::intrinsics::copy_nonoverlapping` is unsafe and requires unsafe block [INFO] [stderr] --> src/cxxstring.rs:47:11 [INFO] [stderr] | [INFO] [stderr] 47 | std::ptr::copy_nonoverlapping(self.sso.buf.as_ptr(), new_array, 16); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: for more information, see issue #71668 [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] [INFO] [stderr] warning[E0133]: access to union field is unsafe and requires unsafe block [INFO] [stderr] --> src/cxxstring.rs:47:41 [INFO] [stderr] | [INFO] [stderr] 47 | std::ptr::copy_nonoverlapping(self.sso.buf.as_ptr(), new_array, 16); [INFO] [stderr] | ^^^^^^^^^^^^ access to union field [INFO] [stderr] | [INFO] [stderr] = note: for more information, see issue #71668 [INFO] [stderr] = note: the field may not be properly initialized: using uninitialized data will cause undefined behavior [INFO] [stderr] [INFO] [stderr] warning[E0133]: access to union field is unsafe and requires unsafe block [INFO] [stderr] --> src/cxxstring.rs:51:40 [INFO] [stderr] | [INFO] [stderr] 51 | (true, v) if v >= 16 && size > self.sso.capa => { [INFO] [stderr] | ^^^^^^^^^^^^^ access to union field [INFO] [stderr] | [INFO] [stderr] = note: for more information, see issue #71668 [INFO] [stderr] = note: the field may not be properly initialized: using uninitialized data will cause undefined behavior [INFO] [stderr] [INFO] [stderr] warning[E0133]: call to unsafe function `std::alloc::realloc` is unsafe and requires unsafe block [INFO] [stderr] --> src/cxxstring.rs:52:22 [INFO] [stderr] | [INFO] [stderr] 52 | self.ptr = realloc( [INFO] [stderr] | ______________________^ [INFO] [stderr] 53 | | self.ptr, [INFO] [stderr] 54 | | Layout::array::(self.sso.capa).unwrap(), [INFO] [stderr] 55 | | self.sso.capa + 16, [INFO] [stderr] 56 | | ); [INFO] [stderr] | |___________^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: for more information, see issue #71668 [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] [INFO] [stderr] warning[E0133]: access to union field is unsafe and requires unsafe block [INFO] [stderr] --> src/cxxstring.rs:54:33 [INFO] [stderr] | [INFO] [stderr] 54 | Layout::array::(self.sso.capa).unwrap(), [INFO] [stderr] | ^^^^^^^^^^^^^ access to union field [INFO] [stderr] | [INFO] [stderr] = note: for more information, see issue #71668 [INFO] [stderr] = note: the field may not be properly initialized: using uninitialized data will cause undefined behavior [INFO] [stderr] [INFO] [stderr] warning[E0133]: access to union field is unsafe and requires unsafe block [INFO] [stderr] --> src/cxxstring.rs:55:13 [INFO] [stderr] | [INFO] [stderr] 55 | self.sso.capa + 16, [INFO] [stderr] | ^^^^^^^^^^^^^ access to union field [INFO] [stderr] | [INFO] [stderr] = note: for more information, see issue #71668 [INFO] [stderr] = note: the field may not be properly initialized: using uninitialized data will cause undefined behavior [INFO] [stderr] [INFO] [stderr] warning[E0133]: access to union field is unsafe and requires unsafe block [INFO] [stderr] --> src/cxxstring.rs:57:11 [INFO] [stderr] | [INFO] [stderr] 57 | self.sso.capa += 16; [INFO] [stderr] | ^^^^^^^^^^^^^ access to union field [INFO] [stderr] | [INFO] [stderr] = note: for more information, see issue #71668 [INFO] [stderr] = note: the field may not be properly initialized: using uninitialized data will cause undefined behavior [INFO] [stderr] [INFO] [stderr] warning[E0133]: call to unsafe function `std::slice::from_raw_parts_mut` is unsafe and requires unsafe block [INFO] [stderr] --> src/cxxstring.rs:65:23 [INFO] [stderr] | [INFO] [stderr] 65 | let slice = std::slice::from_raw_parts_mut(target as *mut u8, 1); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: for more information, see issue #71668 [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] [INFO] [stderr] warning[E0133]: call to unsafe function `std::intrinsics::copy_nonoverlapping` is unsafe and requires unsafe block [INFO] [stderr] --> src/cxxstring.rs:69:11 [INFO] [stderr] | [INFO] [stderr] 69 | std::ptr::copy_nonoverlapping(self.ptr, self.sso.buf.as_mut_ptr(), 16); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: for more information, see issue #71668 [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] [INFO] [stderr] warning[E0133]: access to union field is unsafe and requires unsafe block [INFO] [stderr] --> src/cxxstring.rs:69:51 [INFO] [stderr] | [INFO] [stderr] 69 | std::ptr::copy_nonoverlapping(self.ptr, self.sso.buf.as_mut_ptr(), 16); [INFO] [stderr] | ^^^^^^^^^^^^ access to union field [INFO] [stderr] | [INFO] [stderr] = note: for more information, see issue #71668 [INFO] [stderr] = note: the field may not be properly initialized: using uninitialized data will cause undefined behavior [INFO] [stderr] [INFO] [stderr] warning[E0133]: call to unsafe function `std::intrinsics::transmute` is unsafe and requires unsafe block [INFO] [stderr] --> src/cxxstring.rs:78:5 [INFO] [stderr] | [INFO] [stderr] 78 | std::mem::transmute(ptr) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: for more information, see issue #71668 [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stderr] --> src/cxxstring.rs:77:3 [INFO] [stderr] | [INFO] [stderr] 77 | pub unsafe fn from_ptr(ptr: *const u8) -> &'static mut Self { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning[E0133]: call to unsafe function `std::intrinsics::transmute` is unsafe and requires unsafe block [INFO] [stderr] --> src/cxxstring.rs:82:5 [INFO] [stderr] | [INFO] [stderr] 82 | std::mem::transmute(self) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: for more information, see issue #71668 [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stderr] --> src/cxxstring.rs:81:3 [INFO] [stderr] | [INFO] [stderr] 81 | pub unsafe fn as_ptr(&mut self) -> *const u8 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning[E0133]: call to unsafe function `std::intrinsics::transmute` is unsafe and requires unsafe block [INFO] [stderr] --> src/cxxstring.rs:86:5 [INFO] [stderr] | [INFO] [stderr] 86 | std::mem::transmute(self) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: for more information, see issue #71668 [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stderr] --> src/cxxstring.rs:85:3 [INFO] [stderr] | [INFO] [stderr] 85 | pub unsafe fn as_mut_ptr(&mut self) -> *mut u8 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning[E0133]: call to unsafe function `std::slice::from_raw_parts` is unsafe and requires unsafe block [INFO] [stderr] --> src/cxxstring.rs:90:47 [INFO] [stderr] | [INFO] [stderr] 90 | match std::ffi::CStr::from_bytes_with_nul(std::slice::from_raw_parts(self.ptr, self.len + 1)) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: for more information, see issue #71668 [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stderr] --> src/cxxstring.rs:89:3 [INFO] [stderr] | [INFO] [stderr] 89 | pub unsafe fn to_str(&mut self) -> Result<&'static str, Box> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning[E0133]: call to unsafe function `std::slice::from_raw_parts` is unsafe and requires unsafe block [INFO] [stderr] --> src/cxxstring.rs:100:5 [INFO] [stderr] | [INFO] [stderr] 100 | std::slice::from_raw_parts(self.ptr, self.len) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: for more information, see issue #71668 [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stderr] --> src/cxxstring.rs:99:3 [INFO] [stderr] | [INFO] [stderr] 99 | pub unsafe fn to_bytes_without_nul(&mut self) -> &[u8] { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning[E0133]: call to unsafe function `cxxstring::CxxString::resize` is unsafe and requires unsafe block [INFO] [stderr] --> src/cxxstring.rs:110:5 [INFO] [stderr] | [INFO] [stderr] 110 | self.resize(self.len - 1); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: for more information, see issue #71668 [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stderr] --> src/cxxstring.rs:107:3 [INFO] [stderr] | [INFO] [stderr] 107 | pub unsafe fn pop_back(&mut self) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning[E0133]: call to unsafe function `cxxstring::CxxString::resize` is unsafe and requires unsafe block [INFO] [stderr] --> src/cxxstring.rs:115:5 [INFO] [stderr] | [INFO] [stderr] 115 | self.resize(index + 1); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: for more information, see issue #71668 [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stderr] --> src/cxxstring.rs:113:3 [INFO] [stderr] | [INFO] [stderr] 113 | pub unsafe fn push_back(&mut self, symbol: u8) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning[E0133]: call to unsafe function `hooks::attach_string_copy_n` is unsafe and requires unsafe block [INFO] [stderr] --> src/hooks.rs:25:5 [INFO] [stderr] | [INFO] [stderr] 25 | attach_string_copy_n()?; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: for more information, see issue #71668 [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stderr] --> src/hooks.rs:23:1 [INFO] [stderr] | [INFO] [stderr] 23 | pub unsafe fn attach_all() -> Result<()> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning[E0133]: call to unsafe function `hooks::attach_string_append_n` is unsafe and requires unsafe block [INFO] [stderr] --> src/hooks.rs:26:5 [INFO] [stderr] | [INFO] [stderr] 26 | attach_string_append_n()?; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: for more information, see issue #71668 [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] [INFO] [stderr] warning[E0133]: call to unsafe function `hooks::attach_std_string_ctor` is unsafe and requires unsafe block [INFO] [stderr] --> src/hooks.rs:27:5 [INFO] [stderr] | [INFO] [stderr] 27 | attach_std_string_ctor()?; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: for more information, see issue #71668 [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] [INFO] [stderr] warning[E0133]: call to unsafe function `hooks::attach_std_string_append` is unsafe and requires unsafe block [INFO] [stderr] --> src/hooks.rs:28:5 [INFO] [stderr] | [INFO] [stderr] 28 | attach_std_string_append()?; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: for more information, see issue #71668 [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] [INFO] [stderr] warning[E0133]: call to unsafe function `hooks::attach_std_string_assign` is unsafe and requires unsafe block [INFO] [stderr] --> src/hooks.rs:29:5 [INFO] [stderr] | [INFO] [stderr] 29 | attach_std_string_assign()?; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: for more information, see issue #71668 [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] [INFO] [stderr] warning[E0133]: call to unsafe function `hooks::attach_addst` is unsafe and requires unsafe block [INFO] [stderr] --> src/hooks.rs:30:5 [INFO] [stderr] | [INFO] [stderr] 30 | attach_addst()?; [INFO] [stderr] | ^^^^^^^^^^^^^^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: for more information, see issue #71668 [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] [INFO] [stderr] warning[E0133]: call to unsafe function `hooks::attach_addst_top` is unsafe and requires unsafe block [INFO] [stderr] --> src/hooks.rs:31:5 [INFO] [stderr] | [INFO] [stderr] 31 | attach_addst_top()?; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: for more information, see issue #71668 [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] [INFO] [stderr] warning[E0133]: call to unsafe function `hooks::attach_addst_flag` is unsafe and requires unsafe block [INFO] [stderr] --> src/hooks.rs:32:5 [INFO] [stderr] | [INFO] [stderr] 32 | attach_addst_flag()?; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: for more information, see issue #71668 [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] [INFO] [stderr] warning[E0133]: call to unsafe function `hooks::attach_standardstringentry` is unsafe and requires unsafe block [INFO] [stderr] --> src/hooks.rs:35:5 [INFO] [stderr] | [INFO] [stderr] 35 | attach_standardstringentry()?; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: for more information, see issue #71668 [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] [INFO] [stderr] warning[E0133]: call to unsafe function `hooks::attach_simplify_string` is unsafe and requires unsafe block [INFO] [stderr] --> src/hooks.rs:36:5 [INFO] [stderr] | [INFO] [stderr] 36 | attach_simplify_string()?; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: for more information, see issue #71668 [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] [INFO] [stderr] warning[E0133]: call to unsafe function `hooks::attach_upper_case_string` is unsafe and requires unsafe block [INFO] [stderr] --> src/hooks.rs:37:5 [INFO] [stderr] | [INFO] [stderr] 37 | attach_upper_case_string()?; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: for more information, see issue #71668 [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] [INFO] [stderr] warning[E0133]: call to unsafe function `hooks::attach_lower_case_string` is unsafe and requires unsafe block [INFO] [stderr] --> src/hooks.rs:38:5 [INFO] [stderr] | [INFO] [stderr] 38 | attach_lower_case_string()?; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: for more information, see issue #71668 [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] [INFO] [stderr] warning[E0133]: call to unsafe function `hooks::attach_capitalize_string_words` is unsafe and requires unsafe block [INFO] [stderr] --> src/hooks.rs:39:5 [INFO] [stderr] | [INFO] [stderr] 39 | attach_capitalize_string_words()?; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: for more information, see issue #71668 [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] [INFO] [stderr] warning[E0133]: call to unsafe function `hooks::attach_capitalize_string_first_word` is unsafe and requires unsafe block [INFO] [stderr] --> src/hooks.rs:40:5 [INFO] [stderr] | [INFO] [stderr] 40 | attach_capitalize_string_first_word()?; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: for more information, see issue #71668 [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] [INFO] [stderr] warning[E0133]: call to unsafe function `hooks::enable_string_copy_n` is unsafe and requires unsafe block [INFO] [stderr] --> src/hooks.rs:46:3 [INFO] [stderr] | [INFO] [stderr] 46 | enable_string_copy_n()?; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: for more information, see issue #71668 [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stderr] --> src/hooks.rs:45:1 [INFO] [stderr] | [INFO] [stderr] 45 | pub unsafe fn enable_translation() -> Result<()> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning[E0133]: call to unsafe function `hooks::enable_string_append_n` is unsafe and requires unsafe block [INFO] [stderr] --> src/hooks.rs:47:3 [INFO] [stderr] | [INFO] [stderr] 47 | enable_string_append_n()?; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: for more information, see issue #71668 [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] [INFO] [stderr] warning[E0133]: call to unsafe function `hooks::enable_std_string_ctor` is unsafe and requires unsafe block [INFO] [stderr] --> src/hooks.rs:48:3 [INFO] [stderr] | [INFO] [stderr] 48 | enable_std_string_ctor()?; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: for more information, see issue #71668 [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] [INFO] [stderr] warning[E0133]: call to unsafe function `hooks::enable_std_string_append` is unsafe and requires unsafe block [INFO] [stderr] --> src/hooks.rs:49:3 [INFO] [stderr] | [INFO] [stderr] 49 | enable_std_string_append()?; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: for more information, see issue #71668 [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] [INFO] [stderr] warning[E0133]: call to unsafe function `hooks::enable_std_string_assign` is unsafe and requires unsafe block [INFO] [stderr] --> src/hooks.rs:50:3 [INFO] [stderr] | [INFO] [stderr] 50 | enable_std_string_assign()?; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: for more information, see issue #71668 [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] [INFO] [stderr] warning[E0133]: call to unsafe function `hooks::enable_addst` is unsafe and requires unsafe block [INFO] [stderr] --> src/hooks.rs:51:3 [INFO] [stderr] | [INFO] [stderr] 51 | enable_addst()?; [INFO] [stderr] | ^^^^^^^^^^^^^^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: for more information, see issue #71668 [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] [INFO] [stderr] warning[E0133]: call to unsafe function `hooks::enable_addst_top` is unsafe and requires unsafe block [INFO] [stderr] --> src/hooks.rs:52:3 [INFO] [stderr] | [INFO] [stderr] 52 | enable_addst_top()?; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: for more information, see issue #71668 [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] [INFO] [stderr] warning[E0133]: call to unsafe function `hooks::enable_addst_flag` is unsafe and requires unsafe block [INFO] [stderr] --> src/hooks.rs:53:3 [INFO] [stderr] | [INFO] [stderr] 53 | enable_addst_flag()?; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: for more information, see issue #71668 [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] [INFO] [stderr] warning[E0133]: call to unsafe function `hooks::enable_standardstringentry` is unsafe and requires unsafe block [INFO] [stderr] --> src/hooks.rs:58:3 [INFO] [stderr] | [INFO] [stderr] 58 | enable_standardstringentry()?; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: for more information, see issue #71668 [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stderr] --> src/hooks.rs:57:1 [INFO] [stderr] | [INFO] [stderr] 57 | pub unsafe fn enable_search() -> Result<()> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning[E0133]: call to unsafe function `hooks::enable_simplify_string` is unsafe and requires unsafe block [INFO] [stderr] --> src/hooks.rs:59:3 [INFO] [stderr] | [INFO] [stderr] 59 | enable_simplify_string()?; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: for more information, see issue #71668 [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] [INFO] [stderr] warning[E0133]: call to unsafe function `hooks::enable_upper_case_string` is unsafe and requires unsafe block [INFO] [stderr] --> src/hooks.rs:60:3 [INFO] [stderr] | [INFO] [stderr] 60 | enable_upper_case_string()?; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: for more information, see issue #71668 [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] [INFO] [stderr] warning[E0133]: call to unsafe function `hooks::enable_lower_case_string` is unsafe and requires unsafe block [INFO] [stderr] --> src/hooks.rs:61:3 [INFO] [stderr] | [INFO] [stderr] 61 | enable_lower_case_string()?; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: for more information, see issue #71668 [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] [INFO] [stderr] warning[E0133]: call to unsafe function `hooks::enable_capitalize_string_words` is unsafe and requires unsafe block [INFO] [stderr] --> src/hooks.rs:62:3 [INFO] [stderr] | [INFO] [stderr] 62 | enable_capitalize_string_words()?; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: for more information, see issue #71668 [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] [INFO] [stderr] warning[E0133]: call to unsafe function `hooks::enable_capitalize_string_first_word` is unsafe and requires unsafe block [INFO] [stderr] --> src/hooks.rs:63:3 [INFO] [stderr] | [INFO] [stderr] 63 | enable_capitalize_string_first_word()?; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: for more information, see issue #71668 [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] [INFO] [stderr] warning[E0133]: call to unsafe function `hooks::enable_translation` is unsafe and requires unsafe block [INFO] [stderr] --> src/hooks.rs:68:3 [INFO] [stderr] | [INFO] [stderr] 68 | enable_translation()?; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: for more information, see issue #71668 [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stderr] --> src/hooks.rs:67:1 [INFO] [stderr] | [INFO] [stderr] 67 | pub unsafe fn enable_all() -> Result<()> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning[E0133]: call to unsafe function `hooks::enable_search` is unsafe and requires unsafe block [INFO] [stderr] --> src/hooks.rs:69:3 [INFO] [stderr] | [INFO] [stderr] 69 | enable_search()?; [INFO] [stderr] | ^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: for more information, see issue #71668 [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] [INFO] [stderr] warning[E0133]: call to unsafe function `hooks::disable_string_copy_n` is unsafe and requires unsafe block [INFO] [stderr] --> src/hooks.rs:74:3 [INFO] [stderr] | [INFO] [stderr] 74 | disable_string_copy_n()?; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: for more information, see issue #71668 [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stderr] --> src/hooks.rs:73:1 [INFO] [stderr] | [INFO] [stderr] 73 | pub unsafe fn disable_translation() -> Result<()> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning[E0133]: call to unsafe function `hooks::disable_string_append_n` is unsafe and requires unsafe block [INFO] [stderr] --> src/hooks.rs:75:3 [INFO] [stderr] | [INFO] [stderr] 75 | disable_string_append_n()?; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: for more information, see issue #71668 [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] [INFO] [stderr] warning[E0133]: call to unsafe function `hooks::disable_std_string_ctor` is unsafe and requires unsafe block [INFO] [stderr] --> src/hooks.rs:76:3 [INFO] [stderr] | [INFO] [stderr] 76 | disable_std_string_ctor()?; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: for more information, see issue #71668 [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] [INFO] [stderr] warning[E0133]: call to unsafe function `hooks::disable_std_string_append` is unsafe and requires unsafe block [INFO] [stderr] --> src/hooks.rs:77:3 [INFO] [stderr] | [INFO] [stderr] 77 | disable_std_string_append()?; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: for more information, see issue #71668 [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] [INFO] [stderr] warning[E0133]: call to unsafe function `hooks::disable_std_string_assign` is unsafe and requires unsafe block [INFO] [stderr] --> src/hooks.rs:78:3 [INFO] [stderr] | [INFO] [stderr] 78 | disable_std_string_assign()?; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: for more information, see issue #71668 [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] [INFO] [stderr] warning[E0133]: call to unsafe function `hooks::disable_addst` is unsafe and requires unsafe block [INFO] [stderr] --> src/hooks.rs:79:3 [INFO] [stderr] | [INFO] [stderr] 79 | disable_addst()?; [INFO] [stderr] | ^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: for more information, see issue #71668 [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] [INFO] [stderr] warning[E0133]: call to unsafe function `hooks::disable_addst_top` is unsafe and requires unsafe block [INFO] [stderr] --> src/hooks.rs:80:3 [INFO] [stderr] | [INFO] [stderr] 80 | disable_addst_top()?; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: for more information, see issue #71668 [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] [INFO] [stderr] warning[E0133]: call to unsafe function `hooks::disable_addst_flag` is unsafe and requires unsafe block [INFO] [stderr] --> src/hooks.rs:81:3 [INFO] [stderr] | [INFO] [stderr] 81 | disable_addst_flag()?; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: for more information, see issue #71668 [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] [INFO] [stderr] warning[E0133]: call to unsafe function `hooks::disable_standardstringentry` is unsafe and requires unsafe block [INFO] [stderr] --> src/hooks.rs:86:3 [INFO] [stderr] | [INFO] [stderr] 86 | disable_standardstringentry()?; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: for more information, see issue #71668 [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stderr] --> src/hooks.rs:85:1 [INFO] [stderr] | [INFO] [stderr] 85 | pub unsafe fn disable_search() -> Result<()> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning[E0133]: call to unsafe function `hooks::disable_simplify_string` is unsafe and requires unsafe block [INFO] [stderr] --> src/hooks.rs:87:3 [INFO] [stderr] | [INFO] [stderr] 87 | disable_simplify_string()?; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: for more information, see issue #71668 [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] [INFO] [stderr] warning[E0133]: call to unsafe function `hooks::disable_upper_case_string` is unsafe and requires unsafe block [INFO] [stderr] --> src/hooks.rs:88:3 [INFO] [stderr] | [INFO] [stderr] 88 | disable_upper_case_string()?; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: for more information, see issue #71668 [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] [INFO] [stderr] warning[E0133]: call to unsafe function `hooks::disable_lower_case_string` is unsafe and requires unsafe block [INFO] [stderr] --> src/hooks.rs:89:3 [INFO] [stderr] | [INFO] [stderr] 89 | disable_lower_case_string()?; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: for more information, see issue #71668 [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] [INFO] [stderr] warning[E0133]: call to unsafe function `hooks::disable_capitalize_string_words` is unsafe and requires unsafe block [INFO] [stderr] --> src/hooks.rs:90:3 [INFO] [stderr] | [INFO] [stderr] 90 | disable_capitalize_string_words()?; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: for more information, see issue #71668 [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] [INFO] [stderr] warning[E0133]: call to unsafe function `hooks::disable_capitalize_string_first_word` is unsafe and requires unsafe block [INFO] [stderr] --> src/hooks.rs:91:3 [INFO] [stderr] | [INFO] [stderr] 91 | disable_capitalize_string_first_word()?; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: for more information, see issue #71668 [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] [INFO] [stderr] warning[E0133]: call to unsafe function `hooks::disable_translation` is unsafe and requires unsafe block [INFO] [stderr] --> src/hooks.rs:96:3 [INFO] [stderr] | [INFO] [stderr] 96 | disable_translation()?; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: for more information, see issue #71668 [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stderr] --> src/hooks.rs:95:1 [INFO] [stderr] | [INFO] [stderr] 95 | pub unsafe fn disable_all() -> Result<()> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning[E0133]: call to unsafe function `hooks::disable_search` is unsafe and requires unsafe block [INFO] [stderr] --> src/hooks.rs:97:3 [INFO] [stderr] | [INFO] [stderr] 97 | disable_search()?; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: for more information, see issue #71668 [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] [INFO] [stderr] warning[E0133]: call to unsafe function `utils::symbol_handle_self` is unsafe and requires unsafe block [INFO] [stderr] --> src/utils.rs:22:12 [INFO] [stderr] | [INFO] [stderr] 22 | return symbol_handle_self::(symbol); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: for more information, see issue #71668 [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stderr] --> src/utils.rs:20:1 [INFO] [stderr] | [INFO] [stderr] 20 | pub unsafe fn symbol_handle(module: &str, symbol: &str) -> T { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning[E0133]: call to unsafe function `std::ffi::CStr::from_bytes_with_nul_unchecked` is unsafe and requires unsafe block [INFO] [stderr] --> src/utils.rs:63:3 [INFO] [stderr] | [INFO] [stderr] 63 | std::ffi::CStr::from_bytes_with_nul_unchecked(std::slice::from_raw_parts(src as *const u8, size)).to_str() [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: for more information, see issue #71668 [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stderr] --> src/utils.rs:62:1 [INFO] [stderr] | [INFO] [stderr] 62 | pub unsafe fn cstr(src: *const T, size: usize) -> Result<&'static str, std::str::Utf8Error> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning[E0133]: call to unsafe function `std::slice::from_raw_parts` is unsafe and requires unsafe block [INFO] [stderr] --> src/utils.rs:63:49 [INFO] [stderr] | [INFO] [stderr] 63 | std::ffi::CStr::from_bytes_with_nul_unchecked(std::slice::from_raw_parts(src as *const u8, size)).to_str() [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: for more information, see issue #71668 [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] [INFO] [stderr] error: aborting due to 2 previous errors; 73 warnings emitted [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0133`. [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 6.82s [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/lib.rs:23:3 [INFO] [stdout] | [INFO] [stdout] 23 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] = note: `--force-warn unsafe-attr-outside-unsafe` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 23 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/lib.rs:60:3 [INFO] [stdout] | [INFO] [stdout] 60 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 60 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/lib.rs:69:3 [INFO] [stdout] | [INFO] [stdout] 69 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 69 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/utils.rs:25:3 [INFO] [stdout] | [INFO] [stdout] 20 | pub unsafe fn symbol_handle(module: &str, symbol: &str) -> T { unsafe { [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] ... [INFO] [stdout] 25 | unsafe { lib.symbol(symbol) }.unwrap() [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to deprecated safe function `std::env::set_var` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:25:3 [INFO] [stdout] | [INFO] [stdout] 25 | std::env::set_var("RUST_BACKTRACE", "1"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [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 #27970 [INFO] [stdout] = note: `--force-warn deprecated-safe-2024` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: you can wrap the call in an `unsafe` block if you can guarantee that the environment access only happens in single-threaded code [INFO] [stdout] | [INFO] [stdout] 25 + // TODO: Audit that the environment access only happens in single-threaded code. [INFO] [stdout] 26 ~ unsafe { std::env::set_var("RUST_BACKTRACE", "1") }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking dfint_hook v0.1.3 (/tmp/fixit) [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/lib.rs:23:3 [INFO] [stdout] | [INFO] [stdout] 23 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 23 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/lib.rs:23:3 [INFO] [stdout] | [INFO] [stdout] 23 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 23 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/lib.rs:60:3 [INFO] [stdout] | [INFO] [stdout] 60 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 60 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/lib.rs:60:3 [INFO] [stdout] | [INFO] [stdout] 60 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 60 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/lib.rs:69:3 [INFO] [stdout] | [INFO] [stdout] 69 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 69 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/lib.rs:69:3 [INFO] [stdout] | [INFO] [stdout] 69 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 69 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::intrinsics::transmute` is unsafe and requires unsafe block [INFO] [stdout] --> src/cxxstring.rs:36:14 [INFO] [stdout] | [INFO] [stdout] 36 | buf: std::mem::transmute(*array_ptr), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for 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/cxxstring.rs:23:3 [INFO] [stdout] | [INFO] [stdout] 23 | pub unsafe fn new(ptr: *mut T, size: usize) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(unsafe_op_in_unsafe_fn)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/cxxstring.rs:36:34 [INFO] [stdout] | [INFO] [stdout] 36 | buf: std::mem::transmute(*array_ptr), [INFO] [stdout] | ^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::alloc::alloc_zeroed` is unsafe and requires unsafe block [INFO] [stdout] --> src/cxxstring.rs:46:27 [INFO] [stdout] | [INFO] [stdout] 46 | let new_array = alloc_zeroed(Layout::array::(32).unwrap()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for 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/cxxstring.rs:42:3 [INFO] [stdout] | [INFO] [stdout] 42 | pub unsafe fn resize(&mut self, size: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::intrinsics::copy_nonoverlapping` is unsafe and requires unsafe block [INFO] [stdout] --> src/cxxstring.rs:47:11 [INFO] [stdout] | [INFO] [stdout] 47 | std::ptr::copy_nonoverlapping(self.sso.buf.as_ptr(), new_array, 16); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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]: access to union field is unsafe and requires unsafe block [INFO] [stdout] --> src/cxxstring.rs:47:41 [INFO] [stdout] | [INFO] [stdout] 47 | std::ptr::copy_nonoverlapping(self.sso.buf.as_ptr(), new_array, 16); [INFO] [stdout] | ^^^^^^^^^^^^ access to union field [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: the field may not be properly initialized: using uninitialized data will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: access to union field is unsafe and requires unsafe block [INFO] [stdout] --> src/cxxstring.rs:51:40 [INFO] [stdout] | [INFO] [stdout] 51 | (true, v) if v >= 16 && size > self.sso.capa => { [INFO] [stdout] | ^^^^^^^^^^^^^ access to union field [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: the field may not be properly initialized: using uninitialized data will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::alloc::realloc` is unsafe and requires unsafe block [INFO] [stdout] --> src/cxxstring.rs:52:22 [INFO] [stdout] | [INFO] [stdout] 52 | self.ptr = realloc( [INFO] [stdout] | ______________________^ [INFO] [stdout] 53 | | self.ptr, [INFO] [stdout] 54 | | Layout::array::(self.sso.capa).unwrap(), [INFO] [stdout] 55 | | self.sso.capa + 16, [INFO] [stdout] 56 | | ); [INFO] [stdout] | |___________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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]: access to union field is unsafe and requires unsafe block [INFO] [stdout] --> src/cxxstring.rs:54:33 [INFO] [stdout] | [INFO] [stdout] 54 | Layout::array::(self.sso.capa).unwrap(), [INFO] [stdout] | ^^^^^^^^^^^^^ access to union field [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: the field may not be properly initialized: using uninitialized data will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: access to union field is unsafe and requires unsafe block [INFO] [stdout] --> src/cxxstring.rs:55:13 [INFO] [stdout] | [INFO] [stdout] 55 | self.sso.capa + 16, [INFO] [stdout] | ^^^^^^^^^^^^^ access to union field [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: the field may not be properly initialized: using uninitialized data will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: access to union field is unsafe and requires unsafe block [INFO] [stdout] --> src/cxxstring.rs:57:11 [INFO] [stdout] | [INFO] [stdout] 57 | self.sso.capa += 16; [INFO] [stdout] | ^^^^^^^^^^^^^ access to union field [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: the field may not be properly initialized: using uninitialized data will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::slice::from_raw_parts_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/cxxstring.rs:65:23 [INFO] [stdout] | [INFO] [stdout] 65 | let slice = std::slice::from_raw_parts_mut(target as *mut u8, 1); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::intrinsics::copy_nonoverlapping` is unsafe and requires unsafe block [INFO] [stdout] --> src/cxxstring.rs:69:11 [INFO] [stdout] | [INFO] [stdout] 69 | std::ptr::copy_nonoverlapping(self.ptr, self.sso.buf.as_mut_ptr(), 16); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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]: access to union field is unsafe and requires unsafe block [INFO] [stdout] --> src/cxxstring.rs:69:51 [INFO] [stdout] | [INFO] [stdout] 69 | std::ptr::copy_nonoverlapping(self.ptr, self.sso.buf.as_mut_ptr(), 16); [INFO] [stdout] | ^^^^^^^^^^^^ access to union field [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: the field may not be properly initialized: using uninitialized data will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::intrinsics::transmute` is unsafe and requires unsafe block [INFO] [stdout] --> src/cxxstring.rs:78:5 [INFO] [stdout] | [INFO] [stdout] 78 | std::mem::transmute(ptr) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for 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/cxxstring.rs:77:3 [INFO] [stdout] | [INFO] [stdout] 77 | pub unsafe fn from_ptr(ptr: *const u8) -> &'static mut Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::intrinsics::transmute` is unsafe and requires unsafe block [INFO] [stdout] --> src/cxxstring.rs:82:5 [INFO] [stdout] | [INFO] [stdout] 82 | std::mem::transmute(self) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for 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/cxxstring.rs:81:3 [INFO] [stdout] | [INFO] [stdout] 81 | pub unsafe fn as_ptr(&mut self) -> *const u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::intrinsics::transmute` is unsafe and requires unsafe block [INFO] [stdout] --> src/cxxstring.rs:86:5 [INFO] [stdout] | [INFO] [stdout] 86 | std::mem::transmute(self) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for 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/cxxstring.rs:85:3 [INFO] [stdout] | [INFO] [stdout] 85 | pub unsafe fn as_mut_ptr(&mut self) -> *mut u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::slice::from_raw_parts` is unsafe and requires unsafe block [INFO] [stdout] --> src/cxxstring.rs:90:47 [INFO] [stdout] | [INFO] [stdout] 90 | match std::ffi::CStr::from_bytes_with_nul(std::slice::from_raw_parts(self.ptr, self.len + 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/cxxstring.rs:89:3 [INFO] [stdout] | [INFO] [stdout] 89 | pub unsafe fn to_str(&mut self) -> Result<&'static str, Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::slice::from_raw_parts` is unsafe and requires unsafe block [INFO] [stdout] --> src/cxxstring.rs:100:5 [INFO] [stdout] | [INFO] [stdout] 100 | std::slice::from_raw_parts(self.ptr, self.len) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/cxxstring.rs:99:3 [INFO] [stdout] | [INFO] [stdout] 99 | pub unsafe fn to_bytes_without_nul(&mut self) -> &[u8] { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cxxstring::CxxString::resize` is unsafe and requires unsafe block [INFO] [stdout] --> src/cxxstring.rs:110:5 [INFO] [stdout] | [INFO] [stdout] 110 | self.resize(self.len - 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/cxxstring.rs:107:3 [INFO] [stdout] | [INFO] [stdout] 107 | pub unsafe fn pop_back(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cxxstring::CxxString::resize` is unsafe and requires unsafe block [INFO] [stdout] --> src/cxxstring.rs:115:5 [INFO] [stdout] | [INFO] [stdout] 115 | self.resize(index + 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/cxxstring.rs:113:3 [INFO] [stdout] | [INFO] [stdout] 113 | pub unsafe fn push_back(&mut self, symbol: u8) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::intrinsics::transmute` is unsafe and requires unsafe block [INFO] [stdout] --> src/cxxstring.rs:36:14 [INFO] [stdout] | [INFO] [stdout] 36 | buf: std::mem::transmute(*array_ptr), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for 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/cxxstring.rs:23:3 [INFO] [stdout] | [INFO] [stdout] 23 | pub unsafe fn new(ptr: *mut T, size: usize) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(unsafe_op_in_unsafe_fn)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/cxxstring.rs:36:34 [INFO] [stdout] | [INFO] [stdout] 36 | buf: std::mem::transmute(*array_ptr), [INFO] [stdout] | ^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::alloc::alloc_zeroed` is unsafe and requires unsafe block [INFO] [stdout] --> src/cxxstring.rs:46:27 [INFO] [stdout] | [INFO] [stdout] 46 | let new_array = alloc_zeroed(Layout::array::(32).unwrap()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for 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/cxxstring.rs:42:3 [INFO] [stdout] | [INFO] [stdout] 42 | pub unsafe fn resize(&mut self, size: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::intrinsics::copy_nonoverlapping` is unsafe and requires unsafe block [INFO] [stdout] --> src/cxxstring.rs:47:11 [INFO] [stdout] | [INFO] [stdout] 47 | std::ptr::copy_nonoverlapping(self.sso.buf.as_ptr(), new_array, 16); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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]: access to union field is unsafe and requires unsafe block [INFO] [stdout] --> src/cxxstring.rs:47:41 [INFO] [stdout] | [INFO] [stdout] 47 | std::ptr::copy_nonoverlapping(self.sso.buf.as_ptr(), new_array, 16); [INFO] [stdout] | ^^^^^^^^^^^^ access to union field [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: the field may not be properly initialized: using uninitialized data will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: access to union field is unsafe and requires unsafe block [INFO] [stdout] --> src/cxxstring.rs:51:40 [INFO] [stdout] | [INFO] [stdout] 51 | (true, v) if v >= 16 && size > self.sso.capa => { [INFO] [stdout] | ^^^^^^^^^^^^^ access to union field [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: the field may not be properly initialized: using uninitialized data will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::alloc::realloc` is unsafe and requires unsafe block [INFO] [stdout] --> src/cxxstring.rs:52:22 [INFO] [stdout] | [INFO] [stdout] 52 | self.ptr = realloc( [INFO] [stdout] | ______________________^ [INFO] [stdout] 53 | | self.ptr, [INFO] [stdout] 54 | | Layout::array::(self.sso.capa).unwrap(), [INFO] [stdout] 55 | | self.sso.capa + 16, [INFO] [stdout] 56 | | ); [INFO] [stdout] | |___________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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]: access to union field is unsafe and requires unsafe block [INFO] [stdout] --> src/cxxstring.rs:54:33 [INFO] [stdout] | [INFO] [stdout] 54 | Layout::array::(self.sso.capa).unwrap(), [INFO] [stdout] | ^^^^^^^^^^^^^ access to union field [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: the field may not be properly initialized: using uninitialized data will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: access to union field is unsafe and requires unsafe block [INFO] [stdout] --> src/cxxstring.rs:55:13 [INFO] [stdout] | [INFO] [stdout] 55 | self.sso.capa + 16, [INFO] [stdout] | ^^^^^^^^^^^^^ access to union field [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: the field may not be properly initialized: using uninitialized data will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: access to union field is unsafe and requires unsafe block [INFO] [stdout] --> src/cxxstring.rs:57:11 [INFO] [stdout] | [INFO] [stdout] 57 | self.sso.capa += 16; [INFO] [stdout] | ^^^^^^^^^^^^^ access to union field [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: the field may not be properly initialized: using uninitialized data will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::slice::from_raw_parts_mut` is unsafe and requires unsafe block [INFO] [stdout] --> src/cxxstring.rs:65:23 [INFO] [stdout] | [INFO] [stdout] 65 | let slice = std::slice::from_raw_parts_mut(target as *mut u8, 1); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::intrinsics::copy_nonoverlapping` is unsafe and requires unsafe block [INFO] [stdout] --> src/cxxstring.rs:69:11 [INFO] [stdout] | [INFO] [stdout] 69 | std::ptr::copy_nonoverlapping(self.ptr, self.sso.buf.as_mut_ptr(), 16); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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]: access to union field is unsafe and requires unsafe block [INFO] [stdout] --> src/cxxstring.rs:69:51 [INFO] [stdout] | [INFO] [stdout] 69 | std::ptr::copy_nonoverlapping(self.ptr, self.sso.buf.as_mut_ptr(), 16); [INFO] [stdout] | ^^^^^^^^^^^^ access to union field [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: the field may not be properly initialized: using uninitialized data will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::intrinsics::transmute` is unsafe and requires unsafe block [INFO] [stdout] --> src/cxxstring.rs:78:5 [INFO] [stdout] | [INFO] [stdout] 78 | std::mem::transmute(ptr) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for 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/cxxstring.rs:77:3 [INFO] [stdout] | [INFO] [stdout] 77 | pub unsafe fn from_ptr(ptr: *const u8) -> &'static mut Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::intrinsics::transmute` is unsafe and requires unsafe block [INFO] [stdout] --> src/cxxstring.rs:82:5 [INFO] [stdout] | [INFO] [stdout] 82 | std::mem::transmute(self) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for 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/cxxstring.rs:81:3 [INFO] [stdout] | [INFO] [stdout] 81 | pub unsafe fn as_ptr(&mut self) -> *const u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::intrinsics::transmute` is unsafe and requires unsafe block [INFO] [stdout] --> src/cxxstring.rs:86:5 [INFO] [stdout] | [INFO] [stdout] 86 | std::mem::transmute(self) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for 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/cxxstring.rs:85:3 [INFO] [stdout] | [INFO] [stdout] 85 | pub unsafe fn as_mut_ptr(&mut self) -> *mut u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::slice::from_raw_parts` is unsafe and requires unsafe block [INFO] [stdout] --> src/cxxstring.rs:90:47 [INFO] [stdout] | [INFO] [stdout] 90 | match std::ffi::CStr::from_bytes_with_nul(std::slice::from_raw_parts(self.ptr, self.len + 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/cxxstring.rs:89:3 [INFO] [stdout] | [INFO] [stdout] 89 | pub unsafe fn to_str(&mut self) -> Result<&'static str, Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::slice::from_raw_parts` is unsafe and requires unsafe block [INFO] [stdout] --> src/cxxstring.rs:100:5 [INFO] [stdout] | [INFO] [stdout] 100 | std::slice::from_raw_parts(self.ptr, self.len) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/cxxstring.rs:99:3 [INFO] [stdout] | [INFO] [stdout] 99 | pub unsafe fn to_bytes_without_nul(&mut self) -> &[u8] { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cxxstring::CxxString::resize` is unsafe and requires unsafe block [INFO] [stdout] --> src/cxxstring.rs:110:5 [INFO] [stdout] | [INFO] [stdout] 110 | self.resize(self.len - 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/cxxstring.rs:107:3 [INFO] [stdout] | [INFO] [stdout] 107 | pub unsafe fn pop_back(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `cxxstring::CxxString::resize` is unsafe and requires unsafe block [INFO] [stdout] --> src/cxxstring.rs:115:5 [INFO] [stdout] | [INFO] [stdout] 115 | self.resize(index + 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/cxxstring.rs:113:3 [INFO] [stdout] | [INFO] [stdout] 113 | pub unsafe fn push_back(&mut self, symbol: u8) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `hooks::attach_string_copy_n` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | attach_string_copy_n()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for 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/hooks.rs:23:1 [INFO] [stdout] | [INFO] [stdout] 23 | pub unsafe fn attach_all() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `hooks::attach_string_append_n` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | attach_string_append_n()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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 `hooks::attach_std_string_ctor` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | attach_std_string_ctor()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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 `hooks::attach_std_string_append` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | attach_std_string_append()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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 `hooks::attach_std_string_assign` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | attach_std_string_assign()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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 `hooks::attach_addst` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | attach_addst()?; [INFO] [stdout] | ^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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 `hooks::attach_addst_top` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | attach_addst_top()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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 `hooks::attach_addst_flag` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | attach_addst_flag()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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 `hooks::attach_standardstringentry` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | attach_standardstringentry()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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 `hooks::attach_simplify_string` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 36 | attach_simplify_string()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `hooks::attach_upper_case_string` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | attach_upper_case_string()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `hooks::attach_lower_case_string` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 38 | attach_lower_case_string()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `hooks::attach_capitalize_string_words` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 39 | attach_capitalize_string_words()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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 `hooks::attach_capitalize_string_first_word` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | attach_capitalize_string_first_word()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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 `hooks::enable_string_copy_n` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:46:3 [INFO] [stdout] | [INFO] [stdout] 46 | enable_string_copy_n()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for 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/hooks.rs:45:1 [INFO] [stdout] | [INFO] [stdout] 45 | pub unsafe fn enable_translation() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `hooks::enable_string_append_n` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:47:3 [INFO] [stdout] | [INFO] [stdout] 47 | enable_string_append_n()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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 `hooks::enable_std_string_ctor` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:48:3 [INFO] [stdout] | [INFO] [stdout] 48 | enable_std_string_ctor()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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 `hooks::enable_std_string_append` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:49:3 [INFO] [stdout] | [INFO] [stdout] 49 | enable_std_string_append()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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 `hooks::enable_std_string_assign` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:50:3 [INFO] [stdout] | [INFO] [stdout] 50 | enable_std_string_assign()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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 `hooks::enable_addst` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:51:3 [INFO] [stdout] | [INFO] [stdout] 51 | enable_addst()?; [INFO] [stdout] | ^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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 `hooks::enable_addst_top` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:52:3 [INFO] [stdout] | [INFO] [stdout] 52 | enable_addst_top()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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 `hooks::enable_addst_flag` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:53:3 [INFO] [stdout] | [INFO] [stdout] 53 | enable_addst_flag()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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 `hooks::enable_standardstringentry` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:58:3 [INFO] [stdout] | [INFO] [stdout] 58 | enable_standardstringentry()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for 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/hooks.rs:57:1 [INFO] [stdout] | [INFO] [stdout] 57 | pub unsafe fn enable_search() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `hooks::enable_simplify_string` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:59:3 [INFO] [stdout] | [INFO] [stdout] 59 | enable_simplify_string()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `hooks::enable_upper_case_string` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:60:3 [INFO] [stdout] | [INFO] [stdout] 60 | enable_upper_case_string()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `hooks::enable_lower_case_string` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:61:3 [INFO] [stdout] | [INFO] [stdout] 61 | enable_lower_case_string()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `hooks::enable_capitalize_string_words` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:62:3 [INFO] [stdout] | [INFO] [stdout] 62 | enable_capitalize_string_words()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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 `hooks::enable_capitalize_string_first_word` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:63:3 [INFO] [stdout] | [INFO] [stdout] 63 | enable_capitalize_string_first_word()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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 `hooks::enable_translation` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:68:3 [INFO] [stdout] | [INFO] [stdout] 68 | enable_translation()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for 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/hooks.rs:67:1 [INFO] [stdout] | [INFO] [stdout] 67 | pub unsafe fn enable_all() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `hooks::enable_search` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:69:3 [INFO] [stdout] | [INFO] [stdout] 69 | enable_search()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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 `hooks::disable_string_copy_n` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:74:3 [INFO] [stdout] | [INFO] [stdout] 74 | disable_string_copy_n()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for 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/hooks.rs:73:1 [INFO] [stdout] | [INFO] [stdout] 73 | pub unsafe fn disable_translation() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `hooks::disable_string_append_n` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:75:3 [INFO] [stdout] | [INFO] [stdout] 75 | disable_string_append_n()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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 `hooks::disable_std_string_ctor` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:76:3 [INFO] [stdout] | [INFO] [stdout] 76 | disable_std_string_ctor()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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 `hooks::disable_std_string_append` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:77:3 [INFO] [stdout] | [INFO] [stdout] 77 | disable_std_string_append()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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 `hooks::disable_std_string_assign` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:78:3 [INFO] [stdout] | [INFO] [stdout] 78 | disable_std_string_assign()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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 `hooks::disable_addst` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:79:3 [INFO] [stdout] | [INFO] [stdout] 79 | disable_addst()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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 `hooks::disable_addst_top` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:80:3 [INFO] [stdout] | [INFO] [stdout] 80 | disable_addst_top()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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 `hooks::disable_addst_flag` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:81:3 [INFO] [stdout] | [INFO] [stdout] 81 | disable_addst_flag()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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 `hooks::disable_standardstringentry` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:86:3 [INFO] [stdout] | [INFO] [stdout] 86 | disable_standardstringentry()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for 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/hooks.rs:85:1 [INFO] [stdout] | [INFO] [stdout] 85 | pub unsafe fn disable_search() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `hooks::disable_simplify_string` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:87:3 [INFO] [stdout] | [INFO] [stdout] 87 | disable_simplify_string()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `hooks::disable_upper_case_string` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:88:3 [INFO] [stdout] | [INFO] [stdout] 88 | disable_upper_case_string()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `hooks::disable_lower_case_string` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:89:3 [INFO] [stdout] | [INFO] [stdout] 89 | disable_lower_case_string()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `hooks::disable_capitalize_string_words` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:90:3 [INFO] [stdout] | [INFO] [stdout] 90 | disable_capitalize_string_words()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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 `hooks::disable_capitalize_string_first_word` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:91:3 [INFO] [stdout] | [INFO] [stdout] 91 | disable_capitalize_string_first_word()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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 `hooks::disable_translation` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:96:3 [INFO] [stdout] | [INFO] [stdout] 96 | disable_translation()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for 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/hooks.rs:95:1 [INFO] [stdout] | [INFO] [stdout] 95 | pub unsafe fn disable_all() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `hooks::disable_search` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:97:3 [INFO] [stdout] | [INFO] [stdout] 97 | disable_search()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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 `hooks::attach_string_copy_n` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | attach_string_copy_n()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for 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/hooks.rs:23:1 [INFO] [stdout] | [INFO] [stdout] 23 | pub unsafe fn attach_all() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `hooks::attach_string_append_n` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | attach_string_append_n()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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 `hooks::attach_std_string_ctor` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | attach_std_string_ctor()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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 `hooks::attach_std_string_append` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | attach_std_string_append()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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 `hooks::attach_std_string_assign` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | attach_std_string_assign()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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 `hooks::attach_addst` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | attach_addst()?; [INFO] [stdout] | ^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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 `hooks::attach_addst_top` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | attach_addst_top()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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 `hooks::attach_addst_flag` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | attach_addst_flag()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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 `hooks::attach_standardstringentry` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | attach_standardstringentry()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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 `hooks::attach_simplify_string` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 36 | attach_simplify_string()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `hooks::attach_upper_case_string` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | attach_upper_case_string()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `hooks::attach_lower_case_string` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 38 | attach_lower_case_string()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `hooks::attach_capitalize_string_words` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 39 | attach_capitalize_string_words()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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 `hooks::attach_capitalize_string_first_word` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | attach_capitalize_string_first_word()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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 `hooks::enable_string_copy_n` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:46:3 [INFO] [stdout] | [INFO] [stdout] 46 | enable_string_copy_n()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for 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/hooks.rs:45:1 [INFO] [stdout] | [INFO] [stdout] 45 | pub unsafe fn enable_translation() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `hooks::enable_string_append_n` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:47:3 [INFO] [stdout] | [INFO] [stdout] 47 | enable_string_append_n()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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 `hooks::enable_std_string_ctor` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:48:3 [INFO] [stdout] | [INFO] [stdout] 48 | enable_std_string_ctor()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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 `hooks::enable_std_string_append` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:49:3 [INFO] [stdout] | [INFO] [stdout] 49 | enable_std_string_append()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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 `hooks::enable_std_string_assign` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:50:3 [INFO] [stdout] | [INFO] [stdout] 50 | enable_std_string_assign()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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 `hooks::enable_addst` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:51:3 [INFO] [stdout] | [INFO] [stdout] 51 | enable_addst()?; [INFO] [stdout] | ^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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 `hooks::enable_addst_top` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:52:3 [INFO] [stdout] | [INFO] [stdout] 52 | enable_addst_top()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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 `hooks::enable_addst_flag` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:53:3 [INFO] [stdout] | [INFO] [stdout] 53 | enable_addst_flag()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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 `hooks::enable_standardstringentry` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:58:3 [INFO] [stdout] | [INFO] [stdout] 58 | enable_standardstringentry()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for 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/hooks.rs:57:1 [INFO] [stdout] | [INFO] [stdout] 57 | pub unsafe fn enable_search() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `hooks::enable_simplify_string` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:59:3 [INFO] [stdout] | [INFO] [stdout] 59 | enable_simplify_string()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `hooks::enable_upper_case_string` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:60:3 [INFO] [stdout] | [INFO] [stdout] 60 | enable_upper_case_string()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `hooks::enable_lower_case_string` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:61:3 [INFO] [stdout] | [INFO] [stdout] 61 | enable_lower_case_string()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `hooks::enable_capitalize_string_words` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:62:3 [INFO] [stdout] | [INFO] [stdout] 62 | enable_capitalize_string_words()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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 `hooks::enable_capitalize_string_first_word` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:63:3 [INFO] [stdout] | [INFO] [stdout] 63 | enable_capitalize_string_first_word()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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 `hooks::enable_translation` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:68:3 [INFO] [stdout] | [INFO] [stdout] 68 | enable_translation()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for 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/hooks.rs:67:1 [INFO] [stdout] | [INFO] [stdout] 67 | pub unsafe fn enable_all() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `hooks::enable_search` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:69:3 [INFO] [stdout] | [INFO] [stdout] 69 | enable_search()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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 `hooks::disable_string_copy_n` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:74:3 [INFO] [stdout] | [INFO] [stdout] 74 | disable_string_copy_n()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for 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/hooks.rs:73:1 [INFO] [stdout] | [INFO] [stdout] 73 | pub unsafe fn disable_translation() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `hooks::disable_string_append_n` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:75:3 [INFO] [stdout] | [INFO] [stdout] 75 | disable_string_append_n()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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 `hooks::disable_std_string_ctor` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:76:3 [INFO] [stdout] | [INFO] [stdout] 76 | disable_std_string_ctor()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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 `hooks::disable_std_string_append` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:77:3 [INFO] [stdout] | [INFO] [stdout] 77 | disable_std_string_append()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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 `hooks::disable_std_string_assign` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:78:3 [INFO] [stdout] | [INFO] [stdout] 78 | disable_std_string_assign()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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 `hooks::disable_addst` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:79:3 [INFO] [stdout] | [INFO] [stdout] 79 | disable_addst()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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 `hooks::disable_addst_top` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:80:3 [INFO] [stdout] | [INFO] [stdout] 80 | disable_addst_top()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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 `hooks::disable_addst_flag` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:81:3 [INFO] [stdout] | [INFO] [stdout] 81 | disable_addst_flag()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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 `hooks::disable_standardstringentry` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:86:3 [INFO] [stdout] | [INFO] [stdout] 86 | disable_standardstringentry()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for 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/hooks.rs:85:1 [INFO] [stdout] | [INFO] [stdout] 85 | pub unsafe fn disable_search() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `hooks::disable_simplify_string` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:87:3 [INFO] [stdout] | [INFO] [stdout] 87 | disable_simplify_string()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `hooks::disable_upper_case_string` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:88:3 [INFO] [stdout] | [INFO] [stdout] 88 | disable_upper_case_string()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `hooks::disable_lower_case_string` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:89:3 [INFO] [stdout] | [INFO] [stdout] 89 | disable_lower_case_string()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `hooks::disable_capitalize_string_words` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:90:3 [INFO] [stdout] | [INFO] [stdout] 90 | disable_capitalize_string_words()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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 `hooks::disable_capitalize_string_first_word` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:91:3 [INFO] [stdout] | [INFO] [stdout] 91 | disable_capitalize_string_first_word()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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 `hooks::disable_translation` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:96:3 [INFO] [stdout] | [INFO] [stdout] 96 | disable_translation()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for 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/hooks.rs:95:1 [INFO] [stdout] | [INFO] [stdout] 95 | pub unsafe fn disable_all() -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `hooks::disable_search` is unsafe and requires unsafe block [INFO] [stdout] --> src/hooks.rs:97:3 [INFO] [stdout] | [INFO] [stdout] 97 | disable_search()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: 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 `utils::symbol_handle_self` is unsafe and requires unsafe block [INFO] [stdout] --> src/utils.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | return symbol_handle_self::(symbol); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for 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/utils.rs:20:1 [INFO] [stdout] | [INFO] [stdout] 20 | pub unsafe fn symbol_handle(module: &str, symbol: &str) -> T { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ffi::CStr::from_bytes_with_nul_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/utils.rs:63:3 [INFO] [stdout] | [INFO] [stdout] 63 | std::ffi::CStr::from_bytes_with_nul_unchecked(std::slice::from_raw_parts(src as *const u8, size)).to_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] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/utils.rs:62:1 [INFO] [stdout] | [INFO] [stdout] 62 | pub unsafe fn cstr(src: *const T, size: usize) -> Result<&'static str, std::str::Utf8Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::slice::from_raw_parts` is unsafe and requires unsafe block [INFO] [stdout] --> src/utils.rs:63:49 [INFO] [stdout] | [INFO] [stdout] 63 | std::ffi::CStr::from_bytes_with_nul_unchecked(std::slice::from_raw_parts(src as *const u8, size)).to_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[E0133]: call to unsafe function `set_var` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:25:3 [INFO] [stdout] | [INFO] [stdout] 25 | std::env::set_var("RUST_BACKTRACE", "1"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [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 `utils::symbol_handle_self` is unsafe and requires unsafe block [INFO] [stdout] --> src/utils.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | return symbol_handle_self::(symbol); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for 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/utils.rs:20:1 [INFO] [stdout] | [INFO] [stdout] 20 | pub unsafe fn symbol_handle(module: &str, symbol: &str) -> T { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ffi::CStr::from_bytes_with_nul_unchecked` is unsafe and requires unsafe block [INFO] [stdout] --> src/utils.rs:63:3 [INFO] [stdout] | [INFO] [stdout] 63 | std::ffi::CStr::from_bytes_with_nul_unchecked(std::slice::from_raw_parts(src as *const u8, size)).to_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] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/utils.rs:62:1 [INFO] [stdout] | [INFO] [stdout] 62 | pub unsafe fn cstr(src: *const T, size: usize) -> Result<&'static str, std::str::Utf8Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors; 69 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 `std::slice::from_raw_parts` is unsafe and requires unsafe block [INFO] [stdout] --> src/utils.rs:63:49 [INFO] [stdout] | [INFO] [stdout] 63 | std::ffi::CStr::from_bytes_with_nul_unchecked(std::slice::from_raw_parts(src as *const u8, size)).to_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[E0133]: call to unsafe function `set_var` is unsafe and requires unsafe block [INFO] [stdout] --> src/lib.rs:25:3 [INFO] [stdout] | [INFO] [stdout] 25 | std::env::set_var("RUST_BACKTRACE", "1"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `dfint_hook` (lib test) due to 5 previous errors; 69 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 4 previous errors; 69 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 `dfint_hook` (lib) due to 5 previous errors; 69 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" "4a2a51c18c31980b9a4c2cb7cef649612d0aea323a2030ec625a532b7fdcf979", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4a2a51c18c31980b9a4c2cb7cef649612d0aea323a2030ec625a532b7fdcf979", kill_on_drop: false }` [INFO] [stdout] 4a2a51c18c31980b9a4c2cb7cef649612d0aea323a2030ec625a532b7fdcf979