Skip to content

Commit b41d514

Browse files
committed
De-export os and libc. Close #2006.
1 parent 0bcb3bc commit b41d514

File tree

4 files changed

+731
-894
lines changed

4 files changed

+731
-894
lines changed

src/libcore/core.rc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ Implicitly, all crates behave as if they included the following prologue:
3737
#[no_core];
3838

3939
#[legacy_modes];
40+
#[legacy_exports];
4041

4142
#[warn(vecs_implicitly_copyable)];
4243
#[deny(non_camel_case_types)];
@@ -307,9 +308,7 @@ mod pipes;
307308
mod gc;
308309
#[legacy_exports]
309310
mod io;
310-
#[legacy_exports]
311311
mod libc;
312-
#[legacy_exports]
313312
mod os;
314313
#[legacy_exports]
315314
mod path;

src/libcore/core.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
// Export various ubiquitous types, constructors, methods.
44

5-
#[legacy_exports];
6-
75
use option::{Some, None};
86
use Option = option::Option;
97
use result::{Result, Ok, Err};

0 commit comments

Comments
 (0)