about summary refs log tree commit diff
path: root/compiler/rustc_trait_selection/src/errors.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-04-19 14:17:29 +0000
committerbors <bors@rust-lang.org>2024-04-19 14:17:29 +0000
commitd1a0fa5ed3ffe52d72f761d3c95cbeb0a9cdfe66 (patch)
treedaca7a42c88c9a7ea0f83546b40ad66ebaaac55b /compiler/rustc_trait_selection/src/errors.rs
parent07d0d7ce3fd22e4fadd61206034af6fadcdb3e4f (diff)
parenta333572970ed62701fd57f902d57a0a0aca0dd86 (diff)
downloadrust-d1a0fa5ed3ffe52d72f761d3c95cbeb0a9cdfe66.tar.gz
rust-d1a0fa5ed3ffe52d72f761d3c95cbeb0a9cdfe66.zip
Auto merge of #118441 - GuillaumeGomez:display-stability-version, r=rustdoc
Always display stability version even if it's the same as the containing item

Fixes https://github.com/rust-lang/rust/issues/118439.

Currently, if the containing item's version is the same as the item's version (like a method), we don't display it on the item.

This was something done on purpose as you can see [here](https://github.com/rust-lang/rust/blob/e9b7bf011478aa8c19ac49afc99853a66ba04319/src/librustdoc/html/render/mod.rs#L949-L955). It was implemented in https://github.com/rust-lang/rust/pull/30686.

I think we should change this because on pages with a lot of items, if someone arrives (through the search or a link) to an item far below the page, they won't know the stability version unless they scroll to the top, which isn't great.

You can see the result [here](https://rustdoc.crud.net/imperio/display-stability-version/std/pin/struct.Pin.html#method.new).

r? `@notriddle`
Diffstat (limited to 'compiler/rustc_trait_selection/src/errors.rs')
0 files changed, 0 insertions, 0 deletions