diff options
| author | Yuki Okushi <jtitor@2k36.org> | 2022-07-27 11:52:54 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-07-27 11:52:54 +0900 |
| commit | 181bf05d86d906e5a8eea51f8fd702deb7a706cc (patch) | |
| tree | 9e06cd8304fdc8584ad288984d6fe7ff05c3e372 /src/test/rustdoc | |
| parent | 3ca1c3100ddba1f180dc55a0bf74285098554438 (diff) | |
| parent | 15db4186b76a95adad15428d391fe7726112ea03 (diff) | |
Rollup merge of #99700 - est31:rustdoc_layout_heading, r=GuillaumeGomez
Add a clickable link to the layout section The layout section (activated by `--show-type-layout`) is currently not linkable to (outside of chrome's link to text feature). This PR makes it linkable via `#layout`.
Diffstat (limited to 'src/test/rustdoc')
| -rw-r--r-- | src/test/rustdoc/type-layout.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/test/rustdoc/type-layout.rs b/src/test/rustdoc/type-layout.rs index 4eea9809ac5..e5c6e9dc3f9 100644 --- a/src/test/rustdoc/type-layout.rs +++ b/src/test/rustdoc/type-layout.rs @@ -2,6 +2,7 @@ // @has type_layout/struct.Foo.html 'Size: ' // @has - ' bytes' +// @has - '//*[@id="layout"]/a[@href="#layout"]' '' pub struct Foo { pub a: usize, b: Vec<String>, |
