]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_resolve/src/ident.rs
Auto merge of #99743 - compiler-errors:fulfillment-context-cleanups, r=jackh726
[rust.git] / compiler / rustc_resolve / src / ident.rs
index 0cc6d05d1d086ac072ea3c175978268e9cd36c51..6e6782881427b678e1ecc863a7bd31524dba17eb 100644 (file)
@@ -218,7 +218,7 @@ fn hygienic_lexical_parent(
             return Some((self.expn_def_scope(ctxt.remove_mark()), None));
         }
 
-        if let ModuleKind::Block(..) = module.kind {
+        if let ModuleKind::Block = module.kind {
             return Some((module.parent.unwrap().nearest_item_scope(), None));
         }
 
@@ -333,7 +333,7 @@ pub(crate) fn resolve_ident_in_lexical_scope(
             };
 
             match module.kind {
-                ModuleKind::Block(..) => {} // We can see through blocks
+                ModuleKind::Block => {} // We can see through blocks
                 _ => break,
             }