Skip to content

Commit f742982

Browse files
committed
rustc: Fix indentation in typeck::check_lit()
1 parent 1fc1ad9 commit f742982

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

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)