rust/compiler/rustc_errors/src
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
..
json Split ColorConfig off of HumanReadableErrorType 2024-08-08 14:41:33 +00:00
markdown Reformat use declarations. 2024-07-29 08:26:52 +10:00
annotate_snippet_emitter_writer.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
codes.rs Stop using String for error codes. 2024-01-29 07:41:41 +11:00
diagnostic.rs use stable sort to sort multipart diagnostics 2024-08-09 09:45:01 +02:00
diagnostic_impls.rs Update std and compiler 2024-08-10 12:07:17 +02:00
emitter.rs Rollup merge of #128762 - fmease:use-more-slice-pats, r=compiler-errors 2024-08-11 07:51:51 +02:00
error.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
json.rs review comments 2024-08-08 14:58:52 +00:00
lib.rs Use more slice patterns inside the compiler 2024-08-07 13:37:52 +02:00
lock.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
registry.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
snippet.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
styled_buffer.rs Replace some _ == _ || _ == _s with matches!(_, _ | _)s 2023-01-30 12:26:26 +00:00
tests.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
translation.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00