about summary refs log tree commit diff
path: root/tests/rustdoc/intra-doc/same-name-different-crates-66159.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2025-01-31 06:55:04 +0000
committerbors <bors@rust-lang.org>2025-01-31 06:55:04 +0000
commit25a16572a36321deae83546b63f5595d75361179 (patch)
treebb0125862da572d65682b30d807f7d671568d851 /tests/rustdoc/intra-doc/same-name-different-crates-66159.rs
parentc37fbd873a15e7cdc92476f7d7b964f6c05e64cd (diff)
parent08dc8c931f2b6be9e6c56ada74483a84608bc188 (diff)
downloadrust-25a16572a36321deae83546b63f5595d75361179.tar.gz
rust-25a16572a36321deae83546b63f5595d75361179.zip
Auto merge of #136331 - jhpratt:rollup-curo1f4, r=jhpratt
Rollup of 8 pull requests

Successful merges:

 - #135414 (Stabilize `const_black_box`)
 - #136150 (ci: use windows 2025 for i686-mingw)
 - #136258 (rustdoc: rename `issue-\d+.rs` tests to have meaningful names (part 11))
 - #136270 (Remove `NamedVarMap`.)
 - #136278 (add constraint graph to polonius MIR dump)
 - #136287 (LLVM changed the nocapture attribute to captures(none))
 - #136291 (some test suite cleanups)
 - #136296 (float::min/max: mention the non-determinism around signed 0)

r? `@ghost`
`@rustbot` modify labels: rollup
Diffstat (limited to 'tests/rustdoc/intra-doc/same-name-different-crates-66159.rs')
-rw-r--r--tests/rustdoc/intra-doc/same-name-different-crates-66159.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/rustdoc/intra-doc/same-name-different-crates-66159.rs b/tests/rustdoc/intra-doc/same-name-different-crates-66159.rs
new file mode 100644
index 00000000000..7e3ace9355a
--- /dev/null
+++ b/tests/rustdoc/intra-doc/same-name-different-crates-66159.rs
@@ -0,0 +1,13 @@
+// https://github.com/rust-lang/rust/issues/66159
+#![crate_name="foobar"]
+
+//@ aux-crate:priv:pub_struct=pub-struct.rs
+//@ compile-flags:-Z unstable-options
+
+// The issue was an ICE which meant that we never actually generated the docs
+// so if we have generated the docs, we're okay.
+// Since we don't generate the docs for the auxiliary files, we can't actually
+// verify that the struct is linked correctly.
+
+//@ has foobar/index.html
+//! [pub_struct::SomeStruct]