rust-aliasable
rust-aliasable copied to clipboard
Rust library providing basic aliasable (non `core::ptr::Unique`) types
`AliasableBox` should ```rust impl From for UniqueBox { ... } ``` to match the other aliasable types.
Hi! We are a team of researchers studying the memory safety problem in Rust. As part of our ongoing research, we performed random testing on aliasable (version: 0.1.3) and found...
It uses `NonNull` and `PhantomData
My understanding of this crate was that it ought to make this sort of thing legal: ```rust use std::ptr::addr_of_mut; use aliasable::boxed::AliasableBox; fn main() { let mut b = AliasableBox::from_unique(Box::new(1usize)); let...
This would be helpful for making decisions around when to use AliasableBox vs trying harder to not alias a Box.
If a user wants to pass these directly for use in FFI (not directly the intended use, but plausible and related to some uses), they need to be repr(transparent). Similarly,...