Skip to content

Commit bfc5e10

Browse files
committed
---
yaml --- r: 162427 b: refs/heads/try c: 40c78ab h: refs/heads/master i: 162425: a7a6441 162423: 6b0294b v: v3
1 parent acf1faf commit bfc5e10

File tree

29 files changed

+48
-350
lines changed

29 files changed

+48
-350
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
refs/heads/master: 9146a919b616e39e528e4d7100d16eef52f1f852
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: cafe2966770ff377aad6dd9fd808e68055587c58
5-
refs/heads/try: a68ec98166bf638c6cbf4036f51036012695718d
5+
refs/heads/try: 40c78ab037c70d61eb4f8c95c7a4fec8f098644b
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
88
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596

branches/try/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 \

branches/try/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
| ------------------- | --------------------------------------------------------- |

branches/try/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

branches/try/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

branches/try/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;

branches/try/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

branches/try/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

branches/try/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

branches/try/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)]

branches/try/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::*;

branches/try/src/libstd/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,6 @@
117117

118118
#![reexport_test_harness_main = "test_main"]
119119

120-
#[cfg(test)] extern crate green;
121120
#[cfg(test)] #[phase(plugin, link)] extern crate log;
122121

123122
extern crate alloc;

branches/try/src/libstd/rt/mod.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,17 +58,17 @@ Several modules in `core` are clients of `rt`:
5858

5959
use failure;
6060
use rustrt;
61-
use startup;
61+
use os;
6262

6363
// Reexport some of our utilities which are expected by other crates.
6464
pub use self::util::{default_sched_threads, min_stack, running_on_valgrind};
6565

6666
// Reexport functionality from librustrt and other crates underneath the
6767
// standard library which work together to create the entire runtime.
6868
pub use alloc::heap;
69-
pub use rustrt::{task, local, mutex, exclusive, stack, args, rtio, thread};
69+
pub use rustrt::{task, local, mutex, exclusive, stack, args, thread};
7070
pub use rustrt::{Stdio, Stdout, Stderr, begin_unwind, begin_unwind_fmt};
71-
pub use rustrt::{bookkeeping, at_exit, unwind, DEFAULT_ERROR_CODE, Runtime};
71+
pub use rustrt::{at_exit, unwind, DEFAULT_ERROR_CODE};
7272

7373
// Simple backtrace functionality (to print on panic)
7474
pub mod backtrace;
@@ -95,7 +95,7 @@ static OS_DEFAULT_STACK_ESTIMATE: uint = 2 * (1 << 20);
9595
#[cfg(not(test))]
9696
#[lang = "start"]
9797
fn lang_start(main: *const u8, argc: int, argv: *const *const u8) -> int {
98-
use std::mem;
98+
use mem;
9999
start(argc, argv, proc() {
100100
let main: extern "Rust" fn() = unsafe { mem::transmute(main) };
101101
main();
@@ -147,8 +147,8 @@ pub fn start(argc: int, argv: *const *const u8, main: proc()) -> int {
147147
init(argc, argv);
148148
let mut exit_code = None;
149149
let mut main = Some(main);
150-
let mut task = task::new((my_stack_bottom, my_stack_top),
151-
rt::thread::main_guard_page());
150+
let mut task = Task::new(Some((my_stack_bottom, my_stack_top)),
151+
Some(rt::thread::main_guard_page()));
152152
task.name = Some(str::Slice("<main>"));
153153
drop(task.run(|| {
154154
unsafe {

branches/try/src/libstd/sys/common/helper_thread.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
//! time.
2222
2323
use mem;
24-
use rt::bookkeeping;
24+
use rustrt::bookkeeping;
2525
use rt::mutex::StaticNativeMutex;
2626
use rt;
2727
use cell::UnsafeCell;

0 commit comments

Comments
 (0)