]> git.proxmox.com Git - rustc.git/blobdiff - compiler/rustc_expand/src/parse/tests.rs
New upstream version 1.52.0~beta.3+dfsg1
[rustc.git] / compiler / rustc_expand / src / parse / tests.rs
index f4fcaf5c0a4520184d243935606355dee2d8a2db..56f25ffdb0187cf7bc4ea2a8f8c3ea7c17d25898 100644 (file)
@@ -309,8 +309,8 @@ fn out_of_line_mod() {
         .unwrap()
         .unwrap();
 
-        if let ast::ItemKind::Mod(ref m) = item.kind {
-            assert!(m.items.len() == 2);
+        if let ast::ItemKind::Mod(_, ref mod_kind) = item.kind {
+            assert!(matches!(mod_kind, ast::ModKind::Loaded(items, ..) if items.len() == 2));
         } else {
             panic!();
         }