Skip to content

[Feature request] Enum variant size hint  #12972

Closed

Description

@oxalica

It's quite common to write a enum with tons of variants, but have no idea which one bloats the whole enum size.
They are not always easy to estimate when taking padding and size optimization into count.

The type size can be platform dependent. But we could reuse the setting rust-analyzer.cargo.target and rustc --print cfg for the calculation.

Activity

  1. lnicola commented on Aug 8, 2022

    @lnicola
    Member

    Duplicate of #4091, mostly.

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

      Issue actions