about summary refs log tree commit diff
path: root/src/compiletest
diff options
context:
space:
mode:
authorKevin Ballard <kevin@sb.org>2013-10-06 18:51:49 -0700
committerKevin Ballard <kevin@sb.org>2013-10-15 22:19:53 -0700
commitc01a97b7a981fb5ae008be7e06df4bf6a85eba4f (patch)
treec7cba306ad49ecb103ac9674dfeb71025746a7c2 /src/compiletest
parentd6d9b926836b1f1c2b8b3fe4ab35dc63bec7ffcd (diff)
downloadrust-c01a97b7a981fb5ae008be7e06df4bf6a85eba4f.tar.gz
rust-c01a97b7a981fb5ae008be7e06df4bf6a85eba4f.zip
path2: Remove .with_display_str and friends
Rewrite these methods as methods on Display and FilenameDisplay. This
turns

  do path.with_display_str |s| { ... }

into

  do path.display().with_str |s| { ... }
Diffstat (limited to 'src/compiletest')
-rw-r--r--src/compiletest/runtest.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiletest/runtest.rs b/src/compiletest/runtest.rs
index b5b81f7b810..4956be3c959 100644
--- a/src/compiletest/runtest.rs
+++ b/src/compiletest/runtest.rs
@@ -334,7 +334,7 @@ fn check_error_patterns(props: &TestProps,
                         testfile: &Path,
                         ProcRes: &ProcRes) {
     if props.error_patterns.is_empty() {
-        do testfile.with_display_str |s| {
+        do testfile.display().with_str |s| {
             fatal(~"no error pattern specified in " + s);
         }
     }