rustc: Fix indentation in typeck::check_lit()

This commit is contained in:
Patrick Walton 2011-05-16 15:24:32 -07:00
parent 1fc1ad91ce
commit f74298215c
1 changed files with 9 additions and 10 deletions

View File

@ -1646,16 +1646,15 @@ fn replace_expr_type(&node_type_table ntt,
fn check_lit(@crate_ctxt ccx, &@ast::lit lit) -> ty::t {
alt (lit.node) {
case (ast::lit_str(_)) { ret ty::mk_str(ccx.tcx); }
case (ast::lit_char(_)) { ret ty::mk_char(ccx.tcx); }
case (ast::lit_int(_)) { ret ty::mk_int(ccx.tcx); }
case (ast::lit_float(_)) { ret ty::mk_float(ccx.tcx); }
case (ast::lit_mach_float(?tm, _))
{ ret ty::mk_mach(ccx.tcx, tm); }
case (ast::lit_uint(_)) { ret ty::mk_uint(ccx.tcx); }
case (ast::lit_mach_int(?tm, _)) { ret ty::mk_mach(ccx.tcx, tm); }
case (ast::lit_nil) { ret ty::mk_nil(ccx.tcx); }
case (ast::lit_bool(_)) { ret ty::mk_bool(ccx.tcx); }
case (ast::lit_str(_)) { ret ty::mk_str(ccx.tcx); }
case (ast::lit_char(_)) { ret ty::mk_char(ccx.tcx); }
case (ast::lit_int(_)) { ret ty::mk_int(ccx.tcx); }
case (ast::lit_float(_)) { ret ty::mk_float(ccx.tcx); }
case (ast::lit_mach_float(?tm, _)) { ret ty::mk_mach(ccx.tcx, tm); }
case (ast::lit_uint(_)) { ret ty::mk_uint(ccx.tcx); }
case (ast::lit_mach_int(?tm, _)) { ret ty::mk_mach(ccx.tcx, tm); }
case (ast::lit_nil) { ret ty::mk_nil(ccx.tcx); }
case (ast::lit_bool(_)) { ret ty::mk_bool(ccx.tcx); }
}
fail; // not reached