1
Fork 0

resolve: skip underscore character during candidate lookup

This commit is contained in:
bohan 2023-09-28 19:47:58 +08:00
parent 46da927abb
commit cfb819fa7e
3 changed files with 37 additions and 0 deletions

View file

@ -1169,6 +1169,10 @@ impl<'a, 'tcx> Resolver<'a, 'tcx> {
return;
}
if ident.name == kw::Underscore {
return;
}
let child_accessible =
accessible && this.is_accessible_from(name_binding.vis, parent_scope.module);