rust/compiler/rustc_parse/src/parser
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
..
mut_visit Move some tests from rustc_expand to rustc_parse. 2024-05-06 09:06:02 +10:00
tokenstream Move some tests from rustc_expand to rustc_parse. 2024-05-06 09:06:02 +10:00
attr.rs Remove a Span from TokenKind::Interpolated. 2024-05-13 10:30:30 +10:00
attr_wrapper.rs Simplify static_assert_sizes. 2024-04-18 15:36:25 +10:00
diagnostics.rs Remove #[macro_use] extern crate tracing from rustc_parse. 2024-05-23 18:02:40 +10:00
expr.rs Remove #[macro_use] extern crate tracing from rustc_parse. 2024-05-23 18:02:40 +10:00
generics.rs Parsing , pre-lowering support for precise captures 2024-04-15 16:45:01 -04:00
item.rs Remove #[macro_use] extern crate tracing from rustc_parse. 2024-05-23 18:02:40 +10:00
mod.rs Create const block DefIds in typeck instead of ast lowering 2024-05-28 13:38:43 +00:00
nonterminal.rs Avoid checking the edition as much as possible 2024-06-02 09:42:21 +02:00
pat.rs Remove a Span from TokenKind::Interpolated. 2024-05-13 10:30:30 +10:00
path.rs Rename HIR TypeBinding to AssocItemConstraint and related cleanup 2024-05-30 22:52:33 +02:00
stmt.rs Rollup merge of #125049 - dtolnay:castbrace, r=compiler-errors 2024-05-22 19:04:44 +02:00
tests.rs Move some tests from rustc_expand to rustc_parse. 2024-05-06 09:06:02 +10:00
ty.rs Reject CVarArgs in parse_ty_for_where_clause 2024-06-01 20:57:15 +02:00