Skip to content

Commit 5ac017e

Browse files
committed
Type annotate repeats.
Because the type is not obvious, and this clarifies things.
1 parent ae7e328 commit 5ac017e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_expand/src/mbe/transcribe.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ pub(super) fn transcribe<'a>(
117117
// As we descend in the RHS, we will need to be able to match nested sequences of matchers.
118118
// `repeats` keeps track of where we are in matching at each level, with the last element being
119119
// the most deeply nested sequence. This is used as a stack.
120-
let mut repeats = Vec::new();
120+
let mut repeats: Vec<(usize, usize)> = Vec::new();
121121

122122
// `result` contains resulting token stream from the TokenTree we just finished processing. At
123123
// the end, this will contain the full result of transcription, but at arbitrary points during

0 commit comments

Comments
 (0)