Closed hawkw closed 7 years ago
Rather than representing a pointer to an allocation as *mut u8, can we represent it as an Option<Unique<u8>>?
*mut u8
Option<Unique<u8>>
Using Unique might allow the compiler to do more reasoning about an allocation result...
Unique
I think #65 may supersede this.
Turns out it can (at least sort of), see #72
Rather than representing a pointer to an allocation as
*mut u8
, can we represent it as anOption<Unique<u8>>
?Using
Unique
might allow the compiler to do more reasoning about an allocation result...