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/libsyntax/parse/parser.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/libsyntax/parse') diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index 328bdf88335..b4c8ecb3812 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -82,6 +82,7 @@ use parse::{new_sub_parser_from_file, ParseSess}; use owned_slice::OwnedSlice; use std::collections::HashSet; +use std::io::fs::PathExtensions; use std::mem::replace; use std::rc::Rc; use std::gc::{Gc, GC}; -- cgit 1.4.1-3-g733a5