Snapshot cleanup

This commit is contained in:
Alex Crichton 2014-03-22 07:53:15 -07:00
parent cafb7ed6f6
commit da118e88d5
5 changed files with 1 additions and 18 deletions

View File

@ -12,7 +12,6 @@
#[feature(phase)];
#[allow(non_camel_case_types)];
#[allow(deprecated_owned_vector)]; // NOTE: remove after stage0
#[deny(warnings)];
extern crate test;

View File

@ -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) }

View File

@ -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

View File

@ -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() {

View File

@ -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