Rust: Adapt type inference consistency query exceptions

This commit is contained in:
Simon Friis Vindum
2026-01-14 15:36:35 +01:00
parent a19ad5e557
commit 465400115f

View File

@@ -18,6 +18,8 @@ query predicate illFormedTypeMention(TypeMention tm) {
any(PathTypeMention ptm |
exists(ptm.resolvePathTypeAt(TypePath::nil())) and
not exists(ptm.resolveType())
or
ptm.(NonAliasPathTypeMention).getResolved() instanceof TypeAlias
) and
// Only include inconsistencies in the source, as we otherwise get
// inconsistencies from library code in every project.