Skip to content

Commit 4596926

Browse files
committed
wip
1 parent be58e9b commit 4596926

File tree

9 files changed

+249
-140
lines changed

9 files changed

+249
-140
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ module Impl {
4747
*/
4848
TypeBound getATypeBound() { result = this.getTypeBound(_) }
4949

50+
/** Holds if this type parameter has at least one type bound. */
51+
predicate hasTypeBound() { exists(this.getATypeBound()) }
52+
5053
override string toAbbreviatedString() { result = this.getName().getText() }
5154

5255
override string toStringImpl() { result = this.getName().getText() }

0 commit comments

Comments
 (0)