aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBrian Anderson <[email protected]>2011-03-31 22:01:35 -0400
committerBrian Anderson <[email protected]>2011-03-31 23:15:11 -0400
commitf05d3c516b085bd489893d7885be0bb687a786f7 (patch)
treed22f95aac03d4d2b0286d5742cbaf85548c56c21 /src
parentAdd a test for block expressions of generic types. XFAILed (diff)
downloadrust-f05d3c516b085bd489893d7885be0bb687a786f7.tar.xz
rust-f05d3c516b085bd489893d7885be0bb687a786f7.zip
Add more comments to trans_block
Diffstat (limited to 'src')
-rw-r--r--src/comp/middle/trans.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/comp/middle/trans.rs b/src/comp/middle/trans.rs
index 6c072c61..dd11891c 100644
--- a/src/comp/middle/trans.rs
+++ b/src/comp/middle/trans.rs
@@ -5407,7 +5407,8 @@ fn trans_block(@block_ctxt cx, &ast.block b) -> result {
// FIXME: This is a temporary hack to prevent compile
// failures. There's some expression variant that claims
// to be ty_nil but but does not translate to T_nil. Need
- // to hunt it down.
+ // to hunt it down. Of course, if we're talking about nil,
+ // do we really want to do this whole business anyway?
if (!is_nil(r_ty)) {
// This alloca is declared at the function level, above
// the block scope