1
1
// https://github.com/rust-lang/rust/issues/55364
2
- #![ crate_name="foofoo " ]
2
+ #![ crate_name="foo " ]
3
3
4
4
// First a module with inner documentation
5
5
6
- //@ has foofoo /subone/index.html
7
- // These foofoo /bar links in the module's documentation should refer inside `subone`
6
+ //@ has foo /subone/index.html
7
+ // These foo /bar links in the module's documentation should refer inside `subone`
8
8
//@ has - '//section[@id="main-content"]/details[@open=""]/div[@class="docblock"]//a[@href="fn.foo.html"]' 'foo'
9
9
//@ has - '//section[@id="main-content"]/details[@open=""]/div[@class="docblock"]//a[@href="fn.bar.html"]' 'bar'
10
10
pub mod subone {
11
11
//! See either [foo] or [bar].
12
12
13
13
// This should refer to subone's `bar`
14
- //@ has foofoo /subone/fn.foo.html
14
+ //@ has foo /subone/fn.foo.html
15
15
//@ has - '//section[@id="main-content"]/details/div[@class="docblock"]//a[@href="fn.bar.html"]' 'bar'
16
16
/// See [bar]
17
17
pub fn foo ( ) { }
18
18
// This should refer to subone's `foo`
19
- //@ has foofoo /subone/fn.bar.html
19
+ //@ has foo /subone/fn.bar.html
20
20
//@ has - '//section[@id="main-content"]/details/div[@class="docblock"]//a[@href="fn.foo.html"]' 'foo'
21
21
/// See [foo]
22
22
pub fn bar ( ) { }
23
23
}
24
24
25
25
// A module with outer documentation
26
26
27
- //@ has foofoo /subtwo/index.html
27
+ //@ has foo /subtwo/index.html
28
28
// These foo/bar links in the module's documentation should not reference inside `subtwo`
29
29
//@ !has - '//section[@id="main-content"]/div[@class="docblock"]//a[@href="fn.foo.html"]' 'foo'
30
30
//@ !has - '//section[@id="main-content"]/div[@class="docblock"]//a[@href="fn.bar.html"]' 'bar'
@@ -39,13 +39,13 @@ pub mod subtwo {
39
39
40
40
// Despite the module's docs referring to the top level foo/bar,
41
41
// this should refer to subtwo's `bar`
42
- //@ has foofoo /subtwo/fn.foo.html
42
+ //@ has foo /subtwo/fn.foo.html
43
43
//@ has - '//section[@id="main-content"]/details/div[@class="docblock"]//a[@href="fn.bar.html"]' 'bar'
44
44
/// See [bar]
45
45
pub fn foo ( ) { }
46
46
// Despite the module's docs referring to the top level foo/bar,
47
47
// this should refer to subtwo's `foo`
48
- //@ has foofoo /subtwo/fn.bar.html
48
+ //@ has foo /subtwo/fn.bar.html
49
49
//@ has - '//section[@id="main-content"]/details/div[@class="docblock"]//a[@href="fn.foo.html"]' 'foo'
50
50
/// See [foo]
51
51
pub fn bar ( ) { }
@@ -60,7 +60,7 @@ pub fn bar() {}
60
60
61
61
// This module refers to the outer foo/bar by means of `super::`
62
62
63
- //@ has foofoo /subthree/index.html
63
+ //@ has foo /subthree/index.html
64
64
// This module should also refer to the top level foo/bar
65
65
//@ has - '//section[@id="main-content"]/details/div[@class="docblock"]//a[@href="../fn.foo.html"]' 'foo'
66
66
//@ has - '//section[@id="main-content"]/details/div[@class="docblock"]//a[@href="../fn.bar.html"]' 'bar'
@@ -70,7 +70,7 @@ pub mod subthree {
70
70
71
71
// Next we go *deeper* - In order to ensure it's not just "this or parent"
72
72
// we test `crate::` and a `super::super::...` chain
73
- //@ has foofoo /subfour/subfive/subsix/subseven/subeight/index.html
73
+ //@ has foo /subfour/subfive/subsix/subseven/subeight/index.html
74
74
//@ has - '//section[@id="main-content"]/dl[@class="item-table"]/dd//a[@href="../../../../../subone/fn.foo.html"]' 'other foo'
75
75
//@ has - '//section[@id="main-content"]/dl[@class="item-table"]/dd//a[@href="../../../../../subtwo/fn.bar.html"]' 'other bar'
76
76
pub mod subfour {
0 commit comments