- Start Date: (fill me in with today's date, YYYY-MM-DD)
- RFC PR: (leave this empty)
- Rust Issue: (leave this empty)
Stop marking the entire interior of unsafe functions as unsafe, thus requiring unsafe functions to have smaller inner unsafe blocks holding only the operations which are actually unsafe.
Unsafe blocks should remain minimal in size to ease the manual verification of unsafe code. Marking a function unsafe is done to indicate that it performs unsafe operations on its input or has unsafe side effects. However, currently all unsafe-marked functions implicitly have their entire interior unconditionally marked unsafe. This makes it difficult to verify the parts of the function that are actually unsafe.
Stop marking the interior of an unsafe function as unsafe.
This may result in some syntactic noise in unsafe functions which perform a lot of unsafe operations. This is also not necessarily a bad thing.
None so far.
None so far.