resolve: skip underscore character during candidate lookup
This commit is contained in:
parent
46da927abb
commit
cfb819fa7e
3 changed files with 37 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue