rust-lang / reference

The Rust Reference
https://doc.rust-lang.org/nightly/reference/
Apache License 2.0
1.25k stars 493 forks source link

re-structure 'invalid values' enumeration to instead define what is *valid* #1540

Closed RalfJung closed 4 months ago

RalfJung commented 4 months ago

I've always been bothered by the fact that was are listing what is invalid, which just feels all backwards. So this PR changes that list to instead enumerate what is valid. We also move that list into its own subsection to give a bit more structure to this entire page.