Skip to content

Do we want to codegen pointer-providence-related casts differently? #1274

Closed
@tedinski

Description

@tedinski

In codegen_rvalue we used to handle two kinds of Rvalue::Cast: CastKind::Misc and CastKind::Pointer

Rust introduced in a couple PRs new variants that distinguish (from CastKind::Misc) casts that turn pointers into numbers or vice versa. This is likely due to the need to think specially about these, since they need to invent (or forget) pointer providence.

We currently do not take advantage of this. Should we?

Rust PRs:

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