Skip to content

Commit 6d22a80

Browse files
committed
Replace core::path with contents of core::path2. Back to one path module.
1 parent cb8ecd7 commit 6d22a80

File tree

5 files changed

+480
-985
lines changed

5 files changed

+480
-985
lines changed

src/libcore/core.rc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export send_map;
5454
export hash;
5555
export cmp;
5656
export num;
57-
export path, path2;
57+
export path;
5858
export managed;
5959
export flate;
6060

@@ -254,7 +254,6 @@ mod libc;
254254
mod os;
255255
#[warn(non_camel_case_types)]
256256
mod path;
257-
mod path2;
258257
#[warn(non_camel_case_types)]
259258
mod rand;
260259
#[warn(non_camel_case_types)]

src/libcore/core.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ import option = option::Option;
1010

1111
import result::{Result, Ok, Err};
1212

13-
import Path = path2::Path;
14-
import GenericPath = path2::GenericPath;
15-
import WindowsPath = path2::WindowsPath;
16-
import PosixPath = path2::PosixPath;
13+
import Path = path::Path;
14+
import GenericPath = path::GenericPath;
15+
import WindowsPath = path::WindowsPath;
16+
import PosixPath = path::PosixPath;
1717

1818
import tuple::{TupleOps, ExtendedTupleOps};
1919
import str::{StrSlice, UniqueStr};

src/libcore/os.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -914,7 +914,7 @@ mod tests {
914914

915915
#[test]
916916
fn test() {
917-
assert (!path::path_is_absolute(~"test-path"));
917+
assert (!Path("test-path").is_absolute);
918918

919919
log(debug, ~"Current working directory: " + getcwd().to_str());
920920

0 commit comments

Comments
 (0)