You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
1.30 beta.7 const-related tests fails on multiple architectures #54546
const-eval/double_check (and its sibling) fail on all Big-Endian architectures, because the Enums are not represented in usize, so casting a pointer to the usize-constant 5 or 42 does not yield a pointer to a (probably u8-sized) Enum with the value 5 or 42, but the value 0 instead, as Big-Endian architectures have the more significant bytes containing 0x00before the interesting byte containing 5 or 42.
Activity
karcherm commentedon Dec 23, 2018
const-eval/double_check(and its sibling) fail on all Big-Endian architectures, because the Enums are not represented inusize, so casting a pointer to the usize-constant 5 or 42 does not yield a pointer to a (probably u8-sized) Enum with the value 5 or 42, but the value 0 instead, as Big-Endian architectures have the more significant bytes containing0x00before the interesting byte containing 5 or 42.karcherm commentedon Dec 23, 2018
This has already been fixed in HEAD by 283f2be.
oli-obk commentedon Jan 28, 2019
ah, this only fixes the enum test. So
const-size_of-cyleandinvalid_const_promotionstill need fixingRollup merge of rust-lang#67334 - estebank:ignore-triple, r=nikomatsakis
Auto merge of #67334 - estebank:ignore-triple, r=nikomatsakis