@@ -10,14 +10,14 @@ extern crate source_code;
10
10
11
11
// @has 'src/foo/check-source-code-urls-to-def.rs.html'
12
12
13
- // @has - '//a[@href="../../src/foo/ auxiliary/source-code-bar.rs.html#1-17"]' 'bar'
13
+ // @has - '//a[@href="auxiliary/source-code-bar.rs.html#1-17"]' 'bar'
14
14
#[ path = "auxiliary/source-code-bar.rs" ]
15
15
pub mod bar;
16
16
17
- // @count - '//a[@href="../../src/foo/ auxiliary/source-code-bar.rs.html#5"]' 4
17
+ // @count - '//a[@href="auxiliary/source-code-bar.rs.html#5"]' 4
18
18
use bar:: Bar ;
19
- // @has - '//a[@href="../../src/foo/ auxiliary/source-code-bar.rs.html#13"]' 'self'
20
- // @has - '//a[@href="../../src/foo/ auxiliary/source-code-bar.rs.html#14"]' 'Trait'
19
+ // @has - '//a[@href="auxiliary/source-code-bar.rs.html#13"]' 'self'
20
+ // @has - '//a[@href="auxiliary/source-code-bar.rs.html#14"]' 'Trait'
21
21
use bar:: sub:: { self , Trait } ;
22
22
23
23
pub struct Foo ;
@@ -31,26 +31,26 @@ fn babar() {}
31
31
// @has - '//a/@href' '/struct.String.html'
32
32
// @has - '//a/@href' '/primitive.u32.html'
33
33
// @has - '//a/@href' '/primitive.str.html'
34
- // @count - '//a[@href="../../src/foo/check-source-code-urls-to-def.rs.html #23"]' 5
34
+ // @count - '//a[@href="#23"]' 5
35
35
// @has - '//a[@href="../../source_code/struct.SourceCode.html"]' 'source_code::SourceCode'
36
36
pub fn foo ( a : u32 , b : & str , c : String , d : Foo , e : bar:: Bar , f : source_code:: SourceCode ) {
37
37
let x = 12 ;
38
38
let y: Foo = Foo ;
39
39
let z: Bar = bar:: Bar { field : Foo } ;
40
40
babar ( ) ;
41
- // @has - '//a[@href="../../src/foo/check-source-code-urls-to-def.rs.html #26"]' 'hello'
41
+ // @has - '//a[@href="#26"]' 'hello'
42
42
y. hello ( ) ;
43
43
}
44
44
45
- // @has - '//a[@href="../../src/foo/ auxiliary/source-code-bar.rs.html#14"]' 'bar::sub::Trait'
46
- // @has - '//a[@href="../../src/foo/ auxiliary/source-code-bar.rs.html#14"]' 'Trait'
45
+ // @has - '//a[@href="auxiliary/source-code-bar.rs.html#14"]' 'bar::sub::Trait'
46
+ // @has - '//a[@href="auxiliary/source-code-bar.rs.html#14"]' 'Trait'
47
47
pub fn foo2 < T : bar:: sub:: Trait , V : Trait > ( t : & T , v : & V , b : bool ) { }
48
48
49
49
pub trait AnotherTrait { }
50
50
pub trait WhyNot { }
51
51
52
- // @has - '//a[@href="../../src/foo/check-source-code-urls-to-def.rs.html #49"]' 'AnotherTrait'
53
- // @has - '//a[@href="../../src/foo/check-source-code-urls-to-def.rs.html #50"]' 'WhyNot'
52
+ // @has - '//a[@href="#49"]' 'AnotherTrait'
53
+ // @has - '//a[@href="#50"]' 'WhyNot'
54
54
pub fn foo3 < T , V > ( t : & T , v : & V )
55
55
where
56
56
T : AnotherTrait ,
59
59
60
60
pub trait AnotherTrait2 { }
61
61
62
- // @has - '//a[@href="../../src/foo/check-source-code-urls-to-def.rs.html #60"]' 'AnotherTrait2'
62
+ // @has - '//a[@href="#60"]' 'AnotherTrait2'
63
63
pub fn foo4 ( ) {
64
64
let x: Vec < AnotherTrait2 > = Vec :: new ( ) ;
65
65
}
0 commit comments