rust/compiler/rustc_parse/src
Vincenzo Palazzo 36d5fc9a64
Avoid checking the edition as much as possible
Inside #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: https://github.com/rust-lang/rust/pull/123865
Co-Developed-by: @eholk
Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
2024-06-02 09:42:21 +02:00
..
lexer Remove #[macro_use] extern crate tracing from rustc_parse. 2024-05-23 18:02:40 +10:00
parser Avoid checking the edition as much as possible 2024-06-02 09:42:21 +02:00
errors.rs improve maybe_consume_incorrect_semicolon 2024-05-14 23:07:40 +02:00
lib.rs Remove #[macro_use] extern crate tracing from rustc_parse. 2024-05-23 18:02:40 +10:00
validate_attr.rs Rename buffer_lint_with_diagnostic to buffer_lint 2024-05-21 20:16:39 +00:00