Skip to content

rustdoc-json: Report default field values information #142207

Open
@obi1kenobi

Description

@obi1kenobi

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-rustdoc-jsonArea: Rustdoc JSON backendA-stabilityArea: `#[stable]`, `#[unstable]` etc.C-enhancementCategory: An issue proposing an enhancement or a PR with one.F-default_field_values`#![feature(default_field_values)]`T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions