From 467bea04fa1d5fd894d64b2b2901d94260301631 Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Wed, 10 Sep 2014 22:26:41 -0700 Subject: librustc: Forbid inherent implementations that aren't adjacent to the 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 { ... } } Additionally, if you used the I/O path extension methods `stat`, `lstat`, `exists`, `is_file`, or `is_dir`, note that these methods have been moved to the the `std::io::fs::PathExtensions` trait. This breaks code like: fn is_it_there() -> bool { Path::new("/foo/bar/baz").exists() } Change this code to: use std::io::fs::PathExtensions; fn is_it_there() -> bool { Path::new("/foo/bar/baz").exists() } Closes #17059. RFC #155. [breaking-change] --- src/libnative/io/process.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/libnative') diff --git a/src/libnative/io/process.rs b/src/libnative/io/process.rs index cad2ed0b97e..e5165929ad3 100644 --- a/src/libnative/io/process.rs +++ b/src/libnative/io/process.rs @@ -21,6 +21,7 @@ use std::rt::rtio; use super::file; use super::util; +#[cfg(windows)] use std::io::fs::PathExtensions; #[cfg(windows)] use std::string::String; #[cfg(unix)] use super::c; #[cfg(unix)] use super::retry; -- cgit 1.4.1-3-g733a5