mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-20 20:12:09 +00:00

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`).