Skip to content

Why isn't the unsafe keyword necessary for custom MIR? #113664

@extf33

Description

@extf33

Why isn't the unsafe keyword necessary for custom MIR?
It seems like using custom MIR can potentially introduce memory-related bugs and even trigger internal compiler errors(ICE).

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-MIRArea: Mid-level IR (MIR) - https://blog.rust-lang.org/2016/04/19/MIR.htmlT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.requires-nightlyThis issue requires a nightly compiler in some way. When possible, use a F-* label instead.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions