unsafe
2 traces
- error[E0133]: call to unsafe function `std::env::set_var` is unsafe and requires unsafe block (Rust 2024)After setting edition = "2024" in Cargo.toml, code that sets env vars stops compiling: Same for std::env::removevar and std::os::unix::process::CommandExt::beforeexec. Fix: Preferred: do not mutate the environment at…
- Rust 2024: "extern blocks must be unsafe" and "unsafe attribute used without unsafe" for #[no_mangle]FFI code that compiled under edition 2021 fails under edition = "2024": The second points at #[nomangle], #[exportname = ...] or #[linksection = ...]. Fix: Automated: cargo fix --edition (lints missingunsafeonextern,…