about summary refs log tree commit diff
path: root/compiler/rustc_mir_build/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-06-02 19:47:06 +0000
committerbors <bors@rust-lang.org>2024-06-02 19:47:06 +0000
commita6416d8907bc94ef1a032d54cb0443cde963e455 (patch)
treeca399d2871eb6ee56b3eff61a1d837bb86d1c62e /compiler/rustc_mir_build/src
parenteda9d7f987de76b9d61c633a6ac328936e1b94f0 (diff)
parent36d5fc9a64769be2dc539d90c9dd374ef45d30c6 (diff)
downloadrust-a6416d8907bc94ef1a032d54cb0443cde963e455.tar.gz
rust-a6416d8907bc94ef1a032d54cb0443cde963e455.zip
Auto merge of #125828 - vincenzopalazzo:macros/performance-regression, r=fmease
Avoid checking the edition as much as possible

Inside https://github.com/rust-lang/rust/pull/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
Diffstat (limited to 'compiler/rustc_mir_build/src')
0 files changed, 0 insertions, 0 deletions