mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Rust: fix Meta missing post_emit! implementation
This commit is contained in:
1
Cargo.lock
generated
1
Cargo.lock
generated
@@ -3449,4 +3449,3 @@ dependencies = [
|
|||||||
name = "rustc_apfloat"
|
name = "rustc_apfloat"
|
||||||
version = "0.2.2+llvm-462a31f5a5ab"
|
version = "0.2.2+llvm-462a31f5a5ab"
|
||||||
source = "git+https://github.com/redsun82/rustc_apfloat.git?rev=32968f16ef1b082243f9bf43a3fbd65c381b3e27#32968f16ef1b082243f9bf43a3fbd65c381b3e27"
|
source = "git+https://github.com/redsun82/rustc_apfloat.git?rev=32968f16ef1b082243f9bf43a3fbd65c381b3e27#32968f16ef1b082243f9bf43a3fbd65c381b3e27"
|
||||||
|
|
||||||
|
|||||||
@@ -64,6 +64,9 @@ impl From<crate::trap::Label<generated::ExternItem>> for crate::trap::Label<gene
|
|||||||
}
|
}
|
||||||
#[macro_export]
|
#[macro_export]
|
||||||
macro_rules! post_emit {
|
macro_rules! post_emit {
|
||||||
|
(Meta, $self:ident, $node:ident, $label:ident) => {
|
||||||
|
$self.macro_context_depth -= 1;
|
||||||
|
};
|
||||||
(MacroCall, $self:ident, $node:ident, $label:ident) => {
|
(MacroCall, $self:ident, $node:ident, $label:ident) => {
|
||||||
$self.extract_macro_call_expanded($node, $label);
|
$self.extract_macro_call_expanded($node, $label);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user