Fix fallout.

This commit is contained in:
Jeffrey Seyfried 2016-07-02 15:49:50 +00:00
parent 57c56dd7e0
commit 337236870d
4 changed files with 5 additions and 5 deletions

View File

@ -328,7 +328,7 @@ invocation site. Code such as the following will not work:
```rust,ignore
macro_rules! foo {
() => (let x = 3);
() => (let x = 3;);
}
fn main() {
@ -342,7 +342,7 @@ tagged with the right syntax context.
```rust
macro_rules! foo {
($v:ident) => (let $v = 3);
($v:ident) => (let $v = 3;);
}
fn main() {

View File

@ -57,7 +57,7 @@ macro_rules! down_cast_data {
data
} else {
span_bug!($sp, "unexpected data kind: {:?}", $id);
}
};
};
}

View File

@ -19,7 +19,7 @@ macro_rules! ignored_item {
}
macro_rules! ignored_expr {
() => ( 1, //~ ERROR expected expression, found `,`
() => ( 1, //~ ERROR expected one of `.`, `;`, `?`, `}`, or an operator, found `,`
2 )
}

View File

@ -113,7 +113,7 @@ fn main() {
// product macro
($from: ident $(, $from_: ident)*: $($to: ident),*) => {
fn $from() { unsafe { $( test!($from, $to); )* } }
tests!($($from_),*: $($to),*)
tests!($($from_),*: $($to),*);
};
($($types: ident),*) => {{
tests!($($types),* : $($types),*);