diff options
| author | Tom Lee <github@tomlee.co> | 2013-05-21 23:17:04 -0700 |
|---|---|---|
| committer | Tom Lee <github@tomlee.co> | 2013-05-27 17:13:01 -0700 |
| commit | 67283eaad2f53e19ae963e2b0a04b65826568336 (patch) | |
| tree | 4224fafe84f9b4c22b032acddbcd9490149a5229 /src/rt/rust_builtin.cpp | |
| parent | dbc57584bd4e87f0bd3eed6bced8bbd04d99edcf (diff) | |
| download | rust-67283eaad2f53e19ae963e2b0a04b65826568336.tar.gz rust-67283eaad2f53e19ae963e2b0a04b65826568336.zip | |
Omit unused implicit argument if return type is immediate.
Diffstat (limited to 'src/rt/rust_builtin.cpp')
| -rw-r--r-- | src/rt/rust_builtin.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/rt/rust_builtin.cpp b/src/rt/rust_builtin.cpp index a2f253550af..99fd46737e0 100644 --- a/src/rt/rust_builtin.cpp +++ b/src/rt/rust_builtin.cpp @@ -731,10 +731,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) { - void (*glue_fn)(void *, void *, void *, void *) = - (void (*)(void *, void *, void *, void *))tydesc[glue_index]; + void (*glue_fn)(void *, void *, void *) = + (void (*)(void *, void *, void *))tydesc[glue_index]; if (glue_fn) - glue_fn(0, 0, 0, root); + glue_fn(0, 0, root); } // Don't run on the Rust stack! @@ -754,7 +754,7 @@ public: virtual void run() { record_sp_limit(0); - fn.f(NULL, fn.env, NULL); + fn.f(fn.env, NULL); } }; |
