Skip to content

rustdoc: missing const values #55680

Closed
Closed
@jnqnfe

Description

@jnqnfe
Contributor

Just noticed with 1.30 that generated documentation no longer shows values of constants, only their type. Was this a deliberate change or a regression?

Aplogies if already reported, I took a quick look and did not find, nor do I recall reading in blog post.

Activity

frewsxcv

frewsxcv commented on Nov 4, 2018

@frewsxcv
Member

At least for associated constants, here's a relevant thread: #53409

added
T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.
on Nov 4, 2018
QuietMisdreavus

QuietMisdreavus commented on Nov 4, 2018

@QuietMisdreavus
Member

The change was deliberate. Rustdoc got the rendering of the value directly from the compiler, and didn't try to hide things like private or #[doc(hidden)] fields, because it had no control over its rendering. The PR that @frewsxcv linked, (and its linked issue, #44348) contains farther discussion.

jnqnfe

jnqnfe commented on Nov 8, 2018

@jnqnfe
ContributorAuthor

Oh, okay, thanks 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    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

        Participants

        @frewsxcv@QuietMisdreavus@jnqnfe

        Issue actions

          rustdoc: missing const values · Issue #55680 · rust-lang/rust