-
Notifications
You must be signed in to change notification settings - Fork 227
Safety of intrinsics #355
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
Ah yeah this should be unsafe for sure, thanks for the report! |
What exactly does "similar functions" mean? It seems like we should fix this issue sooner rather than later, but I unfortunately don't really know enough about this stuff to properly judge what should be |
I'd interpret it the same as Rust, where safe means "impossible to cause UB regardless of arguments". These take a raw pointer and that's unsafe since you can manufacture pointers. |
Fix clippy lints
Shouldn't
mem::__llvm_memcpy_element_unordered_atomic_1
and similar functions be marked asunsafe
? The following program crashes with "Segmentation fault (core dumped)".The text was updated successfully, but these errors were encountered: