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

Resurrect #70477: "Use the niche optimization if other variant are small enough" #75866

Closed
wants to merge 2 commits into from

Commits on Sep 27, 2020

  1. Use the niche optimisation if other enum variants are small enough

    * Put the largest niche first
    
    * Add test from issue 63866
    
    * Add test for enum of sized/unsized
    
    * Prefer fields that are already earlier in the struct
    ogoffart authored and erikdesjardins committed Sep 27, 2020
    Configuration menu
    Copy the full SHA
    ad758f8 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d5ef4b6 View commit details
    Browse the repository at this point in the history