about summary refs log tree commit diff
path: root/tests/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs
diff options
context:
space:
mode:
authorGurinder Singh <frederick.the.fool@gmail.com>2024-02-24 10:34:09 +0530
committerGurinder Singh <frederick.the.fool@gmail.com>2024-02-24 10:34:09 +0530
commite0bfa5c2940eb926c3b7d8d85f6f351a767d6664 (patch)
tree99dcbfdbb634867fd30b535118a14c80f227f7b6 /tests/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs
parenta28d221a4b31de1bda3debcadd3fa2d9bd988e5b (diff)
downloadrust-e0bfa5c2940eb926c3b7d8d85f6f351a767d6664.tar.gz
rust-e0bfa5c2940eb926c3b7d8d85f6f351a767d6664.zip
Rustdoc: include crate name in links for local primitives
It makes the link easier to use in cases in which
the path of the page where it will be embedded is not
known beforehand such as when we generate impls
dynamically from `register_type_impls` method in
`main.js`

Earlier for local primitives we would generate a path
that was relative to the current page depth passed in `cx.current`
. e.g if the current page was `std::simd::prelude::Simd` the
generated path would be `../../primitive.<prim>.html`  After this
change the path will first take you to the the wesite root and add
the crate name. e.g. for `std::simd::prelude::Simd` the path now
will be `../../../std/primitive.<prim>.html`
Diffstat (limited to 'tests/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs')
0 files changed, 0 insertions, 0 deletions