Rust plans to let types opt out of being moved or forgotten

Rust project goals: Immobile types and guaranteed destructors

Rust's 2026 roadmap includes a project to introduce new auto-traits, `Move` and `Forget`, that let types explicitly opt out of being relocated in memory or forgotten via `mem::forget`. This aims to simplify self-referential types, enable safe scoped spawn for async, and guarantee destructors run, addressing limitations of the current `Pin` mechanism. The project will be tested in the Linux kernel.

Rather than trying to change the language to make `Pin` work, we believe the problem is with `Pin` and we should improve the way immovable types are encoded in Rust instead.

More from this day

2026-08-03