Skip to content

Commit

Permalink
rustc: Remove fixed-length string warning
Browse files Browse the repository at this point in the history
  • Loading branch information
pcwalton committed Aug 3, 2012
1 parent aa4683c commit 9e68966
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/rustc/middle/typeck/check.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(_) {
Expand Down

0 comments on commit 9e68966

Please sign in to comment.