Skip to content

rustdoc: missing const values #55680

Closed
Closed

Description

@jnqnfe

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

  1. frewsxcv commented on Nov 4, 2018

    @frewsxcv
    Contributor

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

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

    @QuietMisdreavus
    Contributor

    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.

  4. 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

      Issue actions