Skip to content

Commit daff4c3

Browse files
committed
fix regression test
1 parent 950634d commit daff4c3

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

tests/rustdoc/reexport/auxiliary/wrap-unnamable-type.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ pub trait Assoc {
44

55
pub struct Foo(<Foo as crate::Assoc>::Ty);
66

7-
const _: () = {
7+
const _X: () = {
88
impl crate::Assoc for Foo {
99
type Ty = Bar;
1010
}

tests/rustdoc/reexport/wrapped-unnamble-type-143222.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,15 @@
22
//@ aux-build:wrap-unnamable-type.rs
33
//@ build-aux-docs
44

5+
// regression test for https://github.com/rust-lang/rust/issues/143222
6+
// makes sure normalizing docs does not cause us to link to unnamable types
7+
// in cross-crate reexports.
8+
59
#![crate_name = "foo"]
610

711
extern crate wrap_unnamable_type as helper;
8-
//extern crate helper;
12+
913
//@ has 'foo/struct.Foo.html'
10-
//@ !hasraw - '_/struct.Bar.html'
14+
//@ !hasraw - 'struct.Bar.html'
1115
#[doc(inline)]
1216
pub use helper::Foo;

0 commit comments

Comments
 (0)