From f6db0ef9464a17fa6e547e755b1b5dfa09af9499 Mon Sep 17 00:00:00 2001 From: Huon Wilson Date: Sun, 23 Mar 2014 22:54:42 +1100 Subject: std: remove the `equals` method from `TotalEq`. `TotalEq` is now just an assertion about the `Eq` impl of a type (i.e. `==` is a total equality if a type implements `TotalEq`) so the extra method is just confusing. Also, a new method magically appeared as a hack to allow deriving to assert that the contents of a struct/enum are also TotalEq, because the deriving infrastructure makes it very hard to do anything but create a trait method. (You didn't hear about this horrible work-around from me :(.) --- src/compiletest/runtest.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/compiletest') diff --git a/src/compiletest/runtest.rs b/src/compiletest/runtest.rs index eef1a1ac241..51fa002420c 100644 --- a/src/compiletest/runtest.rs +++ b/src/compiletest/runtest.rs @@ -337,7 +337,7 @@ fn run_debuginfo_test(config: &config, props: &TestProps, testfile: &Path) { } } - if tool_path.equals(&~"") { + if tool_path.is_empty() { fatal(~"cannot found android cross path"); } -- cgit 1.4.1-3-g733a5