Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tracking Issue for MaybeDangling #118166

Open
5 tasks
RalfJung opened this issue Nov 22, 2023 · 2 comments
Open
5 tasks

Tracking Issue for MaybeDangling #118166

RalfJung opened this issue Nov 22, 2023 · 2 comments
Labels
B-RFC-approved Blocker: Approved by a merged RFC but not yet implemented. C-tracking-issue Category: An issue tracking the progress of sth. like the implementation of an RFC S-tracking-unimplemented Status: The feature has not been implemented. T-lang Relevant to the language team, which will review and decide on the PR/issue.

Comments

@RalfJung
Copy link
Member

RalfJung commented Nov 22, 2023

This is a tracking issue for the experimental MaybeDangling type (as per the T-lang experimental feature process). The type is described by this RFC, but we can experiment with adding the type unstably (and even using it in ManuallyDrop) before the RFC gets accepted.

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

(see RFC)

Implementation history

@RalfJung RalfJung added the C-tracking-issue Category: An issue tracking the progress of sth. like the implementation of an RFC label Nov 22, 2023
@fmease fmease added T-lang Relevant to the language team, which will review and decide on the PR/issue. B-experimental Blocker: In-tree experiment; RFC pending, not yet approved or unneeded. S-tracking-unimplemented Status: The feature has not been implemented. labels Feb 28, 2024
@traviscross traviscross added B-RFC-approved Blocker: Approved by a merged RFC but not yet implemented. and removed B-experimental Blocker: In-tree experiment; RFC pending, not yet approved or unneeded. labels May 20, 2024
@RalfJung
Copy link
Member Author

@rust-lang/opsem I realized we probably should have included t-opsem in the FCP for this RFC. Let's try to remember to do a t-opsem FCP in the PR with the initial implementation, just to make sure the team is on board.

@RalfJung
Copy link
Member Author

RalfJung commented Oct 3, 2024

There's an interesting open question I did not realize about the exact validity of MaybeDangling<&T>. I expected this to be just "non-null and aligned", but we might want to include "and has an address where an object of size T could actually exist" -- which would rule out being too close to the end of the address space, and might rule out more. The open question is exactly how much it should rule out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
B-RFC-approved Blocker: Approved by a merged RFC but not yet implemented. C-tracking-issue Category: An issue tracking the progress of sth. like the implementation of an RFC S-tracking-unimplemented Status: The feature has not been implemented. T-lang Relevant to the language team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

3 participants