]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_passes/src/layout_test.rs
Rollup merge of #88789 - the8472:rm-zip-bound, r=JohnTitor
[rust.git] / compiler / rustc_passes / src / layout_test.rs
index aa78fcfb4b373cc42066634ba885784ac7acb44b..558d8958b13588bbf7b48783d9c02cf41ab768bc 100644 (file)
@@ -12,7 +12,7 @@
 pub fn test_layout(tcx: TyCtxt<'_>) {
     if tcx.features().rustc_attrs {
         // if the `rustc_attrs` feature is not enabled, don't bother testing layout
-        tcx.hir().krate().visit_all_item_likes(&mut LayoutTest { tcx });
+        tcx.hir().visit_all_item_likes(&mut LayoutTest { tcx });
     }
 }