-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Rust [EXPERIMENT]: Reintroduce extractor resolution #20753
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
base: main
Are you sure you want to change the base?
Conversation
rust/ql/lib/codeql/rust/elements.qll
Outdated
Check warning
Code scanning / CodeQL
Redundant import Warning
codeql.rust.elements.MethodCallExpr
Redundant import, the module is already imported inside
codeql.rust.elements.PathAstNode
| /** | ||
| * One of `PathExpr`, `RecordExpr`, `PathPat`, `RecordPat`, `TupleStructPat` or `MethodCallExpr`. | ||
| */ |
Check warning
Code scanning / CodeQL
Class QLDoc style. Warning
| /** | ||
| * One of `PathExpr`, `RecordExpr`, `PathPat`, `RecordPat`, `TupleStructPat` or `MethodCallExpr`. | ||
| */ |
Check warning
Code scanning / CodeQL
Class QLDoc style. Warning
| toBeTested(x) and not x.isUnknown() and getArg = x.getArg(index) | ||
| } | ||
|
|
||
| query predicate getResolvedPath(MethodCallExpr x, string getResolvedPath) { |
Check warning
Code scanning / CodeQL
Predicates starting with "get" or "as" should return a value Warning generated test
| toBeTested(x) and not x.isUnknown() and getResolvedPath = x.getResolvedPath() | ||
| } | ||
|
|
||
| query predicate getResolvedCrateOrigin(MethodCallExpr x, string getResolvedCrateOrigin) { |
Check warning
Code scanning / CodeQL
Predicates starting with "get" or "as" should return a value Warning generated test
| toBeTested(x) and not x.isUnknown() and getResolvedPath = x.getResolvedPath() | ||
| } | ||
|
|
||
| query predicate getResolvedCrateOrigin(StructExpr x, string getResolvedCrateOrigin) { |
Check warning
Code scanning / CodeQL
Predicates starting with "get" or "as" should return a value Warning generated test
|
|
||
| query predicate instances(StructPat x) { toBeTested(x) and not x.isUnknown() } | ||
|
|
||
| query predicate getResolvedPath(StructPat x, string getResolvedPath) { |
Check warning
Code scanning / CodeQL
Predicates starting with "get" or "as" should return a value Warning generated test
| toBeTested(x) and not x.isUnknown() and getResolvedPath = x.getResolvedPath() | ||
| } | ||
|
|
||
| query predicate getResolvedCrateOrigin(StructPat x, string getResolvedCrateOrigin) { |
Check warning
Code scanning / CodeQL
Predicates starting with "get" or "as" should return a value Warning generated test
|
|
||
| query predicate instances(TupleStructPat x) { toBeTested(x) and not x.isUnknown() } | ||
|
|
||
| query predicate getResolvedPath(TupleStructPat x, string getResolvedPath) { |
Check warning
Code scanning / CodeQL
Predicates starting with "get" or "as" should return a value Warning generated test
| toBeTested(x) and not x.isUnknown() and getResolvedPath = x.getResolvedPath() | ||
| } | ||
|
|
||
| query predicate getResolvedCrateOrigin(TupleStructPat x, string getResolvedCrateOrigin) { |
Check warning
Code scanning / CodeQL
Predicates starting with "get" or "as" should return a value Warning generated test
096b7ac to
6683098
Compare
6683098 to
ae1dffa
Compare
Partially reverts #20295.