Skip to content

Commit 40c78ab

Browse files
committed
Fallout from libgreen and libnative removal
1 parent a68ec98 commit 40c78ab

File tree

28 files changed

+47
-349
lines changed

28 files changed

+47
-349
lines changed

mk/crates.mk

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
#
3838
# DEPS_<crate>
3939
# These lists are the dependencies of the <crate> that is to be built.
40-
# Rust dependencies are listed bare (i.e. std, green) and native
40+
# Rust dependencies are listed bare (i.e. std) and native
4141
# dependencies have a "native:" prefix (i.e. native:hoedown). All deps
4242
# will be built before the crate itself is built.
4343
#
@@ -49,7 +49,7 @@
4949
# automatically generated for all stage/host/target combinations.
5050
################################################################################
5151

52-
TARGET_CRATES := libc std green flate arena term \
52+
TARGET_CRATES := libc std flate arena term \
5353
serialize sync getopts collections test time rand \
5454
log regex graphviz core rbml alloc rustrt \
5555
unicode
@@ -66,7 +66,6 @@ DEPS_rustrt := alloc core libc collections native:rustrt_native
6666
DEPS_std := core libc rand alloc collections rustrt sync unicode \
6767
native:rust_builtin native:backtrace
6868
DEPS_graphviz := std
69-
DEPS_green := std native:context_switch
7069
DEPS_syntax := std term serialize log fmt_macros arena libc
7170
DEPS_rustc_trans := rustc rustc_back rustc_llvm libc
7271
DEPS_rustc := syntax flate arena serialize getopts rbml \

src/README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ Source layout:
99
| `libcore/` | The Rust core library |
1010
| `libdebug/` | Debugging utilities |
1111
| `libstd/` | The standard library (imported and linked by default) |
12-
| `libgreen/` | The M:N runtime library |
13-
| `libnative/` | The 1:1 runtime library |
1412
| `libsyntax/` | The Rust parser and pretty-printer |
1513
| `libtest/` | Rust's test-runner code |
1614
| ------------------- | --------------------------------------------------------- |

src/doc/reference.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -999,14 +999,14 @@ An example of what will and will not work for `use` items:
999999

10001000
```
10011001
# #![allow(unused_imports)]
1002-
use foo::native::start; // good: foo is at the root of the crate
1002+
use foo::core::iter; // good: foo is at the root of the crate
10031003
use foo::baz::foobaz; // good: foo is at the root of the crate
10041004
10051005
mod foo {
1006-
extern crate native;
1006+
extern crate core;
10071007
1008-
use foo::native::start; // good: foo is at crate root
1009-
// use native::start; // bad: native is not at the crate root
1008+
use foo::core::iter; // good: foo is at crate root
1009+
// use core::iter; // bad: native is not at the crate root
10101010
use self::baz::foobaz; // good: self refers to module 'foo'
10111011
use foo::bar::foobar; // good: foo is at crate root
10121012

src/liballoc/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ extern crate libc;
7373

7474
// Allow testing this library
7575

76-
#[cfg(test)] extern crate native;
7776
#[cfg(test)] #[phase(plugin, link)] extern crate std;
7877
#[cfg(test)] #[phase(plugin, link)] extern crate log;
7978

src/libcollections/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
extern crate unicode;
3232
extern crate alloc;
3333

34-
#[cfg(test)] extern crate native;
3534
#[cfg(test)] extern crate test;
3635

3736
#[cfg(test)] #[phase(plugin, link)] extern crate std;

src/liblibc/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ extern crate core;
8383

8484
#[cfg(test)] extern crate std;
8585
#[cfg(test)] extern crate test;
86-
#[cfg(test)] extern crate native;
8786

8887
pub use self::Nullable::*;
8988

src/librand/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ extern crate core;
3333

3434
#[cfg(test)] #[phase(plugin, link)] extern crate std;
3535
#[cfg(test)] #[phase(plugin, link)] extern crate log;
36-
#[cfg(test)] extern crate native;
3736

3837
use core::prelude::*;
3938

src/librustrt/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ extern crate collections;
3030

3131
#[cfg(test)] extern crate "rustrt" as realrustrt;
3232
#[cfg(test)] extern crate test;
33-
#[cfg(test)] extern crate native;
3433

3534
#[cfg(test)] #[phase(plugin, link)] extern crate std;
3635

src/librustrt/stack_overflow.rs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -65,14 +65,7 @@ pub unsafe fn report() {
6565
#[cfg(any(windows, target_os = "linux", target_os = "macos"))]
6666
unsafe fn get_task_guard_page() -> Option<uint> {
6767
let task: Option<*mut Task> = Local::try_unsafe_borrow();
68-
69-
task.map(|task| {
70-
let runtime = (*task).take_runtime();
71-
let guard = runtime.stack_guard();
72-
(*task).put_runtime(runtime);
73-
74-
guard.unwrap_or(0)
75-
})
68+
task.map(|task| (&*task).stack_guard().unwrap_or(0))
7669
}
7770

7871
#[cfg(windows)]

src/libstd/io/process.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -740,8 +740,6 @@ impl Drop for Process {
740740
mod tests {
741741
#![allow(unused_imports)]
742742

743-
extern crate native;
744-
745743
use super::*;
746744
use prelude::*;
747745
use io::timer::*;

0 commit comments

Comments
 (0)