servo: Merge #10476 - Remove str_to_string compile test (from KiChjang:remove-str-to-string); r=Ms2ger
authorKeith Yeung <kungfukeith11@gmail.com>
Fri, 08 Apr 2016 16:06:15 +0500
changeset 476622 cdf9753c237bef4acfdd1c6badf41ecf12ebc126
parent 476621 8547bc0eebf9bcd7d6a228e4d33a5888ada3e79e
child 476623 bee9e1d462a155be71c8001abec88f80a2293534
push id44079
push userbmo:gps@mozilla.com
push dateSat, 04 Feb 2017 00:14:49 +0000
reviewersMs2ger
servo: Merge #10476 - Remove str_to_string compile test (from KiChjang:remove-str-to-string); r=Ms2ger Fixes #10474. Source-Repo: https://github.com/servo/servo Source-Revision: 13e21968e661ceb113b0e05c3c30ce5071f8fb78
servo/tests/compiletest/plugin/compile-fail/str_to_string.rs
deleted file mode 100644
--- a/servo/tests/compiletest/plugin/compile-fail/str_to_string.rs
+++ /dev/null
@@ -1,16 +0,0 @@
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-
-#![feature(plugin)]
-#![plugin(plugins)]
-
-
-fn main() {
-    let x = "foo".to_string();
-    //~^ ERROR str.to_owned() is more efficient than str.to_string()
-
-    let x = &x[..];
-    x.to_string();
-    //~^ ERROR str.to_owned() is more efficient than str.to_string()
-}