Skip to content

Commit 3372368

Browse files
committed
Fix fallout.
1 parent 57c56dd commit 3372368

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

src/doc/book/macros.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ invocation site. Code such as the following will not work:
328328

329329
```rust,ignore
330330
macro_rules! foo {
331-
() => (let x = 3);
331+
() => (let x = 3;);
332332
}
333333
334334
fn main() {
@@ -342,7 +342,7 @@ tagged with the right syntax context.
342342

343343
```rust
344344
macro_rules! foo {
345-
($v:ident) => (let $v = 3);
345+
($v:ident) => (let $v = 3;);
346346
}
347347

348348
fn main() {

src/librustc_save_analysis/dump_visitor.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ macro_rules! down_cast_data {
5757
data
5858
} else {
5959
span_bug!($sp, "unexpected data kind: {:?}", $id);
60-
}
60+
};
6161
};
6262
}
6363

src/test/compile-fail/macro-incomplete-parse.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ macro_rules! ignored_item {
1919
}
2020

2121
macro_rules! ignored_expr {
22-
() => ( 1, //~ ERROR expected expression, found `,`
22+
() => ( 1, //~ ERROR expected one of `.`, `;`, `?`, `}`, or an operator, found `,`
2323
2 )
2424
}
2525

src/test/run-pass/simd-intrinsic-generic-cast.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ fn main() {
113113
// product macro
114114
($from: ident $(, $from_: ident)*: $($to: ident),*) => {
115115
fn $from() { unsafe { $( test!($from, $to); )* } }
116-
tests!($($from_),*: $($to),*)
116+
tests!($($from_),*: $($to),*);
117117
};
118118
($($types: ident),*) => {{
119119
tests!($($types),* : $($types),*);

0 commit comments

Comments
 (0)