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
{{ message }}
Repository navigation
For stable const fn, rustdoc does not always show both the version of fn stabilization and const stabilization #121989
changed the title [-]For stable const fn, rustfmt does not always show both the version of `fn` stabilization and `const` stabilization[/-][+]For stable const fn, rustdoc does not always show both the version of `fn` stabilization and `const` stabilization[/+]on Mar 4, 2024
It was pointed out that rustdoc omits the version of a method when it equals the type. That makes sense when the version is then entirely omitted, but here the "const" version is still shown; I interpreted this as meaning "1.32 is when this got stabilized" and didn't realize it mean only const-stabilization (and "scroll up to the top of this page" for the other version).
in my opinion it's always useful to see the stabilization version, even if it's the same as the containing type's stabilization version. the ui element is not obstructive or distracting, doesn't take up much space, and the space it takes is already not particularly valuable space.
Reacted by Michael Goulet, zachs18 and James C. Wise
Activity
[-]For stable const fn, rustfmt does not always show both the version of `fn` stabilization and `const` stabilization[/-][+]For stable const fn, rustdoc does not always show both the version of `fn` stabilization and `const` stabilization[/+]RalfJung commentedon Mar 4, 2024
It was pointed out that rustdoc omits the version of a method when it equals the type. That makes sense when the version is then entirely omitted, but here the "const" version is still shown; I interpreted this as meaning "1.32 is when this got stabilized" and didn't realize it mean only const-stabilization (and "scroll up to the top of this page" for the other version).
asquared31415 commentedon Mar 4, 2024
in my opinion it's always useful to see the stabilization version, even if it's the same as the containing type's stabilization version. the ui element is not obstructive or distracting, doesn't take up much space, and the space it takes is already not particularly valuable space.