Skip to content

Commit 110d2ea

Browse files
committed
Rust: avoid classes with multiple getAPrimaryQLClass result
1 parent ca469f6 commit 110d2ea

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

rust/ql/lib/codeql/rust/elements/internal/VariableImpl.qll

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -448,8 +448,7 @@ module Impl {
448448
private import codeql.rust.elements.internal.generated.Synth
449449

450450
/** A variable access. */
451-
abstract class VariableAccess extends PathExprBaseImpl::PathExprBase instanceof VariableAccessCand
452-
{
451+
class VariableAccess extends PathExprBaseImpl::PathExprBase instanceof VariableAccessCand {
453452
private string name;
454453
private Variable v;
455454

@@ -462,8 +461,6 @@ module Impl {
462461
predicate isCapture() { this.getEnclosingCallable() != v.getPat().getEnclosingCallable() }
463462

464463
override string toString() { result = name }
465-
466-
override string getAPrimaryQlClass() { result = "VariableAccess" }
467464
}
468465

469466
/** Holds if `e` occurs in the LHS of an assignment or compound assignment. */

0 commit comments

Comments
 (0)