about summary refs log tree commit diff
path: root/src/libcore/path.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2013-04-29 14:33:37 -0700
committerbors <bors@rust-lang.org>2013-04-29 14:33:37 -0700
commitf1ddb8d5cc66941763039d3f727465b7cc34a100 (patch)
tree66132a53979403297cbe192ce936cfa7c5b3cb1f /src/libcore/path.rs
parentdbcc3fe63a71d92d194d99dfd5e73fb62d09e79a (diff)
parent78f33437b66793b10eb2a72d0d20cbf2bf0eacb5 (diff)
auto merge of #6080 : pcwalton/rust/demode-everything, r=pcwalton
r? @brson
Diffstat (limited to 'src/libcore/path.rs')
-rw-r--r--src/libcore/path.rs21
1 files changed, 5 insertions, 16 deletions
diff --git a/src/libcore/path.rs b/src/libcore/path.rs
index edc61299af9..462c5be3bcf 100644
--- a/src/libcore/path.rs
+++ b/src/libcore/path.rs
@@ -21,6 +21,11 @@ use str;
 use to_str::ToStr;
 use ascii::{AsciiCast, AsciiStr};
 
+#[cfg(windows)]
+pub use Path = self::WindowsPath;
+#[cfg(unix)]
+pub use Path = self::PosixPath;
+
 #[deriving(Clone, Eq)]
 pub struct WindowsPath {
     host: Option<~str>,
@@ -72,22 +77,6 @@ pub trait GenericPath {
     fn is_absolute(&self) -> bool;
 }
 
-#[cfg(windows)]
-pub type Path = WindowsPath;
-
-#[cfg(windows)]
-pub fn Path(s: &str) -> Path {
-    WindowsPath(s)
-}
-
-#[cfg(unix)]
-pub type Path = PosixPath;
-
-#[cfg(unix)]
-pub fn Path(s: &str) -> Path {
-    PosixPath(s)
-}
-
 #[cfg(target_os = "linux")]
 #[cfg(target_os = "android")]
 mod stat {