Skip to content

rustdoc: Implementors of a trait is not const-evaled, thus showing [T; 32 - 1 - 1 - 1 - 1 - 1 - 1 - 1] #46727

Closed
@kennytm

Description

@kennytm

Repro steps:

  1. Go to https://doc.rust-lang.org/1.22.1/std/default/trait.Default.html or https://doc.rust-lang.org/nightly/std/default/trait.Default.html
  2. Scroll down.
  3. Notice the amusement.

screenshot_2017-12-14 19 53 05_jfu5c0-fs8

The array lengths are normal in 1.21.0, but it is not clear whether this is the effect of performing const evaluation or the macro generating these impl changed in the new version.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.E-mentorCall for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.regression-from-stable-to-stablePerformance or correctness regression from one stable version to another.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions