rust/compiler
Tomasz Miąsko c3e71d83cd Fix a variant index and variant discriminant confusion
Previously for enums using the `Variants::Single` layout, the variant
index was being confused with its discriminant. For example, in the case
of `enum E { A = 1 }`.

Use `discriminant_for_variant` to avoid the issue.
2021-11-20 10:31:17 +01:00
..
2021-11-19 07:52:59 +11:00
2021-11-15 10:14:29 +01:00
2021-11-07 16:59:05 +01:00
2021-11-16 08:06:31 +00:00