diff options
| author | Patrick Walton <[email protected]> | 2011-05-02 17:44:22 -0700 |
|---|---|---|
| committer | Patrick Walton <[email protected]> | 2011-05-02 17:50:46 -0700 |
| commit | a833f152baa17460e8414355e832d30d5161f8e8 (patch) | |
| tree | 66509ce43c6404b4c9423278d8f496c44f6462a9 /src/comp/middle | |
| parent | Un-revert "Use different syntax for checks that matter to typestate", fixing ... (diff) | |
| download | rust-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.rs | 2 |
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) { |