diff options
| author | James Miller <james@aatch.net> | 2013-06-20 17:15:50 +1200 |
|---|---|---|
| committer | James Miller <bladeon@gmail.com> | 2013-06-21 02:43:02 +1200 |
| commit | 3bc4d1a1206ad5f4bb31475e17fc18ecf855ed8e (patch) | |
| tree | 3cec5e46a4f4a7b7b689f75b56e18ebc3f966bb4 /src/rt/rust_builtin.cpp | |
| parent | 6759ce4fd2083595193c93c3fd72383d24a73a5e (diff) | |
| download | rust-3bc4d1a1206ad5f4bb31475e17fc18ecf855ed8e.tar.gz rust-3bc4d1a1206ad5f4bb31475e17fc18ecf855ed8e.zip | |
Remove all #[cfg(stage0)]-protected code
New snapshot means this can all go. Also removes places that have comments that say they are workarounds for stage0 errors.
Diffstat (limited to 'src/rt/rust_builtin.cpp')
| -rw-r--r-- | src/rt/rust_builtin.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/rt/rust_builtin.cpp b/src/rt/rust_builtin.cpp index 3bd5e09e007..e476fa0ad5e 100644 --- a/src/rt/rust_builtin.cpp +++ b/src/rt/rust_builtin.cpp @@ -732,17 +732,10 @@ rust_task_deref(rust_task *task) { // Must call on rust stack. extern "C" CDECL void rust_call_tydesc_glue(void *root, size_t *tydesc, size_t glue_index) { -#ifdef _RUST_STAGE0 - void (*glue_fn)(void *, void *, void *, void *) = - (void (*)(void *, void *, void *, void *))tydesc[glue_index]; - if (glue_fn) - glue_fn(0, 0, 0, root); -#else void (*glue_fn)(void *, void *, void *) = (void (*)(void *, void *, void *))tydesc[glue_index]; if (glue_fn) glue_fn(0, 0, root); -#endif } // Don't run on the Rust stack! @@ -762,11 +755,7 @@ public: virtual void run() { record_sp_limit(0); -#ifdef _RUST_STAGE0 - fn.f(NULL, fn.env, NULL); -#else fn.f(fn.env, NULL); -#endif } }; |
