mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
Rust: skip all token trees in library mode
This commit is contained in:
@@ -689,12 +689,7 @@ impl<'a> Translator<'a> {
|
||||
{
|
||||
return true;
|
||||
}
|
||||
if syntax
|
||||
.parent()
|
||||
.and_then(ast::MacroCall::cast)
|
||||
.and_then(|x| x.token_tree())
|
||||
.is_some_and(|tt| tt.syntax() == syntax)
|
||||
{
|
||||
if syntax.kind() == SyntaxKind::TOKEN_TREE {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user