Skip to content

1.30 beta.7 const-related tests fails on multiple architectures #54546

Closed
@infinity0

Description

@infinity0
Contributor
arch const-eval/double_check{,2} const-size_of-cycle invalid_const_promotion
armv7-hf ok failed ok
aarch64 ok failed failed
ppc64 failed failed failed
s390x failed failed ok

Activity

added
A-const-evalArea: Constant evaluation, covers all const contexts (static, const fn, ...)
on Sep 25, 2018
karcherm

karcherm commented on Dec 23, 2018

@karcherm
Contributor

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 0x00 before the interesting byte containing 5 or 42.

karcherm

karcherm commented on Dec 23, 2018

@karcherm
Contributor

This has already been fixed in HEAD by 283f2be.

oli-obk

oli-obk commented on Jan 28, 2019

@oli-obk
Contributor

ah, this only fixes the enum test. So const-size_of-cyle and invalid_const_promotion still need fixing

added a commit that references this issue on Dec 20, 2019

Rollup merge of rust-lang#67334 - estebank:ignore-triple, r=nikomatsakis

29f5e5c
added a commit that references this issue on Dec 28, 2019

Auto merge of #67334 - estebank:ignore-triple, r=nikomatsakis

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-const-evalArea: Constant evaluation, covers all const contexts (static, const fn, ...)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @infinity0@oli-obk@karcherm@csmoe

        Issue actions

          1.30 beta.7 const-related tests fails on multiple architectures · Issue #54546 · rust-lang/rust