about summary refs log tree commit diff
path: root/tests/rustdoc
diff options
context:
space:
mode:
authorbinarycat <binarycat@envs.net>2025-07-14 12:31:58 -0500
committerbinarycat <binarycat@envs.net>2025-07-22 17:11:48 -0500
commit94700f8f3fd4fc3f3a0e563aa94d4a399691d88f (patch)
tree95d3f3d7165a0c544f833f1b550c1e74364b1b6d /tests/rustdoc
parent4762694e4a4d04295c578a344d217e34067c608c (diff)
downloadrust-94700f8f3fd4fc3f3a0e563aa94d4a399691d88f.tar.gz
rust-94700f8f3fd4fc3f3a0e563aa94d4a399691d88f.zip
fix regression test
Diffstat (limited to 'tests/rustdoc')
-rw-r--r--tests/rustdoc/reexport/auxiliary/wrap-unnamable-type.rs2
-rw-r--r--tests/rustdoc/reexport/wrapped-unnamble-type-143222.rs8
2 files changed, 7 insertions, 3 deletions
diff --git a/tests/rustdoc/reexport/auxiliary/wrap-unnamable-type.rs b/tests/rustdoc/reexport/auxiliary/wrap-unnamable-type.rs
index 8ce0a0de544..7f8e346c8be 100644
--- a/tests/rustdoc/reexport/auxiliary/wrap-unnamable-type.rs
+++ b/tests/rustdoc/reexport/auxiliary/wrap-unnamable-type.rs
@@ -4,7 +4,7 @@ pub trait Assoc {
 
 pub struct Foo(<Foo as crate::Assoc>::Ty);
 
-const _: () = {
+const _X: () = {
     impl crate::Assoc for Foo {
         type Ty = Bar;
     }
diff --git a/tests/rustdoc/reexport/wrapped-unnamble-type-143222.rs b/tests/rustdoc/reexport/wrapped-unnamble-type-143222.rs
index 005a5c0b98a..9a8893786f5 100644
--- a/tests/rustdoc/reexport/wrapped-unnamble-type-143222.rs
+++ b/tests/rustdoc/reexport/wrapped-unnamble-type-143222.rs
@@ -2,11 +2,15 @@
 //@ aux-build:wrap-unnamable-type.rs
 //@ build-aux-docs
 
+// regression test for https://github.com/rust-lang/rust/issues/143222
+// makes sure normalizing docs does not cause us to link to unnamable types
+// in cross-crate reexports.
+
 #![crate_name = "foo"]
 
 extern crate wrap_unnamable_type as helper;
-//extern crate helper;
+
 //@ has 'foo/struct.Foo.html'
-//@ !hasraw - '_/struct.Bar.html'
+//@ !hasraw - 'struct.Bar.html'
 #[doc(inline)]
 pub use helper::Foo;