We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d72fab commit 58680c9Copy full SHA for 58680c9
rust/ql/src/queries/security/CWE-696/BadCtorInitialization.ql
@@ -32,8 +32,7 @@ class CtorAttr extends Attr {
32
*/
33
class StdCall extends Expr {
34
StdCall() {
35
- this.(CallExpr).getFunction().(PathExpr).getResolvedCrateOrigin() = "lang:std" or
36
- this.(MethodCallExpr).getResolvedCrateOrigin() = "lang:std"
+ this.(CallExprBase).getStaticTarget().getCanonicalPath().matches(["std::%", "<std::%"])
37
}
38
39
0 commit comments