Notes on safe reachability for Rust

I wrote some very rough, brain-dumpy, incomplete notes on safe reachability for a notion of legal unsafe code.

The rough idea is that unsafe code can do what it likes to the heap which isn’t reachable by safe code, but it should maintain the Rust memory safety invariants in the safely reachable subset of the heap.

2 Likes

A conversation with @nikomatsakis on irc: https://botbot.me/mozilla/rust-lang/2016-10-12/?msg=74666126

Summary: the defn of typed rooted heap isn’t quite right, as it’s not taking lifetimes into account.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.