We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aa4683c commit 9e68966Copy full SHA for 9e68966
src/rustc/middle/typeck/check.rs
@@ -701,10 +701,7 @@ fn check_lit(fcx: @fn_ctxt, lit: @ast::lit) -> ty::t {
701
let tcx = fcx.ccx.tcx;
702
703
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
- }
+ ast::lit_str(s) => { ty::mk_estr(tcx, ty::vstore_slice(ty::re_static)) }
708
ast::lit_int(_, t) { ty::mk_mach_int(tcx, t) }
709
ast::lit_uint(_, t) { ty::mk_mach_uint(tcx, t) }
710
ast::lit_int_unsuffixed(_) {
0 commit comments