remove all kind annotations from closures
This commit is contained in:
@@ -246,7 +246,7 @@ impl Builder {
|
||||
{
|
||||
let my_packet = Packet(Arc::new(UnsafeCell::new(None)));
|
||||
let their_packet = Packet(my_packet.0.clone());
|
||||
let (native, thread) = self.spawn_inner(Thunk::new(f), Thunk::with_arg(move |: ret| unsafe {
|
||||
let (native, thread) = self.spawn_inner(Thunk::new(f), Thunk::with_arg(move |ret| unsafe {
|
||||
*their_packet.0.get() = Some(ret);
|
||||
}));
|
||||
|
||||
@@ -273,7 +273,7 @@ impl Builder {
|
||||
// because by the time that this function is executing we've already
|
||||
// consumed at least a little bit of stack (we don't know the exact byte
|
||||
// address at which our stack started).
|
||||
let main = move |:| {
|
||||
let main = move || {
|
||||
let something_around_the_top_of_the_stack = 1;
|
||||
let addr = &something_around_the_top_of_the_stack as *const int;
|
||||
let my_stack_top = addr as uint;
|
||||
@@ -289,7 +289,7 @@ impl Builder {
|
||||
|
||||
let mut output = None;
|
||||
let f: Thunk<(), T> = if stdout.is_some() || stderr.is_some() {
|
||||
Thunk::new(move |:| {
|
||||
Thunk::new(move || {
|
||||
let _ = stdout.map(stdio::set_stdout);
|
||||
let _ = stderr.map(stdio::set_stderr);
|
||||
f.invoke(())
|
||||
|
||||
Reference in New Issue
Block a user