rustdoc has gone back and forth on whether to show constant values for various reasons:
https://github.com/rust-lang/rust/pull/53409
https://github.com/rust-lang/rust/pull/66221
GitHub
Fixes #66099, making rustdoc show evaluated constant scalar values.
where main.rs is
pub const VAL3: i32 = i32::max_value();
pub const VAL4: i32 = i32::max_value() - 1;
As a fallback, when a cons...