about summary refs log tree commit diff
path: root/src/rustc/middle/ty.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/rustc/middle/ty.rs')
-rw-r--r--src/rustc/middle/ty.rs20
1 files changed, 2 insertions, 18 deletions
diff --git a/src/rustc/middle/ty.rs b/src/rustc/middle/ty.rs
index f44f6a3ce62..1402d1c9324 100644
--- a/src/rustc/middle/ty.rs
+++ b/src/rustc/middle/ty.rs
@@ -2872,24 +2872,6 @@ fn is_pred_ty(fty: t) -> bool {
     is_fn_ty(fty) && type_is_bool(ty_fn_ret(fty))
 }
 
-/*
-fn ty_var_id(typ: t) -> TyVid {
-    match get(typ).sty {
-      ty_infer(TyVar(vid)) => return vid,
-      _ => { error!("ty_var_id called on non-var ty"); fail; }
-    }
-}
-
-fn int_var_id(typ: t) -> IntVid {
-    match get(typ).sty {
-      ty_infer(IntVar(vid)) => return vid,
-      _ => { error!("ty_var_integral_id called on ty other than \
-                  ty_var_integral");
-         fail; }
-    }
-}
-*/
-
 // Type accessors for AST nodes
 fn block_ty(cx: ctxt, b: &ast::blk) -> t {
     return node_id_to_type(cx, b.node.id);
@@ -3094,6 +3076,8 @@ fn expr_kind(tcx: ctxt,
             RvalueDatumExpr
         }
 
+        ast::expr_paren(e) => expr_kind(tcx, method_map, e),
+
         ast::expr_mac(*) => {
             tcx.sess.span_bug(
                 expr.span,