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

Avoid checking the edition as much as possible #125828

Merged

Commits on Jun 2, 2024

  1. Avoid checking the edition as much as possible

    Inside rust-lang#123865, we are adding support for the new semantics
    for expr2024, but we have noted a performance issue.
    
    We realized there is a redundant check for each
    token regarding an edition. This commit moves the edition
    check to the end, avoiding some extra checks that
    can slow down compilation time.
    
    Link: rust-lang#123865
    Co-Developed-by: @eholk
    Signed-off-by: Vincenzo Palazzo <[email protected]>
    vincenzopalazzo committed Jun 2, 2024
    Configuration menu
    Copy the full SHA
    36d5fc9 View commit details
    Browse the repository at this point in the history