This is a tracking issue for unsafe binder types. See https://hackmd.io/@compiler-errors/HkXwoBPaR for an initial design proposal. The feature gate for the issue is `#![feature(unsafe_binders)]`. ### About tracking issues Tracking issues are used to record the overall progress of implementation. They are also used as hubs connecting to other relevant issues, e.g., bugs or open design questions. A tracking issue is however *not* meant for large scale discussion, questions, or bug reports about a feature. Instead, open a dedicated issue for the specific matter and add the relevant feature gate label. ### Steps - [x] Approve as lang experiment. - We accepted this in the lang triage meeting on 2024-09-18. - [ ] Accept an RFC. - [x] Implement in nightly. - https://github.com/rust-lang/rust/pull/130514 - [ ] Add documentation to the [dev guide][]. - See the [instructions][doc-guide]. - [ ] Add documentation to the [reference][]. - See the [instructions][reference-instructions]. - [ ] Add formatting for new syntax to the [style guide][]. - See the [nightly style procedure][]. - [ ] Stabilize. - See the [instructions][stabilization-instructions]. [dev guide]: https://github.com/rust-lang/rustc-dev-guide [doc-guide]: https://rustc-dev-guide.rust-lang.org/stabilization_guide.html#documentation-prs [edition guide]: https://github.com/rust-lang/edition-guide [nightly style procedure]: https://github.com/rust-lang/style-team/blob/master/nightly-style-procedure.md [reference]: https://github.com/rust-lang/reference [reference-instructions]: https://github.com/rust-lang/reference/blob/master/CONTRIBUTING.md [stabilization-instructions]: https://rustc-dev-guide.rust-lang.org/stabilization_guide.html#stabilization-pr [style guide]: https://github.com/rust-lang/rust/tree/master/src/doc/style-guide ### Unresolved Questions - Are unsafe binders ABI-compatible with the type they wrap? Miri currently accepts them as such but that should be either stably documented or removed from Miri. - Terminology. This seems to be just an existential lifetime. Why come up with a new term? ### Related * https://github.com/rust-lang/rust/pull/136660 * https://github.com/rust-lang/rust/pull/134857 * https://github.com/rust-lang/rust/pull/134625 * https://github.com/rust-lang/rust/pull/134140 * https://github.com/rust-lang/rust/pull/130514 cc @compiler-errors @rust-lang/lang