Skip to content

Some htmldocck tests could be cleaned up #21740

@tomjakubowski

Description

@tomjakubowski

For example, the rustdoc-where tests originally used regexes as a kludge to avoid trying to match HTML tags, but with htmldocck they can now check against text nodes.

Something like:

// @matches foo/struct.Alpha.html '//pre' "Alpha.*where.*A:.*MyTrait"

can be greatly clarified like:

// @matches foo/struct.Alpha.html '//pre' "pub struct Alpha<A> where A: MyTrait"

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-cleanupCategory: PRs that clean code up or issues documenting cleanup.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions