Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Lifetime checking is out of scope for this library at this time. Heap lifetime visibility can be achieved through PartitionAlloc, and an application may choose to use smart pointers that trap on lifetime errors, in tests or in production. If we include smart pointers here, we should hook into PartitionAlloc or otherwise watch lifetimes, but even that only helps with individually-allocated heap objects. Stack and array objects don't get observed. There's room for on-stack smart pointers, or static analysis such as a borrow checker to improve things here. If such tools become available, we will integrate any needed support into Subspace and eliminate or extend C++ differences from Rust APIs where needed to support them.
- Loading branch information