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

@ -1600,7 +1600,7 @@ impl<'a> SemanticsScope<'a> {
self.db,
def,
resolution.in_type_ns()?,
|name, _, id| cb(name, id.into()),
|name, id| cb(name, id.into()),
)
}
}