Avoid alignment mismatch between ABI and layout for unions.#104872
Avoid alignment mismatch between ABI and layout for unions.#104872bors merged 9 commits intorust-lang:masterfrom
Conversation
0faa074 to
f5e8b81
Compare
|
I would prefer if this was fixed by #103926 - specifically, this comment: #103926 (comment). If you can arrange with @oli-obk, you could take over in this PR - I don't care as long as both alignment sources are fixed at once without special-casing them. Also, we need a test for |
Ah, admittedly I did see that issue but didn't dig too deep into it. I'm ok with taking a stab at it or leaving it to @oli-obk |
I won't get to it this week or next week, so feel free to take over! |
f5e8b81 to
13a61f5
Compare
|
☔ The latest upstream changes (presumably #105554) made this pull request unmergeable. Please resolve the merge conflicts. |
13a61f5 to
b73c903
Compare
This comment has been minimized.
This comment has been minimized.
|
Switching to waiting on author to incorporate changes. Feel free to request a review with @rustbot author |
f31fea4 to
2a70829
Compare
|
@rustbot ready |
oli-obk
left a comment
There was a problem hiding this comment.
just a nit, then this lgtm
compiler/rustc_abi/src/layout.rs
Outdated
There was a problem hiding this comment.
This relies on the !is_err check above. Maybe replace that check with a let Ok(common_non_zst_abi_and_align) = &mut common_non_zst_abi_and_align to make sure these two things stay in sync
| if let Ok(Some((common_abi, common_align))) = &mut common_non_zst_abi_and_align { | |
| if let Some((common_abi, common_align)) = &mut common_non_zst_abi_and_align { |
There was a problem hiding this comment.
Sure, reordered it a bit to remove the is_err check.
|
☔ The latest upstream changes (presumably #109626) made this pull request unmergeable. Please resolve the merge conflicts. |
2a70829 to
8e7714d
Compare
|
@rustbot ready |
|
@bors r+ |
|
☀️ Test successful - checks-actions |
|
Finished benchmarking commit (151a070): comparison URL. Overall result: no relevant changes - no action needed@rustbot label: -perf-regression Instruction countThis benchmark run did not return any relevant results for this metric. Max RSS (memory usage)ResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesThis benchmark run did not return any relevant results for this metric. Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 656.275s -> 653.613s (-0.41%) |
Fixes #104802
Fixes #103634
r? @eddyb cc @RalfJung