rust-lang / rust-lang/rust

Tracking issue for unsafe binder types (`unsafe_binders`)

Open
#130,516 7 comments 21 reactions 1 assignee View on GitHub

Nobody has claimed this yet.

B-experimental C-tracking-issue F-unsafe_binders T-lang T-types
Dominant language
Rust
Stars
119k
Forks
16.1k
PR merge metrics
PR metrics pending

Description

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
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

cc @compiler-errors @rust-lang/lang

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.