about summary refs log tree commit diff
path: root/src/test/rustdoc
diff options
context:
space:
mode:
authorDylan DPC <99973273+Dylan-DPC@users.noreply.github.com>2022-04-05 09:33:24 +0200
committerGitHub <noreply@github.com>2022-04-05 09:33:24 +0200
commitbf44a87732496e4ea5e7f7cb11680bb68fd6cad4 (patch)
treea8e3276b6c7928babd414057b34015a8a310c6d5 /src/test/rustdoc
parent2a7e7bd0e0a2686429267d529d02f0df8129626c (diff)
parent50cc0fa8abd0279608ce3434a5a3fe34dee62a70 (diff)
downloadrust-bf44a87732496e4ea5e7f7cb11680bb68fd6cad4.tar.gz
rust-bf44a87732496e4ea5e7f7cb11680bb68fd6cad4.zip
Rollup merge of #95645 - GuillaumeGomez:intra-doc-link-ice-traits-in-scope-primitive, r=jyn514
Fix intra doc link ICE when trying to get traits in scope for primitive

Fixes #95633.

I think ``@notriddle`` was the one who worked on this part of the code last so:

r? ``@notriddle``
Diffstat (limited to 'src/test/rustdoc')
-rw-r--r--src/test/rustdoc/issue-95633.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/test/rustdoc/issue-95633.rs b/src/test/rustdoc/issue-95633.rs
new file mode 100644
index 00000000000..a71d0a03731
--- /dev/null
+++ b/src/test/rustdoc/issue-95633.rs
@@ -0,0 +1,7 @@
+// compile-flags: --document-private-items
+
+// This ensures that no ICE is triggered when rustdoc is run on this code.
+
+mod stdlib {
+    pub (crate) use std::i8;
+}