Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ban ArrayToPointer and MutToConstPointer from runtime MIR #126308

Merged
merged 2 commits into from
Jun 20, 2024

Commits on Jun 19, 2024

  1. Ban ArrayToPointer and MutToConstPointer from runtime MIR

    Apparently MIR borrowck cares about at least one of these for checking variance.
    
    In runtime MIR, though, there's no need for them as `PtrToPtr` does the same thing.
    
    (Banning them simplifies passes like GVN that no longer need to handle multiple cast possibilities.)
    scottmcm committed Jun 19, 2024
    Configuration menu
    Copy the full SHA
    4630d1b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e04e351 View commit details
    Browse the repository at this point in the history