]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc/middle/trans/asm.rs
Replace all ~"" with "".to_owned()
[rust.git] / src / librustc / middle / trans / asm.rs
index 43b74c387aee8ae3e63843b801f680388b292302..d6636854713a88b2bc34a831208ed9db5249d0aa 100644 (file)
@@ -137,11 +137,11 @@ pub fn trans_inline_asm<'a>(bcx: &'a Block<'a>, ia: &ast::InlineAsm)
 #[cfg(target_arch = "arm")]
 #[cfg(target_arch = "mips")]
 fn getClobbers() -> ~str {
-    ~""
+    "".to_owned()
 }
 
 #[cfg(target_arch = "x86")]
 #[cfg(target_arch = "x86_64")]
 fn getClobbers() -> ~str {
-    ~"~{dirflag},~{fpsr},~{flags}"
+    "~{dirflag},~{fpsr},~{flags}".to_owned()
 }