aboutsummaryrefslogtreecommitdiff
path: root/src/comp/middle
diff options
context:
space:
mode:
authorPatrick Walton <[email protected]>2011-05-02 17:44:22 -0700
committerPatrick Walton <[email protected]>2011-05-02 17:50:46 -0700
commita833f152baa17460e8414355e832d30d5161f8e8 (patch)
tree66509ce43c6404b4c9423278d8f496c44f6462a9 /src/comp/middle
parentUn-revert "Use different syntax for checks that matter to typestate", fixing ... (diff)
downloadrust-a833f152baa17460e8414355e832d30d5161f8e8.tar.xz
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/middle')
-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 220adcb1..1d170514 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) {