mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-10 19:16:51 +00:00
Fix fallout.
This commit is contained in:
parent
57c56dd7e0
commit
337236870d
@ -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() {
|
||||
|
@ -57,7 +57,7 @@ macro_rules! down_cast_data {
|
||||
data
|
||||
} else {
|
||||
span_bug!($sp, "unexpected data kind: {:?}", $id);
|
||||
}
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -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 )
|
||||
}
|
||||
|
||||
|
@ -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),*);
|
||||
|
Loading…
Reference in New Issue
Block a user