rust/compiler/rustc_pattern_analysis/src
Chayim Refael Friedman 6bf3cbe39e In rustc_pattern_analysis, put true witnesses before false witnesses
In rustc it doesn't really matter what the order of the witnesses is, but I'm planning to use the witnesses for implementing the "add missing match arms" assist in rust-analyzer, and there `true` before `false` is the natural order (like `Some` before `None`), and also what the current assist does.

The current order doesn't seem to be intentional; the code was created when bool ctors became their own thing, not just int ctors, but for integer, 0 before 1 is indeed the natural order.
2025-07-28 02:01:39 +03:00
..
rustc compiler: Add rustc_abi dependence to the compiler 2024-10-27 21:10:58 -07:00
checks.rs always check for mixed deref pattern and normal constructors 2025-07-04 23:47:31 -07:00
constructor.rs In rustc_pattern_analysis, put true witnesses before false witnesses 2025-07-28 02:01:39 +03:00
errors.rs error early when mixing deref patterns with normal constructors 2025-05-06 18:53:55 -07:00
lib.rs pattern_analysis: add option to get a full set of witnesses 2025-07-20 18:27:30 +02:00
lints.rs Remove LintExpectationId from Level variants 2025-04-03 09:22:21 +00:00
pat.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
pat_column.rs Greatly simplify lifetime captures in edition 2024 2025-02-22 22:24:52 +00:00
rustc.rs Don't consider unstable fields always-inhabited 2025-07-20 18:23:18 +02:00
usefulness.rs List all the variants of non-exhaustive enums in exhaustive mode 2025-07-20 18:27:30 +02:00