diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2021-04-13 22:51:56 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume.gomez@huawei.com> | 2021-08-05 23:08:28 +0200 |
| commit | 1abb7faddb406d5b40ecca39a6395957ccf9c778 (patch) | |
| tree | 3768678c62c4afa5be4145a37a4aff8ec5cfaa7d /src/test/rustdoc/check-source-code-urls-to-def.rs | |
| parent | 71763a52ff221fe8f32b217e92d49b903f6826bb (diff) | |
| download | rust-1abb7faddb406d5b40ecca39a6395957ccf9c778.tar.gz rust-1abb7faddb406d5b40ecca39a6395957ccf9c778.zip | |
Generate links for modules as well
Diffstat (limited to 'src/test/rustdoc/check-source-code-urls-to-def.rs')
| -rw-r--r-- | src/test/rustdoc/check-source-code-urls-to-def.rs | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/test/rustdoc/check-source-code-urls-to-def.rs b/src/test/rustdoc/check-source-code-urls-to-def.rs index 32973ba3faf..5caef29fede 100644 --- a/src/test/rustdoc/check-source-code-urls-to-def.rs +++ b/src/test/rustdoc/check-source-code-urls-to-def.rs @@ -2,11 +2,12 @@ #![crate_name = "foo"] +// @has 'src/foo/check-source-code-urls-to-def.rs.html' + +// @has - '//a[@href="../../src/foo/auxiliary/source-code-bar.rs.html#1-17"]' 'bar' #[path = "auxiliary/source-code-bar.rs"] pub mod bar; -// @has 'src/foo/check-source-code-urls-to-def.rs.html' - // @count - '//a[@href="../../src/foo/auxiliary/source-code-bar.rs.html#5-7"]' 4 use bar::Bar; // @has - '//a[@href="../../src/foo/auxiliary/source-code-bar.rs.html#13-17"]' 'self' @@ -22,13 +23,13 @@ impl Foo { fn babar() {} // @has - '//a[@href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html"]' 'String' -// @count - '//a[@href="../../src/foo/check-source-code-urls-to-def.rs.html#16"]' 5 +// @count - '//a[@href="../../src/foo/check-source-code-urls-to-def.rs.html#17"]' 5 pub fn foo(a: u32, b: &str, c: String, d: Foo, e: bar::Bar) { let x = 12; let y: Foo = Foo; let z: Bar = bar::Bar { field: Foo }; babar(); - // @has - '//a[@href="../../src/foo/check-source-code-urls-to-def.rs.html#19"]' 'hello' + // @has - '//a[@href="../../src/foo/check-source-code-urls-to-def.rs.html#20"]' 'hello' y.hello(); } |
