about summary refs log tree commit diff
path: root/compiler/rustc_middle/src/ty/mod.rs
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2024-03-27 10:13:44 +0100
committerGitHub <noreply@github.com>2024-03-27 10:13:44 +0100
commitc0945f0c9ead2d64c1ce3e149df48f7d4a4bf746 (patch)
tree847809d2cfa32d8fe6216502b1625472c014ac70 /compiler/rustc_middle/src/ty/mod.rs
parent64a9360d3f58c16928648aeea57179d2f57f11c9 (diff)
parent1942f956a3d8c92fb33d6841b7410e65c33b60dd (diff)
downloadrust-c0945f0c9ead2d64c1ce3e149df48f7d4a4bf746.tar.gz
rust-c0945f0c9ead2d64c1ce3e149df48f7d4a4bf746.zip
Rollup merge of #123116 - chloekek:rustdoc-variant-swap-fields-doc, r=GuillaumeGomez
rustdoc: Swap fields and variant documentations

Previously, the documentation for a variant appeared after the documentation for each of its fields. This was inconsistent with structs and unions, and made little sense on its own; fields are subordinate to variants and should therefore appear later in the documentation.

Before:

![Screenshot of rendered documentation before this patch.](https://github.com/rust-lang/rust/assets/50083900/4c98258e-bdf7-4507-9cf1-fe601407ff11)

After:

![Screenshot of rendered documentation after this patch.](https://github.com/rust-lang/rust/assets/50083900/bd223f92-9b06-4b5a-820e-7a8501bdc0e2)
Diffstat (limited to 'compiler/rustc_middle/src/ty/mod.rs')
0 files changed, 0 insertions, 0 deletions