]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/test-ignore-cfg.rs
Replace all ~"" with "".to_owned()
[rust.git] / src / test / run-pass / test-ignore-cfg.rs
index ba131569bc49294ccc2fd04dbe753599818d9a27..e8d36dad2087749cb185065697aae3009764c568 100644 (file)
@@ -9,7 +9,6 @@
 // except according to those terms.
 
 // compile-flags: --test --cfg ignorecfg
-// ignore-fast
 
 #[test]
 #[ignore(cfg(ignorecfg))]
@@ -27,8 +26,10 @@ fn checktests() {
     let tests = __test::TESTS;
 
     assert!(
-        tests.iter().any(|t| t.desc.name.to_str() == ~"shouldignore" && t.desc.ignore));
+        tests.iter().any(|t| t.desc.name.to_str() == "shouldignore".to_owned() &&
+                         t.desc.ignore));
 
     assert!(
-        tests.iter().any(|t| t.desc.name.to_str() == ~"shouldnotignore" && !t.desc.ignore));
+        tests.iter().any(|t| t.desc.name.to_str() == "shouldnotignore".to_owned() &&
+                         !t.desc.ignore));
 }