about summary refs log tree commit diff
path: root/compiler/rustc_interface/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-09-29 20:17:36 +0200
committerGitHub <noreply@github.com>2024-09-29 20:17:36 +0200
commitc1e54cfa402f2beff92d6f2aa4c7a5060a0df0ef (patch)
tree39110eb7be41c58aea648f990b123f21ed3ae08d /compiler/rustc_interface/src
parent1d452037793ce9ca4694baedd0a29a4aefdc78ab (diff)
parenta67d3bdfe0e5fd15e64191282a2c5545df6123d8 (diff)
downloadrust-c1e54cfa402f2beff92d6f2aa4c7a5060a0df0ef.tar.gz
rust-c1e54cfa402f2beff92d6f2aa4c7a5060a0df0ef.zip
Rollup merge of #129003 - Voultapher:improve-ord-docs, r=workingjubilee
Improve Ord docs

- Makes wording more clear and re-structures some sections that can be overwhelming for someone not already in the know.
- Adds examples of how *not* to implement Ord, inspired by various anti-patterns found in real world code.

Many of the wording changes are inspired directly by my personal experience of being confused by the `Ord` docs and seeing other people get it wrong as well, especially lately having looked at a number of `Ord` implementations as part of #128899.

Created with help by `@orlp.`

r​? `@workingjubilee`
Diffstat (limited to 'compiler/rustc_interface/src')
0 files changed, 0 insertions, 0 deletions