Skip to content

Commit 0940579

Browse files
committed
Type inference: Unify getABaseTypeMention and conditionSatisfiesConstraint
1 parent cac7262 commit 0940579

2 files changed

Lines changed: 119 additions & 248 deletions

File tree

rust/ql/lib/codeql/rust/internal/typeinference/TypeInference.qll

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -222,8 +222,6 @@ private module Input2Common {
222222
}
223223

224224
private module PreInput2 implements InputSig2<PreTypeMention> {
225-
PreTypeMention getABaseTypeMention(Type t) { none() }
226-
227225
PreTypeMention getATypeParameterConstraint(TypeParameter tp) {
228226
result = Input2Common::getATypeParameterConstraint(tp)
229227
}
@@ -248,8 +246,6 @@ private module PreInput2 implements InputSig2<PreTypeMention> {
248246
module PreM2 = Make2<PreTypeMention, PreInput2>;
249247

250248
private module Input2 implements InputSig2<TypeMention> {
251-
TypeMention getABaseTypeMention(Type t) { none() }
252-
253249
TypeMention getATypeParameterConstraint(TypeParameter tp) {
254250
result = Input2Common::getATypeParameterConstraint(tp)
255251
}

0 commit comments

Comments
 (0)