There are still some unsafe functions which are not yet marked as unsafe. Maybe we could mark them as such in the next edition.
List them out and describe why they are unsafe, linking to a relevant issue please.
4 Likes
A RawHandle is just a *mut c_void. You can't do anything dangerous with it without using unsafe, so creating one via as_raw_handle is safe.
This is quite similar to how you can create and manipulate pointers in safe code, but de-referencing them needs unsafe.
13 Likes
Also, it would be ridiculous to require unsafe just to print a RawHandle for debugging purposes.