replace binding and shadowed_glob on NameResolution with non_glob_binding and glob_binding

This commit is contained in:
b-naber
2025-07-11 10:57:54 +02:00
committed by LorrensP-2158466
parent 2f9c9cede6
commit 9ed5378cfd
7 changed files with 77 additions and 55 deletions

View File

@@ -641,7 +641,7 @@ impl<'ra> Module<'ra> {
F: FnMut(&mut R, Ident, Namespace, NameBinding<'ra>),
{
for (key, name_resolution) in resolver.as_mut().resolutions(self).borrow().iter() {
if let Some(binding) = name_resolution.borrow().binding {
if let Some(binding) = name_resolution.borrow().best_binding() {
f(resolver, key.ident, key.ns, binding);
}
}