diff options
| author | Michael Howell <michael@notriddle.com> | 2023-01-23 14:31:35 -0700 |
|---|---|---|
| committer | Michael Howell <michael@notriddle.com> | 2023-01-23 14:31:35 -0700 |
| commit | 57ca36861d35dd1f75d8b51dd975c884bb2c6872 (patch) | |
| tree | a7157e12a158859ff920c7f419f9bf54db70c721 /tests/rustdoc/issue-99221-multiple-structs-w-same-name.rs | |
| parent | c8e6a9e8b6251bbc8276cb78cabe1998deecbed7 (diff) | |
| download | rust-57ca36861d35dd1f75d8b51dd975c884bb2c6872.tar.gz rust-57ca36861d35dd1f75d8b51dd975c884bb2c6872.zip | |
rustdoc: make item links consistently use `title="{shortty} {path}"`
The ordering in item tables was flipped in 3030cbea957adbd560bf2eaa34c1b8a56daee16a, making it inconsistent with the ordering in method signatures. Compare these: https://github.com/rust-lang/rust/blob/c8e6a9e8b6251bbc8276cb78cabe1998deecbed7/src/librustdoc/html/render/print_item.rs#L455-L459 https://github.com/rust-lang/rust/blob/c8e6a9e8b6251bbc8276cb78cabe1998deecbed7/src/librustdoc/html/format.rs#L903-L908
Diffstat (limited to 'tests/rustdoc/issue-99221-multiple-structs-w-same-name.rs')
| -rw-r--r-- | tests/rustdoc/issue-99221-multiple-structs-w-same-name.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/rustdoc/issue-99221-multiple-structs-w-same-name.rs b/tests/rustdoc/issue-99221-multiple-structs-w-same-name.rs index 41e64726a32..ba29a77ebdf 100644 --- a/tests/rustdoc/issue-99221-multiple-structs-w-same-name.rs +++ b/tests/rustdoc/issue-99221-multiple-structs-w-same-name.rs @@ -9,6 +9,6 @@ extern crate issue_99221_aux; pub use issue_99221_aux::*; -// @count foo/index.html '//a[@class="struct"][@title="foo::Print struct"]' 1 +// @count foo/index.html '//a[@class="struct"][@title="struct foo::Print"]' 1 pub struct Print; |
