Snapshot cleanup
This commit is contained in:
parent
cafb7ed6f6
commit
da118e88d5
@ -12,7 +12,6 @@
|
||||
#[feature(phase)];
|
||||
|
||||
#[allow(non_camel_case_types)];
|
||||
#[allow(deprecated_owned_vector)]; // NOTE: remove after stage0
|
||||
#[deny(warnings)];
|
||||
|
||||
extern crate test;
|
||||
|
@ -14,9 +14,4 @@ extern crate this = "rustdoc";
|
||||
#[cfg(rustc)]
|
||||
extern crate this = "rustc";
|
||||
|
||||
#[cfg(not(stage0))]
|
||||
fn main() { this::main() }
|
||||
|
||||
#[cfg(stage0)]
|
||||
#[start]
|
||||
fn start(argc: int, argv: **u8) -> int { native::start(argc, argv, this::main) }
|
||||
|
@ -207,16 +207,6 @@ pub mod sleeper_list;
|
||||
pub mod stack;
|
||||
pub mod task;
|
||||
|
||||
#[lang = "start"]
|
||||
#[cfg(not(test), stage0)]
|
||||
pub fn lang_start(main: *u8, argc: int, argv: **u8) -> int {
|
||||
use std::cast;
|
||||
start(argc, argv, proc() {
|
||||
let main: extern "Rust" fn() = unsafe { cast::transmute(main) };
|
||||
main();
|
||||
})
|
||||
}
|
||||
|
||||
/// Set up a default runtime configuration, given compiler-supplied arguments.
|
||||
///
|
||||
/// This function will block until the entire pool of M:N schedulers have
|
||||
|
@ -69,7 +69,7 @@ static OS_DEFAULT_STACK_ESTIMATE: uint = 1 << 20;
|
||||
static OS_DEFAULT_STACK_ESTIMATE: uint = 2 * (1 << 20);
|
||||
|
||||
#[lang = "start"]
|
||||
#[cfg(not(test), not(stage0))]
|
||||
#[cfg(not(test))]
|
||||
pub fn lang_start(main: *u8, argc: int, argv: **u8) -> int {
|
||||
use std::cast;
|
||||
start(argc, argv, proc() {
|
||||
|
@ -164,7 +164,6 @@ pub trait TyVisitor {
|
||||
fn visit_self(&mut self) -> bool;
|
||||
}
|
||||
|
||||
|
||||
extern "rust-intrinsic" {
|
||||
|
||||
// NB: These intrinsics take unsafe pointers because they mutate aliased
|
||||
|
Loading…
x
Reference in New Issue
Block a user