scope.lookup_str

This commit is contained in:
Folkert 2022-05-17 20:48:20 +02:00
parent b241bcf777
commit 95bf8bb505
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
4 changed files with 10 additions and 6 deletions

View file

@ -1320,7 +1320,7 @@ fn canonicalize_var_lookup(
let can_expr = if module_name.is_empty() {
// Since module_name was empty, this is an unqualified var.
// Look it up in scope!
match scope.lookup(&(*ident).into(), region) {
match scope.lookup_str(ident, region) {
Ok(symbol) => {
output.references.insert_value_lookup(symbol);