rust/tests
bors d1a0fa5ed3 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](e9b7bf0114/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`
2024-04-19 14:17:29 +00:00
..
assembly Add support for Arm64EC inline assembly 2024-04-10 10:06:44 -07:00
auxiliary
codegen At debuginfo=0, don't inline debuginfo when inlining 2024-04-18 09:35:35 -07:00
codegen-units Codegen const panic messages as function calls 2024-03-22 09:55:50 -04:00
coverage Eliminate UbCheck for non-standard libraries 2024-03-27 21:02:40 +08:00
coverage-run-rustdoc
crashes Auto merge of #124038 - matthiaskrgr:one_or_two_more_tests, r=jieyouxu 2024-04-19 01:02:44 +00:00
debuginfo disable two debuginfo tests under gdb 15 2024-04-15 12:46:22 +00:00
incremental Add missing -Zquery-dep-graph to the spike-neg incr comp tests 2024-04-06 13:36:16 +00:00
mir-opt Ensure [rust] debuginfo-level-std doesn't change core's MIR 2024-04-18 09:35:36 -07:00
pretty
run-make Auto merge of #123936 - Mark-Simulacrum:zst-no-alloc, r=oli-obk 2024-04-17 18:31:10 +00:00
run-make-fulldeps Soft-destabilize RustcEncodable/RustcDecodable 2024-03-22 13:24:35 -07:00
run-pass-valgrind
rustdoc Auto merge of #118441 - GuillaumeGomez:display-stability-version, r=rustdoc 2024-04-19 14:17:29 +00:00
rustdoc-gui Add GUI test for copy path button 2024-04-17 16:56:14 +02:00
rustdoc-js rustdoc-search: single result for items with multiple paths 2024-04-08 17:07:14 -07:00
rustdoc-js-std rustdoc-search: single result for items with multiple paths 2024-04-08 17:07:14 -07:00
rustdoc-json
rustdoc-ui Rollup merge of #123501 - Urgau:stabilize-check-cfg, r=petrochenkov 2024-04-16 17:54:41 +02:00
ui Rollup merge of #124110 - beetrees:neg-f16-f128, r=compiler-errors 2024-04-18 21:38:57 -07:00
ui-fulldeps Use the rustc_private libc less in tests 2024-04-15 08:54:11 -04:00
COMPILER_TESTS.md