diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/comp/middle/typeck.rs | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/comp/middle/typeck.rs b/src/comp/middle/typeck.rs index 4bbf3cf4..49bdf690 100644 --- a/src/comp/middle/typeck.rs +++ b/src/comp/middle/typeck.rs @@ -1236,12 +1236,6 @@ fn check_stmt(&fn_ctxt fcx, &@ast.stmt stmt) case (ast.stmt_expr(?expr)) { auto expr_t = check_expr(fcx, expr); - if (!are_compatible(fcx, expr_ty(expr_t), plain_ty(ty_nil))) { - // TODO: real warning function - log "warning: expression used as statement should have " + - "void type"; - } - ret @fold.respan[ast.stmt_](stmt.span, ast.stmt_expr(expr_t)); } } |