mergify · GitHub

Problem

The docs for solana_sdk show many duplicated modules and macros. Per #26211 this is due to a bug in rustdoc (rust-lang/rust#60522) that causes *-imports that are shadowed by local definitions to not be removed from the docs.

This bug not only causes duplicate listings of items, but also non-deterministically causes the docs for those items to show shadowed *-imported version, causing some items defined within those duplicated modules to not be documented at all.

Summary of Changes

This patch removes the solana_program::* import and instead lists every non-shadowed import explicitly.

This is obviously a lot harder to maintain so long as every item in solana_program is intended to be reexported, and made more difficult by some items being target-specific. If this solution is not acceptable I am willing to attempt to make the upstream rustdoc fix, though it will take some time.

Fixes #26211

Read the original on github.com ↗