Skip to content

Deprecate -Zmiri-allow-ptr-int-transmute? #2188

Closed
rust-lang/rust
#99644
@RalfJung

Description

@RalfJung

I would love to deprecate and remove -Zmiri-allow-ptr-int-transmute sooner rather than later. That would let us do some nice cleanup in the interpreter: we could remove the ptr_from_addr_transmute hook, which means scalar_to_ptr does not need access to the InterpCx any more, so we can just make it a method on Scalar.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-interpreterArea: affects the core interpreterA-intptrcastArea: affects int2ptr and ptr2int castsC-cleanupCategory: cleaning up our code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions