about summary refs log tree commit diff
path: root/compiler/rustc_pattern_analysis/tests
AgeCommit message (Collapse)AuthorLines
2025-02-22Greatly simplify lifetime captures in edition 2024Michael Goulet-7/+6
2025-02-17Add `pattern_complexity_limit` to `Limits`.Nicholas Nethercote-4/+6
It's similar to the other limits, e.g. obtained via `get_limit`. So it makes sense to handle it consistently with the other limits. We now use `Limit`/`usize` in most places instead of `Option<usize>`, so we use `Limit::new(usize::MAX)`/`usize::MAX` to emulate how `None` used to work. The commit also adds `Limit::unlimited`.
2024-09-22Reformat using the new identifier sorting from rustfmtMichael Goulet-4/+4
2024-09-02chore: Fix typos in 'compiler' (batch 2)Alexander Cyon-1/+1
2024-08-10Stabilize `min_exhaustive_patterns`Nadrieril-4/+0
2024-07-29Reformat `use` declarations.Nicholas Nethercote-13/+13
The previous commit updated `rustfmt.toml` appropriately. This commit is the outcome of running `x fmt --all` with the new formatting options.
2024-07-24Add some testsNadrieril-4/+74
2024-06-20Add blank lines after module-level `//!` comments.Nicholas Nethercote-0/+3
Most modules have such a blank line, but some don't. Inserting the blank line makes it clearer that the `//!` comments are describing the entire module, rather than the `use` declaration(s) that immediately follows.
2024-05-30remove tracing tree indent lineslcnr-1/+0
2024-03-19Add a crate-custom test harnessNadrieril-0/+570