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.
ParseNtResult
1 parent bb430f8 commit fc41c38Copy full SHA for fc41c38
compiler/rustc_expand/src/mbe/transcribe.rs
@@ -380,6 +380,14 @@ fn transcribe_metavar<'tx>(
380
return Err(dcx.create_err(MacroVarStillRepeating { span: sp, ident }));
381
};
382
383
+ transcribe_pnr(tscx, sp, pnr)
384
+}
385
+
386
+fn transcribe_pnr<'tx>(
387
+ tscx: &mut TranscrCtx<'tx, '_>,
388
+ mut sp: Span,
389
+ pnr: &ParseNtResult,
390
+) -> PResult<'tx, ()> {
391
// We wrap the tokens in invisible delimiters, unless they are already wrapped
392
// in invisible delimiters with the same `MetaVarKind`. Because some proc
393
// macros can't handle multiple layers of invisible delimiters of the same
0 commit comments