Skip to content

Commit

Permalink
Auto merge of #125828 - vincenzopalazzo:macros/performance-regression…
Browse files Browse the repository at this point in the history
…, r=fmease

Avoid checking the edition as much as possible

Inside rust-lang/rust#123865, we are adding support for the new semantics for expr2024, but we have noted a performance issue.

While talking with `@eholk,` 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.

However, we should keep this issue under observation because we may want to improve the edition check if we are unable to significantly improve compiler performance.

r? ghost
  • Loading branch information
bors committed Jun 2, 2024
2 parents 434c390 + a4e8ca6 commit 896eb5a
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit 896eb5a

Please sign in to comment.