Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8b5603c + 125a4b9 commit 65bf76eCopy full SHA for 65bf76e
1 file changed
rust/ql/lib/codeql/rust/internal/TypeInference.qll
@@ -1495,6 +1495,7 @@ private TypePath closureReturnPath() {
1495
}
1496
1497
/** Gets the path to a closure with arity `arity`s `index`th parameter type. */
1498
+pragma[nomagic]
1499
private TypePath closureParameterPath(int arity, int index) {
1500
result =
1501
TypePath::cons(TDynTraitTypeParameter(any(FnOnceTrait t).getTypeParam()),
@@ -1510,6 +1511,7 @@ private TypePath fnReturnPath() {
1510
1511
* Gets the path to the parameter type of the `FnOnce` trait with arity `arity`
1512
* and index `index`.
1513
*/
1514
1515
private TypePath fnParameterPath(int arity, int index) {
1516
1517
TypePath::cons(TTypeParamTypeParameter(any(FnOnceTrait t).getTypeParam()),
0 commit comments