rust/tests/codegen/enum
bors 76cf07d5df Auto merge of #122225 - DianQK:nits-120268, r=cjgillot
Rename `UninhabitedEnumBranching` to `UnreachableEnumBranching`

Per [#120268](https://github.com/rust-lang/rust/pull/120268#discussion_r1517492060), I rename `UninhabitedEnumBranching` to `UnreachableEnumBranching` .

I solved some nits to add some comments.

I adjusted the workaround restrictions. This should be useful for `a <= b` and `if let Some/Ok(v)`. For enum with few variants, `early-tailduplication` should not cause compile time overhead.

r? RalfJung
2024-04-03 06:22:23 +00:00
..
enum-bounds-check-derived-idx.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
enum-bounds-check-issue-13926.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
enum-bounds-check-issue-82871.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
enum-bounds-check.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
enum-debug-clike.rs Update test directives for wasm32-wasip1 2024-03-11 09:36:35 -07:00
enum-debug-niche-2.rs Use generic NonZero in tests. 2024-02-25 12:03:48 +01:00
enum-debug-niche.rs Update test directives for wasm32-wasip1 2024-03-11 09:36:35 -07:00
enum-debug-tagged.rs Update test directives for wasm32-wasip1 2024-03-11 09:36:35 -07:00
enum-discriminant-value.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
enum-match.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
enum-u128.rs Update test directives for wasm32-wasip1 2024-03-11 09:36:35 -07:00
unreachable_enum_default_branch.rs Update unreachable_enum_default_branch.rs 2024-03-13 22:35:11 +08:00