mirror of
https://github.com/github/codeql.git
synced 2026-03-31 04:38:18 +02:00
Rust: Use getReturnType
This commit is contained in:
@@ -2974,7 +2974,7 @@ private module ConstructionMatchingInput implements MatchingInputSig {
|
||||
exists(Declaration d, TypeParameter tp |
|
||||
d = this.getTarget() and
|
||||
pos.isReturn() and
|
||||
tp = d.getDeclaredType(pos, path) and
|
||||
tp = d.getReturnType(path) and
|
||||
not exists(FunctionPosition pos2 | not pos2.isReturn() and tp = d.getDeclaredType(pos2, _)) and
|
||||
// check that no explicit type arguments have been supplied for `tp`
|
||||
not exists(TypeArgumentPosition tapos |
|
||||
|
||||
Reference in New Issue
Block a user