core: Move core::rt to core::unstable::lang
This commit is contained in:
parent
bcf626812b
commit
9639ca5aa8
src/libcore
@ -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;
|
||||
|
@ -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
|
||||
|
@ -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 { }
|
||||
|
@ -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;
|
||||
|
@ -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")]
|
Loading…
x
Reference in New Issue
Block a user