Skip to content

Commit bdcecdf

Browse files
committed
Shared, Rust: Ensure that the constraints in satisfiesConstraintType are in relevantConstraint
1 parent 475d872 commit bdcecdf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shared/typeinference/codeql/typeinference/internal/TypeInference.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -989,7 +989,7 @@ module Make1<LocationSig Location, InputSig1<Location> Input1> {
989989
path = prefix0.append(suffix)
990990
)
991991
or
992-
tt.getTypeAt(TypePath::nil()) = constraint and
992+
hasTypeConstraint(tt, constraint, constraint) and
993993
t = tt.getTypeAt(path)
994994
}
995995
}

0 commit comments

Comments
 (0)