about summary refs log tree commit diff
path: root/src/compiletest/header.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/compiletest/header.rs')
-rw-r--r--src/compiletest/header.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiletest/header.rs b/src/compiletest/header.rs
index 1966701dbde..09e20415ebf 100644
--- a/src/compiletest/header.rs
+++ b/src/compiletest/header.rs
@@ -160,10 +160,10 @@ fn parse_exec_env(line: &str) -> Option<(~str, ~str)> {
 
 fn parse_pp_exact(line: &str, testfile: &Path) -> Option<Path> {
     match parse_name_value_directive(line, ~"pp-exact") {
-      Some(s) => Some(Path::new(s)),
+      Some(s) => Some(Path::init(s)),
       None => {
         if parse_name_directive(line, "pp-exact") {
-            testfile.filename().map(|s| Path::new(s))
+            testfile.filename().map(|s| Path::init(s))
         } else {
             None
         }