about summary refs log tree commit diff
path: root/src/compiletest
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2014-09-14 08:11:04 +0000
committerbors <bors@rust-lang.org>2014-09-14 08:11:04 +0000
commit13037a37271f3b9e490d56ba41e56ca75a1167a3 (patch)
treefaf02a749485cb50b441346aa69fee38930082e9 /src/compiletest
parent0f99abae9ca7c463e7a5038b2249871fb3730aa5 (diff)
parent467bea04fa1d5fd894d64b2b2901d94260301631 (diff)
auto merge of #17163 : pcwalton/rust/impls-next-to-struct, r=alexcrichton
type they provide an implementation for.

This breaks code like:

    mod foo {
        struct Foo { ... }
    }

    impl foo::Foo {
        ...
    }

Change this code to:

    mod foo {
        struct Foo { ... }

        impl Foo {
            ...
        }
    }

Closes #17059.

RFC #155.

[breaking-change]

r? @brson
Diffstat (limited to 'src/compiletest')
-rw-r--r--src/compiletest/runtest.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/compiletest/runtest.rs b/src/compiletest/runtest.rs
index 122a241ef0c..c61db4ed2cf 100644
--- a/src/compiletest/runtest.rs
+++ b/src/compiletest/runtest.rs
@@ -20,6 +20,7 @@ use util::logv;
 use util;
 
 use std::io::File;
+use std::io::fs::PathExtensions;
 use std::io::fs;
 use std::io::net::tcp;
 use std::io::process::ProcessExit;