paritytech / substrate

Substrate: The platform for blockchain innovators
Apache License 2.0
8.39k stars 2.65k forks source link

confusing docs linking #6154

Closed apopiak closed 4 years ago

apopiak commented 4 years ago

When following type links in the Rust docs, e.g. clicking on Signature in the Sr25519 variant here, the user is linked to the wrong Rust item, e.g. the sp_runtime::testing::sr25519::Signature instead of sp_core::sr25519::Signature.

bkchr commented 4 years ago

This looks like a bug in rustdoc. We import the correct module, but it seems rustdoc gets confused because we also import the same module in our testing module. It would be nice if you could create a reproducible example and post the issue upstream. However, this issue is not Substrate related and thus, I will close it ;)