about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-09-24 18:12:33 +0000
committerbors <bors@rust-lang.org>2021-09-24 18:12:33 +0000
commit73422130ee96c09e7214c876a3600ac1f32aa8c8 (patch)
treec60efb257e8fa0e0f103b61602bfbaff9675a776 /src
parentf06f9bbd3a2b0a2781decd6163b14f71dd59bf7f (diff)
parent8f035b87e0a839fbca853514287028569808d50f (diff)
Auto merge of #88872 - petrochenkov:getmod2, r=cjgillot
resolve: Some module-related refactorings

See the individual commits.
Diffstat (limited to 'src')
-rw-r--r--src/librustdoc/passes/collect_intra_doc_links.rs2
-rw-r--r--src/test/rustdoc/macro-document-private-duplicate.rs2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/librustdoc/passes/collect_intra_doc_links.rs b/src/librustdoc/passes/collect_intra_doc_links.rs
index 3edd96a3364..318c897bcbd 100644
--- a/src/librustdoc/passes/collect_intra_doc_links.rs
+++ b/src/librustdoc/passes/collect_intra_doc_links.rs
@@ -759,7 +759,7 @@ fn traits_implemented_by(cx: &mut DocContext<'_>, type_: DefId, module: DefId) -
     let mut resolver = cx.resolver.borrow_mut();
     let in_scope_traits = cx.module_trait_cache.entry(module).or_insert_with(|| {
         resolver.access(|resolver| {
-            let parent_scope = &ParentScope::module(resolver.get_module(module), resolver);
+            let parent_scope = &ParentScope::module(resolver.expect_module(module), resolver);
             resolver
                 .traits_in_scope(None, parent_scope, SyntaxContext::root(), None)
                 .into_iter()
diff --git a/src/test/rustdoc/macro-document-private-duplicate.rs b/src/test/rustdoc/macro-document-private-duplicate.rs
index 460785ed979..7576c1326b8 100644
--- a/src/test/rustdoc/macro-document-private-duplicate.rs
+++ b/src/test/rustdoc/macro-document-private-duplicate.rs
@@ -1,3 +1,5 @@
+// ignore-test (fails spuriously, see issue #89228)
+
 // FIXME: If two macros in the same module have the same name
 // (yes, that's a thing), rustdoc lists both of them on the index page,
 // but only documents the first one on the page for the macro.