]> git.lizzy.rs Git - rust.git/commit
Handle alt on a _|_ - typed value
authorTim Chevalier <chevalier@alum.wellesley.edu>
Thu, 4 Aug 2011 23:07:26 +0000 (16:07 -0700)
committerTim Chevalier <chevalier@alum.wellesley.edu>
Thu, 4 Aug 2011 23:07:26 +0000 (16:07 -0700)
commite0985c10606d0b38be66734bf1a34bad70eec064
tree341df9e50136282278f2f7e6e5a626da38ea87e4
parent5f03ca48d8348197b52697f54a34e471b0edd79f
Handle alt on a _|_ - typed value

Return the result of the discriminant from trans_alt,
rather than nil, in the _|_ case. This was breaking the
enclosed test case (alt-bot-2) when optimization was disabled.

Closes #769
src/comp/middle/trans_alt.rs
src/test/run-pass/alt-bot-2.rs [new file with mode: 0644]