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

revert 74989 ("Implement Index and IndexMut for arrays") #79416

Closed
wants to merge 2 commits into from

Commits on Nov 25, 2020

  1. Configuration menu
    Copy the full SHA
    3479fc6 View commit details
    Browse the repository at this point in the history
  2. Revert "Implement Index[Mut] for arrays"

    This reverts commit c03dfa6.
    
    The commit broke code that worked on stable and beta:
    
    const fn foo() {
        let mut array = [[0; 1]; 1];
        array[0][0] = 1;
    }
    
    But this was not noticed until the commit landed.
    
    Fixes rust-lang#79152
    matthiaskrgr committed Nov 25, 2020
    Configuration menu
    Copy the full SHA
    6be10de View commit details
    Browse the repository at this point in the history