Skip to content

Commit 6d15233

Browse files
authored
Rollup merge of #146806 - el-ev:issue60926, r=lolbinarycat
add private module override re-export test - Closes #60926 Added a new test to check that `rustdoc` does not create links to `m2` in the crate root when `pub use m1::*` is overrided by `use crate::m1::m2`.
2 parents 15c323f + bd98e73 commit 6d15233

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// https://github.com/rust-lang/rust/issues/60926
2+
#![crate_name = "foo"]
3+
4+
mod m1 {
5+
pub mod m2 {
6+
pub struct Foo;
7+
}
8+
}
9+
10+
pub use m1::*;
11+
use crate::m1::m2;
12+
13+
//@ count foo/index.html '//a[@class="mod"]' 0

0 commit comments

Comments
 (0)