We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
MatcherPos
1 parent 11c565f commit b9fabc3Copy full SHA for b9fabc3
compiler/rustc_expand/src/mbe/macro_parser.rs
@@ -207,6 +207,10 @@ struct MatcherPos<'root, 'tt> {
207
stack: SmallVec<[MatcherTtFrame<'tt>; 1]>,
208
}
209
210
+// This type is used a lot. Make sure it doesn't unintentionally get bigger.
211
+#[cfg(all(target_arch = "x86_64", target_pointer_width = "64"))]
212
+rustc_data_structures::static_assert_size!(MatcherPos<'_, '_>, 192);
213
+
214
impl<'root, 'tt> MatcherPos<'root, 'tt> {
215
/// Adds `m` as a named match for the `idx`-th metavar.
216
fn push_match(&mut self, idx: usize, m: NamedMatch) {
0 commit comments