Skip to content

Guarantee that the never type ! is zero-sized and 1-aligned. - #2309

Open
zachs18 wants to merge 2 commits into
rust-lang:masterfrom
zachs18:never-1zst
Open

Guarantee that the never type ! is zero-sized and 1-aligned.#2309
zachs18 wants to merge 2 commits into
rust-lang:masterfrom
zachs18:never-1zst

Conversation

@zachs18

@zachs18 zachs18 commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Needs T-lang FCP.

@rustbot

This comment has been minimized.

@rustbot rustbot added the S-waiting-on-author Status: The marked PR is awaiting some action (such as code changes) from the PR author. label Aug 11, 2026
@zachs18
zachs18 marked this pull request as ready for review August 25, 2026 20:25
@rustbot rustbot added the S-waiting-on-review Status: The marked PR is awaiting review from a maintainer label Aug 25, 2026
@zachs18

zachs18 commented Aug 25, 2026

Copy link
Copy Markdown
Contributor Author

@rustbot label I-lang-nominated

cc @traviscross

@rustbot

rustbot commented Aug 25, 2026

Copy link
Copy Markdown
Collaborator

Error: Label I-lang-nominated can only be set by Rust team members

Please file an issue on GitHub at triagebot if there's a problem with this bot, or reach out on #triagebot on Zulip.

@traviscross traviscross added I-lang-nominated Nominated for discussion during a lang team meeting. needs-fcp I-lang-radar Items that are on lang's radar and will need eventual work or consideration. P-lang-drag-1 Lang team prioritization drag level 1. labels Aug 25, 2026
Comment thread src/types/never.md Outdated
r[type.never.coercion]
Expressions of type `!` can be coerced into any type.


@DanielEScherzer DanielEScherzer Sep 1, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no need for two blank lines here, one should be enough

View changes since the review

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Latest push removes the extra blank line.

Comment thread src/glossary.md
assert_eq!(0, size_of::<E4>());
assert_eq!(0, size_of::<E5>());
assert_eq!(0, size_of::<E6>());
assert_eq!(0, size_of::<E7>());

@DanielEScherzer DanielEScherzer Sep 1, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there should also be an example in the test block here

Suggested change
assert_eq!(0, size_of::<!>());

View changes since the review

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Latest push adds this example at the top of the list just after ()'s line, so they're still in the same order as the list in the prose.

@traviscross traviscross added T-lang Relevant to the language team. T-opsem Team: opsem labels Sep 1, 2026
@traviscross

Copy link
Copy Markdown
Contributor

Thanks @zachs18.

@rfcbot fcp merge lang,opsem

@rust-rfcbot

rust-rfcbot commented Sep 1, 2026

Copy link
Copy Markdown
Collaborator

@traviscross has proposed to merge this. The next step is review by the rest of the tagged team members:

No concerns currently listed.

Once a majority of reviewers approve (and at most 2 approvals are outstanding), 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!

cc @rust-lang/lang-advisors: FCP proposed for lang, please feel free to register concerns.
See this document for info about what commands tagged team members can give me.

@joshlf

joshlf commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

@rfcbot reviewed

2 similar comments
@saethlin

saethlin commented Sep 1, 2026

Copy link
Copy Markdown
Member

@rfcbot reviewed

@CAD97

CAD97 commented Sep 2, 2026

Copy link
Copy Markdown

@rfcbot reviewed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

disposition-merge I-lang-nominated Nominated for discussion during a lang team meeting. I-lang-radar Items that are on lang's radar and will need eventual work or consideration. P-lang-drag-1 Lang team prioritization drag level 1. proposed-final-comment-period S-waiting-on-author Status: The marked PR is awaiting some action (such as code changes) from the PR author. S-waiting-on-review Status: The marked PR is awaiting review from a maintainer T-lang Relevant to the language team. T-opsem Team: opsem

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants