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

Define byte #1772

Merged
merged 3 commits into from
Apr 1, 2025
Merged

Define byte #1772

merged 3 commits into from
Apr 1, 2025

Conversation

ehuss
Copy link
Contributor

@ehuss ehuss commented Mar 30, 2025

This is split off from #1664 which defines what a "byte" is.

Closes #1673

cc @rust-lang/opsem, would you be willing to review?

This is split off from rust-lang#1664
which defines what a "byte" is.

Closes rust-lang#1673
@rustbot rustbot added the S-waiting-on-review Status: The marked PR is awaiting review from a maintainer label Mar 30, 2025
@RalfJung
Copy link
Member

RalfJung commented Apr 1, 2025

This seems fairly non-controversial, given in particular that we do not say what exactly a "provenance" looks like.

However, it does seem to me like we should involve @rust-lang/lang as well, given that this will make stable promises. Though I cannot entirely articulate what we are actually committing to -- I guess it is the fact that uninitialized memory is "real" as far as Rust is concerned, and distinct from all 256 regular initialized states of a byte. But that's long-established consensus, isn't it?

ehuss added 2 commits April 1, 2025 12:16
We didn't feel like this was well-defined enough to go into right now, and didn't seem necessary to include right now.
@traviscross
Copy link
Contributor

Yes, I think it is.

@traviscross traviscross added this pull request to the merge queue Apr 1, 2025
Merged via the queue into rust-lang:master with commit b718b6b Apr 1, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: The marked PR is awaiting review from a maintainer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Disambiguate "byte" size
4 participants