Skip to content

core::repr assumes it knows how enums are represented #5652

Closed
@jld

Description

@jld
Contributor

The TyVisitor impl in core::repr assumes it knows how enums are laid out, and can determine this based only on the number of variants. This will break if we want to do anything interesting with representations. In particular, this blocks #1271 (nullable pointers, which I have mostly implemented aside from this) and #1647 (smaller discriminants).

Activity

ghost assigned on Apr 7, 2013
added a commit that references this issue on Apr 15, 2013

auto merge of #5778 : jld/rust/reflect-abstract-enum, r=graydon

3809a04
graydon

graydon commented on Apr 19, 2013

@graydon
Contributor

closed by 3809a04

removed their assignment
on Jun 16, 2014
added a commit that references this issue on May 27, 2020

Auto merge of rust-lang#5652 - rust-lang:flip1995-patch-1, r=yaahc

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @graydon@jld

        Issue actions

          core::repr assumes it knows how enums are represented · Issue #5652 · rust-lang/rust