Eliminate some extraneous curly brackets inside invocations of macro_rules!.
This commit is contained in:
@@ -65,7 +65,7 @@ fn from_value<A>(+val: A) -> Future<A> {
|
||||
}
|
||||
|
||||
macro_rules! move_it (
|
||||
{$x:expr} => { unsafe { let y <- *ptr::addr_of($x); y } }
|
||||
($x:expr) => { unsafe { let y <- *ptr::addr_of($x); y } }
|
||||
)
|
||||
|
||||
fn from_port<A:send>(+port: future_pipe::client::waiting<A>) -> Future<A> {
|
||||
|
||||
@@ -1033,7 +1033,7 @@ fn kill_taskgroup(state: TaskGroupInner, me: *rust_task, is_main: bool) {
|
||||
// a proper closure because the #[test]s won't understand. Have to fake it.
|
||||
macro_rules! taskgroup_key (
|
||||
// Use a "code pointer" value that will never be a real code pointer.
|
||||
{} => (unsafe::transmute((-2 as uint, 0u)))
|
||||
() => (unsafe::transmute((-2 as uint, 0u)))
|
||||
)
|
||||
|
||||
fn gen_child_taskgroup(linked: bool, supervised: bool)
|
||||
|
||||
Reference in New Issue
Block a user