Skip to content

Commit 65bf76e

Browse files
authored
Merge pull request #20161 from hvitved/rust/fix-bad-joins
Rust: Fix two bad joins introduced by magic
2 parents 8b5603c + 125a4b9 commit 65bf76e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1495,6 +1495,7 @@ private TypePath closureReturnPath() {
14951495
}
14961496

14971497
/** Gets the path to a closure with arity `arity`s `index`th parameter type. */
1498+
pragma[nomagic]
14981499
private TypePath closureParameterPath(int arity, int index) {
14991500
result =
15001501
TypePath::cons(TDynTraitTypeParameter(any(FnOnceTrait t).getTypeParam()),
@@ -1510,6 +1511,7 @@ private TypePath fnReturnPath() {
15101511
* Gets the path to the parameter type of the `FnOnce` trait with arity `arity`
15111512
* and index `index`.
15121513
*/
1514+
pragma[nomagic]
15131515
private TypePath fnParameterPath(int arity, int index) {
15141516
result =
15151517
TypePath::cons(TTypeParamTypeParameter(any(FnOnceTrait t).getTypeParam()),

0 commit comments

Comments
 (0)