Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rustdoc: remove redundant item kind class from .item-decl > pre #106869

Merged
merged 1 commit into from
Jan 17, 2023

Commits on Jan 14, 2023

  1. rustdoc: remove redundant item kind class from .item-decl > pre

    This class originated in the very first commit of `rustdoc_ng`, and was used
    to add a color border around the item decl based on its kind.
    
    https://github.com/rust-lang/rust/blob/4fd061c426902b0904c65e64a3780b21f9ab3afb/src/rustdoc_ng/html/static/main.css#L102-L106
    
    The item decl no longer has a border, and there aren't any
    kind-specific styles in modern rustdoc's rendering of this UI item.
    
    Most of this commit is updating test cases so that they use `item-decl` to
    find the `<pre>` tag instead of relying on the fact that the class name
    had `rust {kind}` in it while other `<pre>` tags only had class `rust`.
    notriddle committed Jan 14, 2023
    Configuration menu
    Copy the full SHA
    3a3f70c View commit details
    Browse the repository at this point in the history