mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
Merge pull request #20161 from hvitved/rust/fix-bad-joins
Rust: Fix two bad joins introduced by magic
This commit is contained in:
@@ -1495,6 +1495,7 @@ private TypePath closureReturnPath() {
|
||||
}
|
||||
|
||||
/** Gets the path to a closure with arity `arity`s `index`th parameter type. */
|
||||
pragma[nomagic]
|
||||
private TypePath closureParameterPath(int arity, int index) {
|
||||
result =
|
||||
TypePath::cons(TDynTraitTypeParameter(any(FnOnceTrait t).getTypeParam()),
|
||||
@@ -1510,6 +1511,7 @@ private TypePath fnReturnPath() {
|
||||
* Gets the path to the parameter type of the `FnOnce` trait with arity `arity`
|
||||
* and index `index`.
|
||||
*/
|
||||
pragma[nomagic]
|
||||
private TypePath fnParameterPath(int arity, int index) {
|
||||
result =
|
||||
TypePath::cons(TTypeParamTypeParameter(any(FnOnceTrait t).getTypeParam()),
|
||||
|
||||
Reference in New Issue
Block a user