Skip to content

Rust Reference page title issues #2568

Closed

Description

@cpmsmith

Documentation style bug

Summary

A few different things around page titles for The Rust Reference:

  1. All page titles in the nav begin with ..
  2. Page titles in the nav don't match the title when viewing them, e.g. Grouped expressions shows .. The Rust Reference, and Panic shows .. The panic_handler attribute
  3. Anchor IDs, e.g. [expr.paren] show up as headings before the actual page heading

May be related to #2510 or its fix

Actual style

Many pages, including: https://devdocs.io/rust/reference/expressions/grouped-expr

Image

Expected style

https://doc.rust-lang.org/reference/expressions/grouped-expr.html#r-expr.paren

Image

Activity

  1. cpmsmith commented on Sep 5, 2025

    @cpmsmith
    ContributorAuthor

    Oh also, a couple of pages in the Rust Guide ("the book") have the same .. problem, which I think messes up the sorting within the Guide (note 21.03 above 00.00)

    Image
  2. spamguy commented on Sep 8, 2025

    @spamguy
    Contributor

    I can work on this.

  3. added 2 commits that reference this issue on Sep 8, 2025
    47c669a
    e1e9f8b
  4. cpmsmith commented on Sep 8, 2025

    @cpmsmith
    ContributorAuthor

    @spamguy

    I can work on this.

    I actually got around to it in #2569. However there is still some unusual stuff going on with the std:: stuff as well, where almost everything is getting put in the std type, even when it should be in some more specific module, e.g. std::process::abort and std::intrinsics::abort are both labelled std::abort, meanwhile std::intrinsics is empty:

    Image Image
  5. spamguy commented on Sep 9, 2025

    @spamguy
    Contributor

    Nice. I'll leave you to it then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions