Hacker News new | past | comments | ask | show | jobs | submit login

Yes.



So how do you guarantee that the caller invariants are upheld, e.g., that the unannotated code does not leak a pointer to a different thread, etc. ?


> So how do you guarantee that the caller invariants are upheld

You can't, you have to trust the user. That's why one tries to minimize calling non-@live code.


How do you do that in unsafe Rust?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: