Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
aturon committed Feb 3, 2015
1 parent 3e39f0b commit 45ddf50
Show file tree
Hide file tree
Showing 8 changed files with 2,576 additions and 9 deletions.
1 change: 1 addition & 0 deletions src/libstd/ffi/mod.rs
Expand Up @@ -24,6 +24,7 @@ pub use self::os_str::OsStr;
mod c_str;
mod os_str;

// FIXME (#21670): these should be defined in the os_str module
/// Freely convertible to an `&OsStr` slice.
pub trait AsOsStr {
/// Convert to an `&OsStr` slice.
Expand Down
2 changes: 1 addition & 1 deletion src/libstd/ffi/os_str.rs
Expand Up @@ -41,7 +41,7 @@ use string::{String, CowString};
use ops;
use cmp;
use hash::{Hash, Hasher, Writer};
use path::{Path, GenericPath};
use old_path::{Path, GenericPath};

use sys::os_str::{Buf, Slice};
use sys_common::{AsInner, IntoInner, FromInner};
Expand Down

0 comments on commit 45ddf50

Please sign in to comment.