rust/compiler
David Tolnay f441adc89a
Generate safe stable code for derives on empty enums
Generate `match *self {}` instead of `unsafe { core::intrinsics::unreachable() }`.

This is:

    1. safe
    2. stable

for the benefit of everyone looking at these derived impls through `cargo expand`.

Both expansions compile to the same code at all optimization levels (including `0`).
2023-07-16 15:02:08 -07:00
..
2023-07-12 21:38:55 -04:00
2023-07-03 07:20:51 +00:00
2023-07-02 21:02:31 +02:00
2023-07-03 13:51:54 -07:00