Skip to content

Commit 42b1112

Browse files
committed
Rust: add default Element::toString
1 parent 20ca880 commit 42b1112

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

rust/ql/lib/codeql/rust/elements/Element.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,7 @@
55
private import codeql.rust.generated.Element
66

77
class Element extends Generated::Element {
8+
override string toString() { result = this.getAPrimaryQlClass() }
9+
810
predicate isUnknown() { none() } // compatibility with test generation, to be fixed
911
}

0 commit comments

Comments
 (0)