mirror of
https://github.com/github/codeql.git
synced 2026-05-05 13:45:19 +02:00
Rust: fix canonical paths broken on StructExpr and StructPath
After the rename done in https://github.com/github/codeql/pull/19059, canonical path extraction was lost on `StructExpr` and `StructPath` as the identifiers used for the type in the `emit_detached!` macro were not updated. This fixes that.
This commit is contained in:
@@ -53,13 +53,13 @@ macro_rules! emit_detached {
|
||||
(PathExpr, $self:ident, $node:ident, $label:ident) => {
|
||||
$self.extract_path_canonical_destination(&$node, $label.into());
|
||||
};
|
||||
(RecordExpr, $self:ident, $node:ident, $label:ident) => {
|
||||
(StructExpr, $self:ident, $node:ident, $label:ident) => {
|
||||
$self.extract_path_canonical_destination(&$node, $label.into());
|
||||
};
|
||||
(PathPat, $self:ident, $node:ident, $label:ident) => {
|
||||
$self.extract_path_canonical_destination(&$node, $label.into());
|
||||
};
|
||||
(RecordPat, $self:ident, $node:ident, $label:ident) => {
|
||||
(StructPat, $self:ident, $node:ident, $label:ident) => {
|
||||
$self.extract_path_canonical_destination(&$node, $label.into());
|
||||
};
|
||||
(TupleStructPat, $self:ident, $node:ident, $label:ident) => {
|
||||
|
||||
Reference in New Issue
Block a user