mirror of
https://github.com/github/codeql.git
synced 2026-02-12 05:01:06 +01:00
committed by
GitHub
parent
8e6f920ae2
commit
dd73399238
@@ -3830,8 +3830,8 @@ private Type invokedClosureFnTypeAt(InvokedClosureExpr ce, TypePath path) {
|
||||
*
|
||||
* We model closures as `dyn Fn` trait object types. A closure might implement
|
||||
* only `Fn`, `FnMut`, or `FnOnce`. But since `Fn` is a subtrait of the others,
|
||||
* giving closures the type `dyn Fn` works well in practice—even if not entirely
|
||||
* accurate.
|
||||
* giving closures the type `dyn Fn` works well in practice -- even if not
|
||||
* entirely accurate.
|
||||
*/
|
||||
private DynTraitType closureRootType() {
|
||||
result = TDynTraitType(any(FnTrait t)) // always exists because of the mention in `builtins/mentions.rs`
|
||||
|
||||
Reference in New Issue
Block a user