about summary refs log tree commit diff
path: root/src/test/debuginfo/enum-thinlto.rs
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2018-11-05 08:37:00 -0700
committerTom Tromey <tom@tromey.com>2018-11-05 08:44:36 -0700
commit4d20dd4b788a9e825bac43c8c0b0b4858de78296 (patch)
tree2c38115187a62af86b99653894a00fa406801fdc /src/test/debuginfo/enum-thinlto.rs
parent6cfc6033955dd2685dfa7baeec6f6bc3bfdfe2f1 (diff)
downloadrust-4d20dd4b788a9e825bac43c8c0b0b4858de78296.tar.gz
rust-4d20dd4b788a9e825bac43c8c0b0b4858de78296.zip
Fix emission of niche-filling discriminant values
Bug #55606 points out a regression introduced by #54004; namely that
an assertion can erroneously fire when a niche-filling discriminant
value is emitted.

This fixes the bug by removing the assertion, and furthermore by
arranging for the discriminant value to be masked according to the
size of the niche.  This makes handling the discriminant a bit simpler
for debuggers.

The test case is from Jonathan Turner.

Closes #55606
Diffstat (limited to 'src/test/debuginfo/enum-thinlto.rs')
0 files changed, 0 insertions, 0 deletions