mirror of
https://github.com/github/codeql.git
synced 2026-04-30 19:26:02 +02:00
Type inference: Disable universal conditions
This commit is contained in:
@@ -117,8 +117,6 @@ module SatisfiesBlanketConstraint<
|
||||
predicate relevantConstraint(ArgumentTypeAndBlanketOffset ato, Type constraint) {
|
||||
relevantConstraint(ato, _, constraint.(TraitType).getTrait())
|
||||
}
|
||||
|
||||
predicate useUniversalConditions() { none() }
|
||||
}
|
||||
|
||||
private module SatisfiesBlanketConstraint =
|
||||
|
||||
@@ -2193,8 +2193,6 @@ private module MethodResolution {
|
||||
exists(mc) and
|
||||
constraint.(TraitType).getTrait() instanceof DerefTrait
|
||||
}
|
||||
|
||||
predicate useUniversalConditions() { none() }
|
||||
}
|
||||
|
||||
private module MethodCallSatisfiesDerefConstraint =
|
||||
@@ -3566,8 +3564,6 @@ private module AwaitSatisfiesConstraintInput implements SatisfiesConstraintInput
|
||||
exists(term) and
|
||||
constraint.(TraitType).getTrait() instanceof FutureTrait
|
||||
}
|
||||
|
||||
predicate useUniversalConditions() { none() }
|
||||
}
|
||||
|
||||
pragma[nomagic]
|
||||
@@ -3764,8 +3760,6 @@ private module ForIterableSatisfiesConstraintInput implements
|
||||
t instanceof IntoIteratorTrait
|
||||
)
|
||||
}
|
||||
|
||||
predicate useUniversalConditions() { none() }
|
||||
}
|
||||
|
||||
pragma[nomagic]
|
||||
@@ -3817,8 +3811,6 @@ private module InvokedClosureSatisfiesConstraintInput implements
|
||||
exists(term) and
|
||||
constraint.(TraitType).getTrait() instanceof FnOnceTrait
|
||||
}
|
||||
|
||||
predicate useUniversalConditions() { none() }
|
||||
}
|
||||
|
||||
/** Gets the type of `ce` when viewed as an implementation of `FnOnce`. */
|
||||
|
||||
Reference in New Issue
Block a user