You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
#[doc(hidden)] causes type's traits to disappear from rustdoc JSON built with --document-hidden-items #107278
Affected crate: toml_edit, at path crates/toml_edit in repo https://github.com/toml-rs/toml
Commit: d86370fc5e8777e532de457cb6569feeae6429f0
Building rustdoc JSON with RUSTDOCFLAGS="-Z unstable-options --document-private-items --document-hidden-items --output-format=json"
Consider the following type from crates/toml_edit/src/easy/value.rs in that commit:
The bug was first spotted by @epage who filed a bug report on cargo-semver-checks for incorrectly reporting that types stopped being Send / Sync / Debug / Clone etc. Of course we now know this was because those traits were genuinely not present in the underlying rustdoc JSON file.
Thanks for all the awesome work you've been doing! It's been absolutely fundamental for cargo-semver-checks.
It would be great to make sure we have a regression test case for this
before closing the issue, since this is a correctness concern for
cargo-semver-checks that would be very difficult to debug if it reoccurs.
Activity
GuillaumeGomez commentedon Jan 27, 2023
It should be fixed with #107000.
aDotInTheVoid commentedon Feb 3, 2023
That didn't fix it
MCVE:
Produces (On f63ccaf)
its-the-shrimp commentedon Aug 8, 2024
This is fixed & works just fine as of today
rustdoc-json: added a test for rust-lang#107278
obi1kenobi commentedon Aug 8, 2024
its-the-shrimp commentedon Aug 8, 2024
Absolutely, that's what I've done in #128836
Rollup merge of rust-lang#128836 - its-the-shrimp:add_test_for_107278…
Rollup merge of rust-lang#128836 - its-the-shrimp:add_test_for_107278…
Unrolled build for rust-lang#128836