Skip to content

rustdoc-json: Report default field values information #142207

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

Open
obi1kenobi opened this issue Jun 8, 2025 · 0 comments
Open

rustdoc-json: Report default field values information #142207

obi1kenobi opened this issue Jun 8, 2025 · 0 comments
Labels
A-rustdoc-json Area: Rustdoc JSON backend A-stability Area: `#[stable]`, `#[unstable]` etc. C-enhancement Category: An issue proposing an enhancement or a PR with one. F-default_field_values `#![feature(default_field_values)]` T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.

Comments

@obi1kenobi
Copy link
Member

RFC 3681 (tracking issue) proposes supporting default values on fields.

As I mentioned at RustWeek, I'd love to move toward having SemVer lints available in cargo-semver-checks on day 1 of new language features hitting stable Rust. This feature is a perfect candidate to trial that:

  • @estebank and I have already worked to identify the new SemVer hazards in this language feature
  • the cargo-semver-checks schema and lints we'd need are relatively straightforward
  • all we need is for rustdoc JSON to include the info we need.

cc @aDotInTheVoid

@rustbot label A-rustdoc-json

@rustbot rustbot added needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. A-rustdoc-json Area: Rustdoc JSON backend T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. labels Jun 8, 2025
@jieyouxu jieyouxu added F-default_field_values `#![feature(default_field_values)]` A-stability Area: `#[stable]`, `#[unstable]` etc. C-enhancement Category: An issue proposing an enhancement or a PR with one. and removed needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. labels Jun 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-rustdoc-json Area: Rustdoc JSON backend A-stability Area: `#[stable]`, `#[unstable]` etc. C-enhancement Category: An issue proposing an enhancement or a PR with one. F-default_field_values `#![feature(default_field_values)]` T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

3 participants