Skip to content

Conversation

@hvitved
Copy link
Contributor

@hvitved hvitved commented Nov 4, 2025

Partially reverts #20295.

@github-actions github-actions bot added the Rust Pull requests that update Rust code label Nov 4, 2025

Check warning

Code scanning / CodeQL

Redundant import Warning

Redundant import, the module is already imported inside
codeql.rust.elements.MethodCallExpr
.
Redundant import, the module is already imported inside
codeql.rust.elements.PathAstNode
.
Comment on lines +9 to +11
/**
* One of `PathExpr`, `RecordExpr`, `PathPat`, `RecordPat`, `TupleStructPat` or `MethodCallExpr`.
*/

Check warning

Code scanning / CodeQL

Class QLDoc style. Warning

The QLDoc for a class should start with 'A', 'An', or 'The'.
Comment on lines +15 to +17
/**
* One of `PathExpr`, `RecordExpr`, `PathPat`, `RecordPat`, `TupleStructPat` or `MethodCallExpr`.
*/

Check warning

Code scanning / CodeQL

Class QLDoc style. Warning

The QLDoc for a class should start with 'A', 'An', or 'The'.
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

This predicate starts with 'get' but does not return a value.
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

This predicate starts with 'get' but does not return a value.
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

This predicate starts with 'get' but does not return a value.

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

This predicate starts with 'get' but does not return a value.
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

This predicate starts with 'get' but does not return a value.

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

This predicate starts with 'get' but does not return a value.
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

This predicate starts with 'get' but does not return a value.
@hvitved hvitved force-pushed the rust/extractor-resolution-experiment branch from c642695 to ec8d5f0 Compare November 4, 2025 11:10
@hvitved hvitved force-pushed the rust/extractor-resolution-experiment branch from ec8d5f0 to d184eb4 Compare November 4, 2025 12:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Rust Pull requests that update Rust code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant