Skip to content

Commit

Permalink
Snapshot cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcrichton committed Mar 23, 2014
1 parent cafb7ed commit da118e8
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 18 deletions.
1 change: 0 additions & 1 deletion src/compiletest/compiletest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
#[feature(phase)];

#[allow(non_camel_case_types)];
#[allow(deprecated_owned_vector)]; // NOTE: remove after stage0
#[deny(warnings)];

extern crate test;
Expand Down
5 changes: 0 additions & 5 deletions src/driver/driver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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) }
10 changes: 0 additions & 10 deletions src/libgreen/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/libnative/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
1 change: 0 additions & 1 deletion src/libstd/intrinsics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit da118e8

Please sign in to comment.