Rust: Add inconsistency check for type mentions without a root type

This commit is contained in:
Simon Friis Vindum
2025-05-22 14:04:44 +02:00
parent bf2cfab931
commit 96cba8b8c2

View File

@@ -1314,6 +1314,10 @@ module Make1<LocationSig Location, InputSig1<Location> Input1> {
getTypeParameterId(tp1) = getTypeParameterId(tp2) and
tp1 != tp2
}
query predicate illFormedTypeMention(TypeMention tm) {
not exists(tm.resolveTypeAt(TypePath::nil())) and exists(tm.getLocation())
}
}
}
}