rustc: Remove fixed-length string warning

This commit is contained in:
Patrick Walton 2012-08-03 12:03:15 -07:00
parent aa4683c181
commit 9e68966611

View File

@ -701,10 +701,7 @@ fn check_lit(fcx: @fn_ctxt, lit: @ast::lit) -> ty::t {
let tcx = fcx.ccx.tcx;
alt lit.node {
ast::lit_str(s) {
tcx.sess.span_warn(lit.span, ~"fixed length string");
ty::mk_estr(tcx, ty::vstore_slice(ty::re_static))
}
ast::lit_str(s) => { ty::mk_estr(tcx, ty::vstore_slice(ty::re_static)) }
ast::lit_int(_, t) { ty::mk_mach_int(tcx, t) }
ast::lit_uint(_, t) { ty::mk_mach_uint(tcx, t) }
ast::lit_int_unsuffixed(_) {