rust/tests/ui/uninhabited
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
..
auxiliary Consider fields to be inhabited if they are unstable 2025-03-18 18:23:36 +00:00
diverging-guard.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
exhaustive-wo-nevertype-issue-51221.rs Update tests 2024-08-10 12:07:17 +02:00
issue-107505.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
privately-uninhabited-dead-code.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
privately-uninhabited-mir-call.fixed Handle more cases of value suggestions 2024-04-10 20:36:14 +00:00
privately-uninhabited-mir-call.rs Handle more cases of value suggestions 2024-04-10 20:36:14 +00:00
privately-uninhabited-mir-call.stderr Handle more cases of value suggestions 2024-04-10 20:36:14 +00:00
projection.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
uninhabited-enum-cast.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
uninhabited-irrefutable.exhaustive_patterns.stderr Update tests for new TRPL chapter order 2024-11-23 08:57:25 -07:00
uninhabited-irrefutable.normal.stderr Update tests for new TRPL chapter order 2024-11-23 08:57:25 -07:00
uninhabited-irrefutable.rs UI tests: add missing diagnostic kinds where possible 2025-04-08 23:06:31 +03:00
uninhabited-matches-feature-gated.rs Update tests 2024-08-10 12:07:17 +02:00
uninhabited-matches-feature-gated.stderr Update tests 2024-08-10 12:07:17 +02:00
uninhabited-patterns.rs treat box patterns as deref patterns in THIR and usefulness analysis 2025-07-04 01:28:35 -07:00
uninhabited-patterns.stderr treat box patterns as deref patterns in THIR and usefulness analysis 2025-07-04 01:28:35 -07:00
uninhabited-pin-field.rs Dont consider fields that are forced unstable due to -Zforce-unstable-if-unmarked to be uninhabited 2025-03-18 18:24:02 +00:00
uninhabited-pin-field.stderr Dont consider fields that are forced unstable due to -Zforce-unstable-if-unmarked to be uninhabited 2025-03-18 18:24:02 +00:00
uninhabited-transparent-return-abi.rs Add test that uninhabited repr(transparent) type has same function return ABI as wrapped type. 2025-02-20 13:41:11 -06:00
uninhabited-unstable-field.current.stderr Dont consider fields that are forced unstable due to -Zforce-unstable-if-unmarked to be uninhabited 2025-03-18 18:24:02 +00:00
uninhabited-unstable-field.exhaustive.stderr Consider fields to be inhabited if they are unstable 2025-03-18 18:23:36 +00:00
uninhabited-unstable-field.rs Consider fields to be inhabited if they are unstable 2025-03-18 18:23:36 +00:00