-
-
Notifications
You must be signed in to change notification settings - Fork 14.9k
Rustdoc does not substitute const parameters #82852
Copy link
Copy link
Open
Labels
A-const-genericsArea: const generics (parameters and arguments)Area: const generics (parameters and arguments)C-bugCategory: This is a bug.Category: This is a bug.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.Relevant to the rustdoc team, which will review and decide on the PR/issue.
Metadata
Metadata
Assignees
Labels
A-const-genericsArea: const generics (parameters and arguments)Area: const generics (parameters and arguments)C-bugCategory: This is a bug.Category: This is a bug.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.Relevant to the rustdoc team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
I ran
cargo docon this code (src/lib.rs):I expected to see the definitions
type A1 = [i32; 3];andpub struct B1(pub [i32; 3]);in the generated documentation.Instead, I found
type A1 = [i32; N];andpub struct B1(pub [i32; N]);.That is, the definitions wrongly contain a stray identifier
Nthat should have been substituted with the literal3just like theTwas successfully substituted withi32.Meta
rustc --version --verbose:@rustbot modify labels: +T-rustdoc +A-const-generics +F-min_const_generics +C-bug