1
Fork 0

Store macro parent module in ExpnData.

This commit is contained in:
Camille GILLOT 2021-06-28 19:29:55 +02:00
parent 969a6c2481
commit 3162c37b59
7 changed files with 32 additions and 40 deletions

View file

@ -809,6 +809,7 @@ impl SyntaxExtension {
call_site: Span,
descr: Symbol,
macro_def_id: Option<DefId>,
parent_module: Option<DefId>,
) -> ExpnData {
use SyntaxExtensionKind::*;
let proc_macro = match self.kind {
@ -828,6 +829,7 @@ impl SyntaxExtension {
self.local_inner_macros,
self.edition,
macro_def_id,
parent_module,
)
}
}