]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc/middle/check_static.rs
Replace all ~"" with "".to_owned()
[rust.git] / src / librustc / middle / check_static.rs
index ecc3ba59dd5ab68be55c15395c4a44a6561aaf86..763c1abdc7394ec169a6538b2b4dd022035a76f0 100644 (file)
@@ -132,7 +132,7 @@ fn visit_expr(&mut self, e: &ast::Expr, is_const: bool) {
                     ty::ty_enum(did, _) => {
                         if ty::has_dtor(self.tcx, did) {
                             self.report_error(e.span,
-                                     Some(~"static items are not allowed to have destructors"));
+                             Some("static items are not allowed to have destructors".to_owned()));
                             return;
                         }
                     }