]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc/middle/liveness.rs
Replace all ~"" with "".to_owned()
[rust.git] / src / librustc / middle / liveness.rs
index a9cc45d2b13d5a8b581e514b159f4e89602ab576..c943744147d5bc3eeec7ed04ad0688c5fbaf70f6 100644 (file)
@@ -157,7 +157,7 @@ fn live_node_kind_to_str(lnk: LiveNodeKind, cx: &ty::ctxt) -> ~str {
         FreeVarNode(s) => format!("Free var node [{}]", cm.span_to_str(s)),
         ExprNode(s)    => format!("Expr node [{}]", cm.span_to_str(s)),
         VarDefNode(s)  => format!("Var def node [{}]", cm.span_to_str(s)),
-        ExitNode       => ~"Exit node"
+        ExitNode       => "Exit node".to_owned()
     }
 }
 
@@ -328,7 +328,7 @@ fn variable_name(&self, var: Variable) -> ~str {
             &Local(LocalInfo { ident: nm, .. }) | &Arg(_, nm) => {
                 token::get_ident(nm).get().to_str()
             },
-            &ImplicitRet => ~"<implicit-ret>"
+            &ImplicitRet => "<implicit-ret>".to_owned()
         }
     }