News for hackers. Stuff that matters.
Re:What Is Rust's Unsafe? (2019) by afdbcreid on Sunday April 10, 2022 @11:33PM (#30984315)
Don't ever use `static mut`. It's dangerous[1]. In nightly you now have `SyncUnsafeCell`[2] to avoid it.

[1] https://github.com/rust-lang/rust/issues/53639

[2] https://github.com/rust-lang/rust/pull/95438

There are no comments on this comment yet.