Rollup merge of #47439 - eddyb:issue-45662, r=nagisa
rustc_trans: ignore trailing padding larger than 8 bytes. Fixes #45662 by ignoring a missing second register component, as it could be entirely padding.
This commit is contained in:
commit
6eb1430547
2 changed files with 10 additions and 10 deletions
|
|
@ -14,10 +14,10 @@
|
|||
#![feature(attr_literals)]
|
||||
|
||||
#[repr(align(16))]
|
||||
pub struct A {
|
||||
y: i64,
|
||||
}
|
||||
pub struct A(i64);
|
||||
|
||||
pub extern "C" fn foo(x: A) {}
|
||||
|
||||
fn main() {}
|
||||
fn main() {
|
||||
foo(A(0));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue