Skip to content

Commit 3fed7f5

Browse files
authored
Merge pull request #19714 from hvitved/rust/fix-bad-join
Rust: Fix bad join
2 parents d659d40 + 209cfb7 commit 3fed7f5

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ module Impl {
2626
override string toAbbreviatedString() { result = "<...>" }
2727

2828
/** Gets the `i`th type argument of this list. */
29+
pragma[nomagic]
2930
TypeRepr getTypeArg(int i) {
3031
result =
3132
rank[i + 1](TypeRepr res, int j |

rust/ql/lib/codeql/rust/internal/TypeMention.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ class PathTypeReprMention extends TypeMention instanceof PathTypeRepr {
130130
* Holds if this path resolved to a type alias with a rhs. that has the
131131
* resulting type at `typePath`.
132132
*/
133+
pragma[nomagic]
133134
Type aliasResolveTypeAt(TypePath typePath) {
134135
exists(TypeAlias alias, TypeMention rhs | alias = resolved and rhs = alias.getTypeRepr() |
135136
result = rhs.resolveTypeAt(typePath) and

0 commit comments

Comments
 (0)