granite-rust/compiler/rustc_builtin_macros
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
..
src Generate safe stable code for derives on empty enums 2023-07-16 15:02:08 -07:00
Cargo.toml Use GrowableBitSet to store positional indexes in asm! 2023-05-02 16:42:36 +01:00
messages.ftl fix typo 2023-06-28 10:52:48 +08:00