@@ -10,14 +10,14 @@ extern crate source_code;
1010
1111// @has 'src/foo/check-source-code-urls-to-def.rs.html'
1212
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'
1414#[ path = "auxiliary/source-code-bar.rs" ]
1515pub mod bar;
1616
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
1818use 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'
2121use bar:: sub:: { self , Trait } ;
2222
2323pub struct Foo ;
@@ -31,26 +31,26 @@ fn babar() {}
3131// @has - '//a/@href' '/struct.String.html'
3232// @has - '//a/@href' '/primitive.u32.html'
3333// @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
3535// @has - '//a[@href="../../source_code/struct.SourceCode.html"]' 'source_code::SourceCode'
3636pub fn foo ( a : u32 , b : & str , c : String , d : Foo , e : bar:: Bar , f : source_code:: SourceCode ) {
3737 let x = 12 ;
3838 let y: Foo = Foo ;
3939 let z: Bar = bar:: Bar { field : Foo } ;
4040 babar ( ) ;
41- // @has - '//a[@href="../../src/foo/check-source-code-urls-to-def.rs.html #26"]' 'hello'
41+ // @has - '//a[@href="#26"]' 'hello'
4242 y. hello ( ) ;
4343}
4444
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'
4747pub fn foo2 < T : bar:: sub:: Trait , V : Trait > ( t : & T , v : & V , b : bool ) { }
4848
4949pub trait AnotherTrait { }
5050pub trait WhyNot { }
5151
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'
5454pub fn foo3 < T , V > ( t : & T , v : & V )
5555where
5656 T : AnotherTrait ,
5959
6060pub trait AnotherTrait2 { }
6161
62- // @has - '//a[@href="../../src/foo/check-source-code-urls-to-def.rs.html #60"]' 'AnotherTrait2'
62+ // @has - '//a[@href="#60"]' 'AnotherTrait2'
6363pub fn foo4 ( ) {
6464 let x: Vec < AnotherTrait2 > = Vec :: new ( ) ;
6565}
0 commit comments