Disallow access to free BoundVars outside TyLoweringContext

This commit is contained in:
Ryo Yoshida 2022-12-07 23:22:37 +09:00
parent f9bd487708
commit 46e1486a90
No known key found for this signature in database
GPG key ID: E25698A930586171
3 changed files with 7 additions and 4 deletions

View file

@ -967,7 +967,7 @@ fn resolve_hir_path_(
db,
def,
res.in_type_ns()?,
|name, _, id| (name == unresolved.name).then(|| id),
|name, id| (name == unresolved.name).then(|| id),
)
})
.map(TypeAlias::from)