1
Fork 0

Unused tuple fields in rustc_resolve.

This commit is contained in:
Camille GILLOT 2022-07-25 19:45:26 +02:00
parent ec83476748
commit 9450f822fb
5 changed files with 9 additions and 9 deletions

View file

@ -1434,7 +1434,7 @@ impl<'a: 'ast, 'ast> LateResolutionVisitor<'a, '_, 'ast> {
// Items from this module
self.r.add_module_candidates(module, &mut names, &filter_fn);
if let ModuleKind::Block(..) = module.kind {
if let ModuleKind::Block = module.kind {
// We can see through blocks
} else {
// Items from the prelude