Merge pull request #20830 from hvitved/rust/path-resolution-slice-array-builtin

Rust: Model builtin types in path resolution
This commit is contained in:
Tom Hvitved
2025-11-18 14:42:59 +01:00
committed by GitHub
18 changed files with 5614 additions and 5304 deletions

View File

@@ -992,7 +992,7 @@ module Make1<LocationSig Location, InputSig1<Location> Input1> {
TypeMention constraintMention
) {
exists(Type type | hasTypeConstraint(tt, type, constraint) |
useUniversalConditions() and
useUniversalConditions() and // todo: remove, and instead check constraints
not exists(countConstraintImplementations(type, constraint)) and
conditionSatisfiesConstraintTypeAt(abs, condition, constraintMention, _, _) and
resolveTypeMentionRoot(condition) = abs.getATypeParameter() and