Skip to content

Allocation::bytes should be private #62931

Closed
@RalfJung

Description

@RalfJung

The bytes field of an Allocation is a very subtle one -- the values in there often do not mean what one might intuitively think. First of all the doc comment should probably be improved, but secondly I think we need to make this field private. See #62655 (comment) for a very subtle bug that happened because it was not private.

Cc @oli-obk @eddyb

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions