auto merge of #6323 : brson/rust/nullary, r=thestinger

There's no need to delegate to C to call the Rust main function.
This commit is contained in:
bors
2013-05-08 08:39:40 -07:00
3 changed files with 19 additions and 14 deletions

View File

@@ -829,13 +829,6 @@ rust_get_rt_env() {
return task->kernel->env;
}
typedef void *(*nullary_fn)();
extern "C" CDECL void
rust_call_nullary_fn(nullary_fn f) {
f();
}
#ifndef _WIN32
pthread_key_t sched_key;
#else