Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
context: introduce unsafe
PreallocatedContext
trait
Fixes unsoundness in `preallocated_gen_new` which previously did not properly constrain the lifetime of the buffer used to back the context object. We introduce an unsafe marker trait, and impl it for our existing preallocated-context markers. Annoyingly the trait has to be public even though it should never be used directly, and is only used alongside the sealed `Context` trait, so it is de-facto sealed itself. Fixes #543
- Loading branch information