Skip to content

Commit 2f90112

Browse files
committed
auto merge of #5191 : brson/rust/movert, r=brson
Moving them out of the way so the new scheduler code can occupy core::rt.
2 parents 10faa52 + 9639ca5 commit 2f90112

File tree

5 files changed

+5
-11
lines changed

5 files changed

+5
-11
lines changed

src/libcore/cleanup.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ fn debug_mem() -> bool {
154154
#[cfg(notest)]
155155
#[lang="annihilate"]
156156
pub unsafe fn annihilate() {
157-
use rt::local_free;
157+
use unstable::lang::local_free;
158158
use io::WriterUtil;
159159
use io;
160160
use libc;

src/libcore/core.rc

-2
Original file line numberDiff line numberDiff line change
@@ -225,8 +225,6 @@ pub const debug : u32 = 4_u32;
225225

226226
/* Unsupported interfaces */
227227

228-
// The runtime interface used by the compiler
229-
#[cfg(notest)] pub mod rt;
230228
// Private APIs
231229
pub mod unstable;
232230
// NOTE: Remove after snapshot

src/libcore/task/local_data_priv.rs

+1-5
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,7 @@ use prelude::*;
1919
use task::rt;
2020
use task::local_data::LocalDataKey;
2121

22-
#[cfg(notest)]
23-
use rt::rust_task;
24-
#[cfg(test)]
25-
#[allow(non_camel_case_types)]
26-
type rust_task = libc::c_void;
22+
use super::rt::rust_task;
2723

2824
pub trait LocalData { }
2925
impl<T:Durable> LocalData for @T { }

src/libcore/unstable.rs

+3
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ pub mod exchange_alloc;
3636
pub mod intrinsics;
3737
#[path = "unstable/extfmt.rs"]
3838
pub mod extfmt;
39+
#[path = "unstable/lang.rs"]
40+
#[cfg(notest)]
41+
pub mod lang;
3942

4043
extern mod rustrt {
4144
pub unsafe fn rust_create_little_lock() -> rust_little_lock;

src/libcore/rt.rs renamed to src/libcore/unstable/lang.rs

-3
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@ use cast::transmute;
2020

2121
use gc::{cleanup_stack_for_failure, gc, Word};
2222

23-
#[allow(non_camel_case_types)]
24-
pub type rust_task = c_void;
25-
2623
#[cfg(target_word_size = "32")]
2724
pub const FROZEN_BIT: uint = 0x80000000;
2825
#[cfg(target_word_size = "64")]

0 commit comments

Comments
 (0)