about summary refs log tree commit diff
path: root/src/comp
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2011-05-02 17:44:22 -0700
committerPatrick Walton <pcwalton@mimiga.net>2011-05-02 17:50:46 -0700
commita833f152baa17460e8414355e832d30d5161f8e8 (patch)
tree66509ce43c6404b4c9423278d8f496c44f6462a9 /src/comp
parent147a2d655f86c66b6edfebc20b927a8de8668722 (diff)
downloadrust-a833f152baa17460e8414355e832d30d5161f8e8.tar.gz
rust-a833f152baa17460e8414355e832d30d5161f8e8.zip
rustc: Remove the artificial block in ty.rs. Fixes self-hosting. Add a test case for this, XFAIL'd.
Diffstat (limited to 'src/comp')
-rw-r--r--src/comp/middle/ty.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/comp/middle/ty.rs b/src/comp/middle/ty.rs
index 220adcb1a23..1d170514380 100644
--- a/src/comp/middle/ty.rs
+++ b/src/comp/middle/ty.rs
@@ -1905,7 +1905,7 @@ fn expr_ann(&@ast.expr e) -> ast.ann {
 // instead of "fn(&T) -> T with T = int". If this isn't what you want, see
 // expr_ty_params_and_ty() below.
 fn expr_ty(ctxt cx, @ast.expr expr) -> t {
-    { ret ann_to_monotype(cx, expr_ann(expr)); }
+    ret ann_to_monotype(cx, expr_ann(expr));
 }
 
 fn expr_ty_params_and_ty(ctxt cx, @ast.expr expr) -> tup(vec[t], t) {