From 1d17c2129ec696d81e6c6caee8b1740dd9509090 Mon Sep 17 00:00:00 2001 From: Kevin Ballard Date: Fri, 7 Feb 2014 19:45:48 -0800 Subject: Rewrite path::Display to reduce unnecessary allocation --- src/compiletest/runtest.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/compiletest') diff --git a/src/compiletest/runtest.rs b/src/compiletest/runtest.rs index adb81803ab0..8edd923390a 100644 --- a/src/compiletest/runtest.rs +++ b/src/compiletest/runtest.rs @@ -442,9 +442,7 @@ fn check_error_patterns(props: &TestProps, testfile: &Path, ProcRes: &ProcRes) { if props.error_patterns.is_empty() { - testfile.display().with_str(|s| { - fatal(~"no error pattern specified in " + s); - }) + fatal(~"no error pattern specified in " + testfile.display().as_maybe_owned().as_slice()); } if ProcRes.status.success() { -- cgit 1.4.1-3-g733a5