@@ -78,9 +78,9 @@ bar!();
78
78
79
79
macro_rules! foo {
80
80
( $( $outer:ident ( $( $inner:ident ),* ) ; )* ) => {
81
- println!("count(outer, 0): $outer repeats {} times", ${count(outer)});
82
- println!("count(inner, 0): The $inner repetition repeats {} times in the outer repetition", ${count(inner, 0)});
83
- println!("count(inner, 1): $inner repeats {} times in the inner repetitions", ${count(inner, 1)});
81
+ println!("count(outer, 0): $outer repeats {} times", ${count($ outer)});
82
+ println!("count(inner, 0): The $inner repetition repeats {} times in the outer repetition", ${count($ inner, 0)});
83
+ println!("count(inner, 1): $inner repeats {} times in the inner repetitions", ${count($ inner, 1)});
84
84
};
85
85
}
86
86
@@ -145,8 +145,8 @@ macro_rules! lets_count {
145
145
$(
146
146
println!(
147
147
"'{}' in inner iteration {}/{} with '{}' in outer iteration {}/{} ",
148
- stringify!($inner), ${index()}, ${length ()},
149
- stringify!($outer), ${index(1)}, ${length (1)},
148
+ stringify!($inner), ${index()}, ${len ()},
149
+ stringify!($outer), ${index(1)}, ${len (1)},
150
150
);
151
151
)*
152
152
)*
@@ -178,7 +178,7 @@ macro_rules! repetition_tuples {
178
178
(
179
179
${index()},
180
180
${index(1)}
181
- ${ignore(inner)} // without this metavariable expression, compilation would fail
181
+ ${ignore($ inner)} // without this metavariable expression, compilation would fail
182
182
),
183
183
)*
184
184
)*)
0 commit comments