Skip to content

Commit 9e68966

Browse files
committed
rustc: Remove fixed-length string warning
1 parent aa4683c commit 9e68966

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/rustc/middle/typeck/check.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -701,10 +701,7 @@ fn check_lit(fcx: @fn_ctxt, lit: @ast::lit) -> ty::t {
701701
let tcx = fcx.ccx.tcx;
702702

703703
alt lit.node {
704-
ast::lit_str(s) {
705-
tcx.sess.span_warn(lit.span, ~"fixed length string");
706-
ty::mk_estr(tcx, ty::vstore_slice(ty::re_static))
707-
}
704+
ast::lit_str(s) => { ty::mk_estr(tcx, ty::vstore_slice(ty::re_static)) }
708705
ast::lit_int(_, t) { ty::mk_mach_int(tcx, t) }
709706
ast::lit_uint(_, t) { ty::mk_mach_uint(tcx, t) }
710707
ast::lit_int_unsuffixed(_) {

0 commit comments

Comments
 (0)