43
submitted 9 months ago by nemeski@mander.xyz to c/rust@programming.dev
you are viewing a single comment's thread
view the rest of the comments
[-] TehPers@beehaw.org 3 points 9 months ago

No, the attribute is unsafe. An unsafe function is marked unsafe fn.

Also, unsafe by itself just means there are invariants that must me manually upheld to avoid unsound behavior. If those invariants are upheld, then it doesn't matter if it's unsafe.

this post was submitted on 20 Nov 2025
43 points (100.0% liked)

Rust

8252 readers
38 users here now

Welcome to the Rust community! This is a place to discuss about the Rust programming language.

Wormhole

!performance@programming.dev

Credits

  • The icon is a modified version of the official rust logo (changing the colors to a gradient and black background)

founded 3 years ago
MODERATORS