]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_resolve/src/late/diagnostics.rs
Rollup merge of #99729 - cjgillot:rm-unused-tuple, r=michaelwoerister
[rust.git] / compiler / rustc_resolve / src / late / diagnostics.rs
index f979403e09735225ff3fc228bce4c286487918c4..6b49c6b1ac63eeaeb66086678a5c6e06d302791e 100644 (file)
@@ -1444,7 +1444,7 @@ fn lookup_typo_candidate(
                     // 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