summary refs log tree commit diff
path: root/src/test/codegen/enum-match.rs
AgeCommit message (Collapse)AuthorLines
2022-11-18rustc_codegen_ssa: Fix for codegen_get_discrMichael Benfield-5/+2
When doing the optimized implementation of getting the discriminant, the arithmetic needs to be done in the tag type so wrapping behavior works correctly. Fixes #104519
2022-11-11rustc_codegen_ssa: Better code generation for niche discriminants.Michael Benfield-0/+112
In some cases we can avoid arithmetic before checking whether a niche represents an untagged variant. This is relevant to #101872