Skip to content

Commit

Permalink
Type annotate repeats.
Browse files Browse the repository at this point in the history
Because the type is not obvious, and this clarifies things.
  • Loading branch information
nnethercote committed May 2, 2024
1 parent ae7e328 commit 5ac017e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_expand/src/mbe/transcribe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ pub(super) fn transcribe<'a>(
// As we descend in the RHS, we will need to be able to match nested sequences of matchers.
// `repeats` keeps track of where we are in matching at each level, with the last element being
// the most deeply nested sequence. This is used as a stack.
let mut repeats = Vec::new();
let mut repeats: Vec<(usize, usize)> = Vec::new();

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

0 comments on commit 5ac017e

Please sign in to comment.