Stable address map with UnsafePinned: Sound or not?

· Users Rust Lang · April 25, 2026, 8:24 p.m.
Summary
The post discusses a novel approach to creating a stable address map using Box<UnsafePinned<T>> in Rust, offering insights into memory stability across reallocations and the implications of using Pin. The author reflects on safety invariants and the potential for a HashMap implementation, inviting feedback on the soundness of the approach.
AUTHOR
Sponsored
Zulip logo Zulip
Organized team chat for people who take work seriously. Topic-based threading keeps conversations focused.
Try Zulip
Become a sponsor →