about summary refs log tree commit diff
path: root/library/std/src/sys/unix/os.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-04-19 07:32:55 +0000
committerbors <bors@rust-lang.org>2021-04-19 07:32:55 +0000
commit62652865b6029b4776a7c03efa13a37b15c9b953 (patch)
treef6c28b7f6b1a700a4186bd07cb7926c2046478c7 /library/std/src/sys/unix/os.rs
parent532609b01c6ba2ac9d57f6ad822e79c1defa8c97 (diff)
parente23b035bbe7d3533d623c8658538249704fb4ab9 (diff)
downloadrust-62652865b6029b4776a7c03efa13a37b15c9b953.tar.gz
rust-62652865b6029b4776a7c03efa13a37b15c9b953.zip
Auto merge of #84283 - jsha:de-emphasize-attributes, r=GuillaumeGomez
rustdoc: Reduce visual weight of attributes.

Followup from #83337. As part of that PR, we stopped hiding attributes behind a toggle, because most things have just zero or one attributes. However, this made clear that the current rendering of attributes emphasizes them a lot, which distracts from function signatures. This PR changes their color of attributes to be the same as the toggles, and reduces their font weight.

This also removes `#[lang]` from the list of ALLOWED_ATTRIBUTES. This attribute is an implementation detail rather than part of the public-facing documentation.

![image](https://user-images.githubusercontent.com/220205/115131061-cc407d80-9fa9-11eb-9a77-ad3f3217f391.png)

Demo at https://hoffman-andrews.com/rust/de-emph-attr/std/string/struct.String.html#method.trim
Diffstat (limited to 'library/std/src/sys/unix/os.rs')
0 files changed, 0 insertions, 0 deletions