-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Duplicated modules and functions in solana_sdk docs #26211
Comments
Some of the redefinitions can probably be eliminated by moving their defs into solana_program. |
After looking into this a bit more I think using |
Problem
The crate documentation for solana_sdk lists duplicate modules for
entrypoint
,feature
, and many other items. This arises because solana_sdk is glob-reexportingsolana_program::*
but also redefining several of the items within that crate. Rust callers only see the redefinitions but due to a bug (rust-lang/rust#60522) in rustdoc, the documentation shows two definitions.Clicking either definition leads to the same page. The linked issue indicates that whether rustdoc shows the reexport or the redefinition is non-deterministic, but so far I have only seen rustdoc show the redefinitions in this case.
Proposed Solution
While fixing the bug upstream would be best, I intend to just add
#[doc(hidden)]
to the redefinitions to work around the problem.The text was updated successfully, but these errors were encountered: