rust/compiler/rustc_pattern_analysis/src
dianne 98659a339d treat box patterns as deref patterns in THIR and usefulness analysis
This removes special-casing of boxes from `rustc_pattern_analysis`, as a
first step in replacing `box_patterns` with `deref_patterns`.
Incidentally, it fixes a bug caused by box patterns being represented as
structs rather than pointers, where `exhaustive_patterns` could generate
spurious `unreachable_patterns` lints on arms required for
exhaustiveness; following the lint's advice would result in an error.
2025-07-04 01:28:35 -07:00
..
rustc compiler: Add rustc_abi dependence to the compiler 2024-10-27 21:10:58 -07:00
constructor.rs Add #[loop_match] for improved DFA codegen 2025-06-23 20:43:04 +02:00
errors.rs error early when mixing deref patterns with normal constructors 2025-05-06 18:53:55 -07:00
lib.rs Remove #![feature(let_chains)] from library and src/librustdoc 2025-05-16 16:14:24 +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 treat box patterns as deref patterns in THIR and usefulness analysis 2025-07-04 01:28:35 -07:00
usefulness.rs setup CI and tidy to use typos for spellchecking and fix few typos 2025-07-03 10:51:06 +03:00