Language vision regarding safety guarantees
Rust Internals [Unofficial]
July 4, 2026
tczajka:
BTW, you seem to be confusing "using
BTreeMapin your ownunsafecode" vs "usingunsafeAPIs ofBTreeMap". These are two separate choices. It's possible to use safeBTreeMapAPIs in your ownunsafecode.
I don't think I do. I'm exclusively talking about the first (since I'm only interested in safety properties of safe code in dependencies). But anyway, I think we agree overall, simply with different words.
Also thanks to your perspective there's a better candidate to what a fully explicit version of "safe code cannot cause UB" could mean (finally got the time to update the top post summary).
Discussion in the ATmosphere