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
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.
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.
Activity
frewsxcv commentedon Nov 4, 2018
At least for associated constants, here's a relevant thread: #53409
QuietMisdreavus commentedon Nov 4, 2018
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 commentedon Nov 8, 2018
Oh, okay, thanks 👍