Skip to content

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

Closed

Description

@infinity0
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

  1. added
    A-const-evalArea: Constant evaluation, covers all const contexts (static, const fn, ...)
    on Sep 25, 2018
  2. 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.

  3. karcherm commented on Dec 23, 2018

    @karcherm
    Contributor

    This has already been fixed in HEAD by 283f2be.

  4. 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

  5. added a commit that references this issue on Dec 20, 2019
  6. added a commit that references this issue on Dec 28, 2019
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

      Issue actions