Skip to content

Commit 4cdcd58

Browse files
committed
Only accept variable (no complex expression) in the fake for loop.
1 parent fc4a1cc commit 4cdcd58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

parser.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ impl Iterator<(ComponentValue, SourceLocation)> for ComponentValueIterator {
6464
// Work around "error: cannot borrow `*iter` as mutable more than once at a time"
6565
// when using a normal for loop.
6666
macro_rules! for_iter(
67-
($iter: expr, $pattern: pat, $loop_body: expr) => (
67+
($iter: ident, $pattern: pat, $loop_body: expr) => (
6868
loop {
6969
match $iter.next() { None => break, Some($pattern) => $loop_body }
7070
}

0 commit comments

Comments
 (0)