Skip to content

Commit 45ddf50

Browse files
committed
Add new path module
Implements [RFC 474](rust-lang/rfcs#474); see that RFC for details/motivation for this change. This initial commit does not include additional normalization or platform-specific path extensions. These will be done in follow up commits or PRs.
1 parent 3e39f0b commit 45ddf50

File tree

8 files changed

+2576
-9
lines changed

8 files changed

+2576
-9
lines changed

src/libstd/ffi/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ pub use self::os_str::OsStr;
2424
mod c_str;
2525
mod os_str;
2626

27+
// FIXME (#21670): these should be defined in the os_str module
2728
/// Freely convertible to an `&OsStr` slice.
2829
pub trait AsOsStr {
2930
/// Convert to an `&OsStr` slice.

src/libstd/ffi/os_str.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ use string::{String, CowString};
4141
use ops;
4242
use cmp;
4343
use hash::{Hash, Hasher, Writer};
44-
use path::{Path, GenericPath};
44+
use old_path::{Path, GenericPath};
4545

4646
use sys::os_str::{Buf, Slice};
4747
use sys_common::{AsInner, IntoInner, FromInner};

0 commit comments

Comments
 (0)