]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_builtin_macros/src/test_harness.rs
Rollup merge of #104708 - jonasspinner:fix-backoff-doc-to-match-implementation, r...
[rust.git] / compiler / rustc_builtin_macros / src / test_harness.rs
index b5bce9278a907311d22e90493dba96dff9aee7b2..ad8871080910640e11e123b8f27221101f2a543d 100644 (file)
@@ -131,8 +131,9 @@ fn visit_crate(&mut self, c: &mut ast::Crate) {
 
         // We don't want to recurse into anything other than mods, since
         // mods or tests inside of functions will break things
-        if let ast::ItemKind::Mod(_, ModKind::Loaded(.., ref spans)) = item.kind {
-            let ast::ModSpans { inner_span: span, inject_use_span: _ } = *spans;
+        if let ast::ItemKind::Mod(_, ModKind::Loaded(.., ast::ModSpans { inner_span: span, .. })) =
+            item.kind
+        {
             let prev_tests = mem::take(&mut self.tests);
             noop_visit_item_kind(&mut item.kind, self);
             self.add_test_cases(item.id, span, prev_tests);