rust/tests/ui/transmutability/unions
Tomasz Miąsko 88a86794b9 transmutability: uninit transition matches unit byte only
The previous implementation was inconsistent about transitions that
apply for an init byte. For example, when answering a query, an init
byte could use corresponding init transition. Init byte could also use
uninit transition, but only when the corresponding init transition was
absent. This behaviour was incompatible with DFA union construction.

Define an uninit transition to match an uninit byte only and update
implementation accordingly. To describe that `Tree::uninit` is valid
for any value, build an automaton that accepts any byte value.

Additionally, represent byte ranges uniformly as a pair of integers to
avoid special case for uninit byte.
2025-04-29 20:42:43 +02:00
..
repr safe transmute: Rename `BikeshedIntrinsicFrom` to `TransmuteFrom` 2024-08-27 14:05:54 +00:00
boolish.rs safe transmute: Rename `BikeshedIntrinsicFrom` to `TransmuteFrom` 2024-08-27 14:05:54 +00:00
extension.rs transmutability: uninit transition matches unit byte only 2025-04-29 20:42:43 +02:00
extension.stderr transmutability: uninit transition matches unit byte only 2025-04-29 20:42:43 +02:00
init_as_uninit.rs transmutability: uninit transition matches unit byte only 2025-04-29 20:42:43 +02:00
should_pad_variants.rs safe transmute: Rename `BikeshedIntrinsicFrom` to `TransmuteFrom` 2024-08-27 14:05:54 +00:00
should_pad_variants.stderr safe transmute: Rename `BikeshedIntrinsicFrom` to `TransmuteFrom` 2024-08-27 14:05:54 +00:00
should_permit_intersecting_if_validity_is_assumed.rs transmutability: uninit transition matches unit byte only 2025-04-29 20:42:43 +02:00
should_reject_contraction.rs safe transmute: Rename `BikeshedIntrinsicFrom` to `TransmuteFrom` 2024-08-27 14:05:54 +00:00
should_reject_contraction.stderr safe transmute: Rename `BikeshedIntrinsicFrom` to `TransmuteFrom` 2024-08-27 14:05:54 +00:00
should_reject_disjoint.rs safe transmute: Rename `BikeshedIntrinsicFrom` to `TransmuteFrom` 2024-08-27 14:05:54 +00:00
should_reject_disjoint.stderr safe transmute: Rename `BikeshedIntrinsicFrom` to `TransmuteFrom` 2024-08-27 14:05:54 +00:00
should_reject_intersecting.rs safe transmute: Rename `BikeshedIntrinsicFrom` to `TransmuteFrom` 2024-08-27 14:05:54 +00:00
should_reject_intersecting.stderr safe transmute: Rename `BikeshedIntrinsicFrom` to `TransmuteFrom` 2024-08-27 14:05:54 +00:00