mirror of
https://github.com/allankoechke/rust.git
synced 2026-12-02 17:44:28 +00:00
compiler: `ops::RangeInclusive` → `range::RangeInclusive`
The type's been stable for over 6 weeks now, so let's use it! It's better for cases like this one where it's stored in a data structure.
Probably won't be materially faster, but does make the variant slightly smaller and lets some more things be `Copy`. And deletes a whole bunch of parens from things being fields instead of methods 😄
r? compiler
Please read the rustc-dev-guide chapter on Backend Agnostic Codegen.