-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Make the size of Option<NonZero*> a documented guarantee. #51396
Conversation
r? @KodrAus (rust_highfive has picked a reviewer for you, use r? to override) |
I’d left this out explicitly out of rust-lang/rfcs#2307 in order to have one fewer question to resolve at RFC time, but given the precedent of Lang team, this is your decision: @rfcbot fcp merge Edit: uh, looks like one needs to be part of the team to start FCP. |
Closes rust-lang#49137, the tracking issue for `NonZero*`, as this was the last remaining open question. Note that `ptr::NonNull<T>` already documents a similar guarantee.
65bc71f
to
5c7ca77
Compare
@rfcbot fcp merge This PR documents the assumption that |
Team member @nikomatsakis has proposed to merge this. The next step is review by the rest of the tagged teams: No concerns currently listed. Once a majority of reviewers approve (and none object), this will enter its final comment period. If you spot a major issue that hasn't been raised at any point in this process, please speak up! See this document for info about what commands tagged team members can give me. |
🔔 This is now entering its final comment period, as per the review above. 🔔 |
Should the same guarantee, that applies to e.g. |
📌 Commit 5c7ca77 has been approved by |
@bors rollup |
…=SimonSapin Make the size of Option<NonZero*> a documented guarantee. Closes rust-lang#49137, the tracking issue for `NonZero*`, as this was the last remaining open question. Note that `ptr::NonNull<T>` already documents a similar guarantee.
Rollup of 13 pull requests Successful merges: - #50143 (Add deprecation lint for duplicated `macro_export`s) - #51099 (Fix Issue 38777) - #51276 (Dedup auto traits in trait objects.) - #51298 (Stabilize unit tests with non-`()` return type) - #51360 (Suggest parentheses when a struct literal needs them) - #51391 (Use spans pointing at the inside of a rustdoc attribute) - #51394 (Use scope tree depths to speed up `nearest_common_ancestor`.) - #51396 (Make the size of Option<NonZero*> a documented guarantee.) - #51401 (Warn on `repr` without hints) - #51412 (Avoid useless Vec clones in pending_obligations().) - #51427 (compiletest: autoremove duplicate .nll.* files (#51204)) - #51436 (Do not require stage 2 compiler for rustdoc) - #51437 (rustbuild: generate full list of dependencies for metadata) Failed merges:
Closes #49137, the tracking issue for
NonZero*
, as this was the last remaining open question.Note that
ptr::NonNull<T>
already documents a similar guarantee.