rust/compiler/rustc_parse/src/parser
Matthias Krüger 32e0fe129d
Rollup merge of #128762 - fmease:use-more-slice-pats, r=compiler-errors
Use more slice patterns inside the compiler

Nothing super noteworthy. Just replacing the common 'fragile' pattern of "length check followed by indexing or unwrap" with slice patterns for legibility and 'robustness'.

r? ghost
2024-08-11 07:51:51 +02:00
..
mut_visit Reformat use declarations. 2024-07-29 08:26:52 +10:00
tokenstream Reformat use declarations. 2024-07-29 08:26:52 +10:00
attr.rs Rollup merge of #128483 - nnethercote:still-more-cfg-cleanups, r=petrochenkov 2024-08-03 11:17:44 +02:00
attr_wrapper.rs Distinguish the two kinds of token range. 2024-08-01 19:30:40 +10:00
diagnostics.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
expr.rs Use more slice patterns inside the compiler 2024-08-07 13:37:52 +02:00
generics.rs Mark Parser::eat/check methods as must_use 2024-07-29 21:29:08 -04:00
item.rs Use more slice patterns inside the compiler 2024-08-07 13:37:52 +02:00
mod.rs Rollup merge of #127921 - spastorino:stabilize-unsafe-extern-blocks, r=compiler-errors 2024-08-03 20:51:51 +02:00
nonterminal.rs Rollup merge of #126697 - vincenzopalazzo:macros/find_the_expression_tok, r=eholk,compiler-errors 2024-07-31 23:20:09 +02:00
pat.rs Remove LhsExpr. 2024-07-31 12:56:25 +10:00
path.rs Use more slice patterns inside the compiler 2024-08-07 13:37:52 +02:00
stmt.rs Rollup merge of #128762 - fmease:use-more-slice-pats, r=compiler-errors 2024-08-11 07:51:51 +02:00
tests.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
ty.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00