We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When re-exporting a struct from another crate which has private fields and constant(s) then the "value" of the constants are printed in rustdoc.
Original documentation of the external crate (as expected):
pub const ZERO: Scientific = _
I tried this code:
pub use scientific::Scientific;
I expected to see this happen: same documentation as above.
Instead, this happened:
pub const ZERO: Scientific = Scientific{ inner: Sci::ZERO,}
The general privacy of const seemed to be fixed in #32735 but not this case.
rustc --version --verbose:
rustc --version --verbose
binary: rustc commit-hash: 8ede3aae28fe6e4d52b38157d7bfe0d3bceef225 commit-date: 2023-07-12 host: aarch64-apple-darwin release: 1.71.0 LLVM version: 16.0.5 rustc 1.73.0-nightly (33a2c2487 2023-07-12) binary: rustc commit-hash: 33a2c2487ac5d9927830ea4c1844335c6b9f77db commit-date: 2023-07-12 host: aarch64-apple-darwin release: 1.73.0-nightly LLVM version: 16.0.5
The text was updated successfully, but these errors were encountered:
Dupe of #99630.
Sorry, something went wrong.
No branches or pull requests
When re-exporting a struct from another crate which has private fields and constant(s) then the "value" of the constants are printed in rustdoc.
Original documentation of the external crate (as expected):
I tried this code:
I expected to see this happen: same documentation as above.
Instead, this happened:
The general privacy of const seemed to be fixed in #32735 but not this case.
Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: