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

libstd: Use std::array::from_fn to implement Default for arrays larger than 32 elements. #124163

Closed
wants to merge 1 commit into from

Commits on Apr 19, 2024

  1. libstd: Use std::array::from_fn to implement Default for arrays large…

    …r than 32 elements.
    
    Much like rust-lang#74060 did for every other trait.
    
    This avoids tools like rust-bindgen having to painfully work around this
    limitations, sometimes incorrectly like in
    rust-lang/rust-bindgen#2803
    emilio committed Apr 19, 2024
    Configuration menu
    Copy the full SHA
    df4b27c View commit details
    Browse the repository at this point in the history