We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4ba6096 commit edd7f2cCopy full SHA for edd7f2c
compiler/rustc_expand/src/mbe/macro_parser.rs
@@ -211,6 +211,10 @@ struct MatcherPos {
211
/// with one element per metavar decl in the matcher. Each element records token trees matched
212
/// against the relevant metavar by the black box parser. An element will be a `MatchedSeq` if
213
/// the corresponding metavar decl is within a sequence.
214
+ ///
215
+ /// It is critical to performance that this is an `Lrc`, because it gets cloned frequently when
216
+ /// processing sequences. Mostly for sequence-ending possibilities that must be tried but end
217
+ /// up failing.
218
matches: Lrc<Vec<NamedMatch>>,
219
}
220
0 commit comments