Skip to content

Commit a57a869

Browse files
committed
---
yaml --- r: 2567 b: refs/heads/master c: f742982 h: refs/heads/master i: 2565: 6eff7a6 2563: 5f81d6d 2559: 5deb7d9 v: v3
1 parent 045dd7a commit a57a869

File tree

2 files changed

+10
-11
lines changed

2 files changed

+10
-11
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: 1fc1ad91cebd17b9e502cfeecb51af593ef04d0e
2+
refs/heads/master: f74298215cdfb2a703d8972f78265868a0102e58

trunk/src/comp/middle/typeck.rs

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1646,16 +1646,15 @@ fn replace_expr_type(&node_type_table ntt,
16461646

16471647
fn check_lit(@crate_ctxt ccx, &@ast::lit lit) -> ty::t {
16481648
alt (lit.node) {
1649-
case (ast::lit_str(_)) { ret ty::mk_str(ccx.tcx); }
1650-
case (ast::lit_char(_)) { ret ty::mk_char(ccx.tcx); }
1651-
case (ast::lit_int(_)) { ret ty::mk_int(ccx.tcx); }
1652-
case (ast::lit_float(_)) { ret ty::mk_float(ccx.tcx); }
1653-
case (ast::lit_mach_float(?tm, _))
1654-
{ ret ty::mk_mach(ccx.tcx, tm); }
1655-
case (ast::lit_uint(_)) { ret ty::mk_uint(ccx.tcx); }
1656-
case (ast::lit_mach_int(?tm, _)) { ret ty::mk_mach(ccx.tcx, tm); }
1657-
case (ast::lit_nil) { ret ty::mk_nil(ccx.tcx); }
1658-
case (ast::lit_bool(_)) { ret ty::mk_bool(ccx.tcx); }
1649+
case (ast::lit_str(_)) { ret ty::mk_str(ccx.tcx); }
1650+
case (ast::lit_char(_)) { ret ty::mk_char(ccx.tcx); }
1651+
case (ast::lit_int(_)) { ret ty::mk_int(ccx.tcx); }
1652+
case (ast::lit_float(_)) { ret ty::mk_float(ccx.tcx); }
1653+
case (ast::lit_mach_float(?tm, _)) { ret ty::mk_mach(ccx.tcx, tm); }
1654+
case (ast::lit_uint(_)) { ret ty::mk_uint(ccx.tcx); }
1655+
case (ast::lit_mach_int(?tm, _)) { ret ty::mk_mach(ccx.tcx, tm); }
1656+
case (ast::lit_nil) { ret ty::mk_nil(ccx.tcx); }
1657+
case (ast::lit_bool(_)) { ret ty::mk_bool(ccx.tcx); }
16591658
}
16601659

16611660
fail; // not reached

0 commit comments

Comments
 (0)