rust-lang / rust-lang/rust

rustdoc: the required const feature gate is not shown

Open
#131,618 7 comments 1 reaction 1 assignee View on GitHub

@GuillaumeGomez is already working on this.

Since Jan 21, 2025.

A-rustdoc-ui C-bug T-rustdoc T-rustdoc-frontend
Dominant language
Rust
Stars
119k
Forks
16.1k
PR merge metrics
PR metrics pending

Description

For regular unstable functions, rustdoc shows something like this

Image

However, for const-unstable functions, all we get is

Image

There's no indication of what the feature gate is. Worse, if the function is unstable and const-unstable, but under different feature gates, then there's not even the "const: unstable" that links to the issue -- there's no way to figure out what the const feature gate is other than looking at the source.

Cc @rust-lang/rustdoc

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.