Skip to content

Conversation

@hvitved
Copy link
Contributor

@hvitved hvitved commented Nov 18, 2025

No description provided.

@github-actions github-actions bot added the Rust Pull requests that update Rust code label Nov 18, 2025
@hvitved hvitved force-pushed the rust/call-refactor branch 2 times, most recently from 27fdd29 to d068588 Compare November 19, 2025 13:40
@hvitved hvitved force-pushed the rust/call-refactor branch 5 times, most recently from b044b33 to f829afd Compare November 20, 2025 10:37
private import internal.MethodCallExprImpl
import codeql.rust.elements.CallExprBase
import codeql.rust.elements.ArgList
import codeql.rust.elements.Attr

Check warning

Code scanning / CodeQL

Redundant import Warning

Redundant import, the module is already imported inside
codeql.rust.elements.CallExprBase
.
@hvitved hvitved force-pushed the rust/call-refactor branch 3 times, most recently from 3938385 to 3346914 Compare November 21, 2025 09:50
@hvitved hvitved force-pushed the rust/call-refactor branch 2 times, most recently from ff7dd62 to 2559678 Compare November 21, 2025 11:27
private import internal.ParenArgsExprImpl
import codeql.rust.elements.ArgList
import codeql.rust.elements.Attr
import codeql.rust.elements.Expr

Check warning

Code scanning / CodeQL

Redundant import Warning

Redundant import, the module is already imported inside
codeql.rust.elements.ArgList
.
private import codeql.rust.elements.internal.generated.Raw
import codeql.rust.elements.ArgList
import codeql.rust.elements.Attr
import codeql.rust.elements.Expr

Check warning

Code scanning / CodeQL

Redundant import Warning generated

Redundant import, the module is already imported inside
codeql.rust.elements.ArgList
.
ce.getStaticTarget().(Function).getName().getText() =
exists(CallExpr call, string rawAlgorithmName |
call = this.asExpr() and
call.getStaticTarget().(Function).getName().getText() =

Check warning

Code scanning / CodeQL

Redundant cast Warning

Redundant cast to
Function
.

query predicate instances(ParenArgsExpr x) { toBeTested(x) and not x.isUnknown() }

query predicate getArgList(ParenArgsExpr x, ArgList getArgList) {

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 getArgList = x.getArgList()
}

query predicate getAttr(ParenArgsExpr x, int index, Attr getAttr) {

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 getAttr = x.getAttr(index)
}

query predicate getBase(ParenArgsExpr x, Expr getBase) {

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.
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