We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8786405 commit 768b96eCopy full SHA for 768b96e
src/libgreen/context.rs
@@ -9,8 +9,7 @@
9
// except according to those terms.
10
11
use std::uint;
12
-use std::cast::{transmute, transmute_mut_unsafe,
13
- transmute_region, transmute_mut_region};
+use std::cast::{transmute, transmute_mut_unsafe};
14
use stack::Stack;
15
use std::rt::stack;
16
use std::raw;
@@ -55,10 +54,6 @@ impl Context {
55
54
// Save and then immediately load the current context,
56
// which we will then modify to call the given function when restored
57
let mut regs = new_regs();
58
- unsafe {
59
- rust_swap_registers(transmute_mut_region(&mut *regs),
60
- transmute_region(&*regs));
61
- };
62
63
initialize_call_frame(&mut *regs,
64
init,
0 commit comments