]> git.lizzy.rs Git - rust.git/commit - library/std/src/os/fd/owned.rs
Rollup merge of #106869 - notriddle:notriddle/item-decl-pre-rust, r=GuillaumeGomez
authorMatthias Krüger <matthias.krueger@famsik.de>
Tue, 17 Jan 2023 04:25:22 +0000 (05:25 +0100)
committerGitHub <noreply@github.com>
Tue, 17 Jan 2023 04:25:22 +0000 (05:25 +0100)
commitb90f62988d06421a4e5fdd63ca625d47aac130a0
treeffec19974b34160234d3cf4141c43c2b2635e439
parent6b49435480ea9a6d8bbd7fd2acf7b3aa6607577c
parent3a3f70c94e280cbd8354874438643d15ca6ef319
Rollup merge of #106869 - notriddle:notriddle/item-decl-pre-rust, r=GuillaumeGomez

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 PR 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`.
src/librustdoc/html/render/print_item.rs