about summary refs log tree commit diff
path: root/compiler/rustc_pattern_analysis/tests/common/mod.rs
AgeCommit message (Collapse)AuthorLines
2025-07-20Silence a warningNadrieril-3/+3
2025-07-20List all the variants of non-exhaustive enums in exhaustive modeNadrieril-3/+24
2025-07-20pattern_analysis: add option to get a full set of witnessesNadrieril-5/+16
2025-07-04always check for mixed deref pattern and normal constructorsdianne-0/+9
This makes it work for box patterns and in rust-analyzer.
2025-03-11Add `unreachable_pub` to `RUSTC_LINT_FLAGS` for `compiler/` crates.Nicholas Nethercote-7/+7
And fix the new errors in the handful of crates that didn't have a `#![warn(unreachable_pub)]`.
2025-03-10Revert "Use workspace lints for crates in `compiler/` #138084"许杰友 Jieyou Xu (Joe)-7/+7
Revert <https://github.com/rust-lang/rust/pull/138084> to buy time to consider options that avoids breaking downstream usages of cargo on distributed `rustc-src` artifacts, where such cargo invocations fail due to inability to inherit `lints` from workspace root manifest's `workspace.lints` (this is only valid for the source rust-lang/rust workspace, but not really the distributed `rustc-src` artifacts). This breakage was reported in <https://github.com/rust-lang/rust/issues/138304>. This reverts commit 48caf81484b50dca5a5cebb614899a3df81ca898, reversing changes made to c6662879b27f5161e95f39395e3c9513a7b97028.
2025-03-08Add `unreachable_pub` to the default lints for `compiler/` crates.Nicholas Nethercote-7/+7
And fix the new errors in the handful of crates that didn't have a `#![warn(unreachable_pub)]`.
2025-02-22Greatly simplify lifetime captures in edition 2024Michael Goulet-7/+6
2025-02-17Add `pattern_complexity_limit` to `Limits`.Nicholas Nethercote-1/+1
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-1/+1
2024-08-10Stabilize `min_exhaustive_patterns`Nadrieril-4/+0
2024-07-29Reformat `use` declarations.Nicholas Nethercote-6/+4
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/+40
2024-05-30remove tracing tree indent lineslcnr-1/+0
2024-03-19Add a crate-custom test harnessNadrieril-0/+315