diff --git a/src/Makefile b/src/Makefile index dc69d19e9c2..74e2cd85435 100644 --- a/src/Makefile +++ b/src/Makefile @@ -517,17 +517,8 @@ TEST_XFAILS_LLVM := $(TASK_XFAILS) \ TEST_XFAILS_SELF := $(filter-out \ $(addprefix test/run-pass/, \ - arith-0.rs \ - arith-2.rs \ - bool-not.rs \ - char.rs \ - fact.rs \ - dead-code-one-arm-if.rs \ - deep.rs \ - hello.rs \ int.rs \ item-name-overload.rs \ - lazy-init.rs \ multiline-comment.rs \ ), \ $(wildcard test/*/*.rs test/*/*.rc)) diff --git a/src/comp/middle/typeck.rs b/src/comp/middle/typeck.rs index 8ef75ffa003..0809d9f1efe 100644 --- a/src/comp/middle/typeck.rs +++ b/src/comp/middle/typeck.rs @@ -1,7 +1,3 @@ -// -// comp/middle/typeck.rs -// - import front.ast; import front.ast.ann; import middle.fold; @@ -185,7 +181,8 @@ fn ty_to_str(@ty typ) -> str { case (ty_fn(?inputs, ?output)) { auto f = fn_input_to_str; - s = "fn(" + _str.connect(_vec.map[arg,str](f, inputs), ", ") + ")"; + s = "fn(" + _str.connect(_vec.map[arg,str](f, inputs), + ", ") + ")"; if (output.struct != ty_nil) { s += " -> " + ty_to_str(output); } @@ -604,7 +601,7 @@ fn unify(@ty expected, @ty actual) -> unify_result { auto result = unify_step(expected_output, actual_output, bindings); alt (result) { - case (ures_ok(?rty)) { + case (ures_ok(?rty)) { result_out = rty; } @@ -722,7 +719,7 @@ fn check_expr(&@env e, &@ty_table locals, @ast.expr expr) -> @ast.expr { ret @fold.respan[ast.expr_](expr.span, ast.expr_lit(lit, ast.ann_type(ty))); } - + case (_) { // TODO ret expr; @@ -855,3 +852,13 @@ fn check_crate(session.session sess, @ast.crate crate) -> @ast.crate { ret fold.fold_crate[@env](e, fld, result._0); } +// +// Local Variables: +// mode: rust +// fill-column: 78; +// indent-tabs-mode: nil +// c-basic-offset: 4 +// buffer-file-coding-system: utf-8-unix +// compile-command: "make -k -C ../.. 2>&1 | sed -e 's/\\/x\\//x:\\//g'"; +// End: +//