Store macro parent module in ExpnData.
This commit is contained in:
parent
969a6c2481
commit
3162c37b59
7 changed files with 32 additions and 40 deletions
|
@ -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,
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue