[type layout] usize and isize have the same size and alignment#2200
[type layout] usize and isize have the same size and alignment#2200joshlf wants to merge 1 commit intorust-lang:masterfrom
Conversation
|
r? @RalfJung |
|
Failed to set assignee to
|
|
r? @ehuss |
|
Makes sense. It is a new language guarantee, though, so... @rfcbot fcp merge lang |
This comment was marked as duplicate.
This comment was marked as duplicate.
|
Team member @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. |
|
Is there an equivalent statement about alignment that |
No. I'd be happy to relax this to just saying that sizes are equal, which is really what I (personally) care about. |
|
TBH I think that both are obvious things to provide. Was just seeing that we have the size equality guarantees for (I have no strong feelings about the best way to do that. If you wanted to just just make this be size that's fine; if you wanted to just open another PR to also give the alignment guarantee for the specific-sized integer types that'd also be fine.) |
Everybody assumes this to be true, and I assume it was intended to be guaranteed to be true.