|
|
|
|
|
by quotemstr
242 days ago
|
|
> We don't exactly want Alloy to have to be conservative, but Rust's semantics allow pointers to be converted to usizes (in safe mode) and back again (in unsafe mode), and this is something code really does. So if we wanted to provide an Rc-like API -- and we found reasonable code really does need it -- there wasn't much choice. You can define a set of objects for which this transformation is illegal --- use something like pin projection to enforce it. |
|