auto merge of #5191 : brson/rust/movert, r=brson

Moving them out of the way so the new scheduler code can occupy core::rt.
This commit is contained in:
bors 2013-03-02 02:09:38 -08:00
commit 2f901126d4
5 changed files with 5 additions and 11 deletions

View file

@ -154,7 +154,7 @@ fn debug_mem() -> bool {
#[cfg(notest)]
#[lang="annihilate"]
pub unsafe fn annihilate() {
use rt::local_free;
use unstable::lang::local_free;
use io::WriterUtil;
use io;
use libc;

View file

@ -225,8 +225,6 @@ pub const debug : u32 = 4_u32;
/* Unsupported interfaces */
// The runtime interface used by the compiler
#[cfg(notest)] pub mod rt;
// Private APIs
pub mod unstable;
// NOTE: Remove after snapshot

View file

@ -19,11 +19,7 @@ use prelude::*;
use task::rt;
use task::local_data::LocalDataKey;
#[cfg(notest)]
use rt::rust_task;
#[cfg(test)]
#[allow(non_camel_case_types)]
type rust_task = libc::c_void;
use super::rt::rust_task;
pub trait LocalData { }
impl<T:Durable> LocalData for @T { }

View file

@ -36,6 +36,9 @@ pub mod exchange_alloc;
pub mod intrinsics;
#[path = "unstable/extfmt.rs"]
pub mod extfmt;
#[path = "unstable/lang.rs"]
#[cfg(notest)]
pub mod lang;
extern mod rustrt {
pub unsafe fn rust_create_little_lock() -> rust_little_lock;

View file

@ -20,9 +20,6 @@ use cast::transmute;
use gc::{cleanup_stack_for_failure, gc, Word};
#[allow(non_camel_case_types)]
pub type rust_task = c_void;
#[cfg(target_word_size = "32")]
pub const FROZEN_BIT: uint = 0x80000000;
#[cfg(target_word_size = "64")]