diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2025-07-15 23:42:35 +0300 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2025-07-17 17:30:30 +0300 |
| commit | 998df3a3e851908afd05c3318f16d99849af5c55 (patch) | |
| tree | 89980db1d14991f0e1f91bf5b86b12bd031f989b /compiler/rustc_resolve/src/macros.rs | |
| parent | 8c12d76304fcceaeaad0d67209e5727e94f5f2b8 (diff) | |
| download | rust-998df3a3e851908afd05c3318f16d99849af5c55.tar.gz rust-998df3a3e851908afd05c3318f16d99849af5c55.zip | |
resolve: Make disambiguators for underscore bindings module-local
Diffstat (limited to 'compiler/rustc_resolve/src/macros.rs')
| -rw-r--r-- | compiler/rustc_resolve/src/macros.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_resolve/src/macros.rs b/compiler/rustc_resolve/src/macros.rs index c17d74659db..2b5632805b6 100644 --- a/compiler/rustc_resolve/src/macros.rs +++ b/compiler/rustc_resolve/src/macros.rs @@ -530,7 +530,7 @@ impl<'ra, 'tcx> ResolverExpand for Resolver<'ra, 'tcx> { target_trait.for_each_child(self, |this, ident, ns, _binding| { // FIXME: Adjust hygiene for idents from globs, like for glob imports. if let Some(overriding_keys) = this.impl_binding_keys.get(&impl_def_id) - && overriding_keys.contains(&BindingKey::new(ident.normalize_to_macros_2_0(), ns)) + && overriding_keys.contains(&BindingKey::new(ident, ns)) { // The name is overridden, do not produce it from the glob delegation. } else { |
