-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rust: introduce Unextracted
and Missing
"marker" classes
#17479
Conversation
Note that this will probably interact with #17465 (i.e. whichever is merged first, the other may need to be updated). |
Actually, I'm not entirely sure these PRs will really interact: I think #17465 can keep on referencing the specific subclasses ( |
@@ -43,6 +43,7 @@ | |||
import codeql.rust.elements.MatchArm | |||
import codeql.rust.elements.MatchExpr | |||
import codeql.rust.elements.MethodCallExpr | |||
import codeql.rust.elements.Missing |
Check warning
Code scanning / CodeQL
Redundant import Warning
codeql.rust.elements.MissingExpr
Redundant import, the module is already imported inside
codeql.rust.elements.MissingPat
@@ -70,6 +71,7 @@ | |||
import codeql.rust.elements.TupleStructPat | |||
import codeql.rust.elements.TypeRef | |||
import codeql.rust.elements.UnderscoreExpr | |||
import codeql.rust.elements.Unextracted |
Check warning
Code scanning / CodeQL
Redundant import Warning
codeql.rust.elements.Missing
Redundant import, the module is already imported inside
codeql.rust.elements.Unimplemented
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
This introduces
Missing
as a superclass ofMissingExpr
andMissingPat
, andUnextracted
as a superclass of bothMissing
andUnimplemented
. This should allow us to run more precise metrics about what we consider as properly extracted, by excludingUnextracted
.