Skip to content

Commit a3d4d95

Browse files
committed
---
yaml --- r: 3912 b: refs/heads/master c: f4beac4 h: refs/heads/master v: v3
1 parent 3e1bbc9 commit a3d4d95

File tree

4 files changed

+2
-8
lines changed

4 files changed

+2
-8
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: fc67dddb9bb2a32184e425ff99fc9e038c0f8dff
2+
refs/heads/master: f4beac4a4337296ab356d69ad1ed42f68f461bf1

trunk/src/comp/middle/typeck.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2672,10 +2672,7 @@ fn check_main_fn_ty(&ty::ctxt tcx, &ast::node_id main_id) {
26722672
alt (ty::struct(tcx, main_t)) {
26732673
case (ty::ty_fn(ast::proto_fn, ?args, ?rs, ast::return, ?constrs)) {
26742674
auto ok = ivec::len(constrs) == 0u;
2675-
ok &= ty::type_is_nil(tcx, rs) || alt (ty::struct(tcx, rs)) {
2676-
ty::ty_int { true }
2677-
_ { false }
2678-
};
2675+
ok &= ty::type_is_nil(tcx, rs);
26792676
auto num_args = ivec::len(args);
26802677
ok &= num_args == 0u || (num_args == 1u &&
26812678
arg_is_argv_ty(tcx, args.(0)));

trunk/src/test/run-pass/main-int-synonym.rs

Lines changed: 0 additions & 2 deletions
This file was deleted.

trunk/src/test/run-pass/main-int.rs

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)