Skip to content

Commit 3ffaf57

Browse files
committed
Rust: fix Meta missing post_emit! implementation
1 parent d303a2c commit 3ffaf57

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Cargo.lock

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rust/extractor/src/translate/base.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@ impl From<crate::trap::Label<generated::ExternItem>> for crate::trap::Label<gene
6464
}
6565
#[macro_export]
6666
macro_rules! post_emit {
67+
(Meta, $self:ident, $node:ident, $label:ident) => {
68+
$self.macro_context_depth -= 1;
69+
};
6770
(MacroCall, $self:ident, $node:ident, $label:ident) => {
6871
$self.extract_macro_call_expanded($node, $label);
6972
};

0 commit comments

Comments
 (0)