rust/library/core/src/ops
Scott McMurray c20ad72323 Stabilize Range[Inclusive]::is_empty
I would like to propose these two simple methods for stabilization:
- Knowing that a range is exhaused isn't otherwise trivial
- Clippy would like to suggest them, but had to do extra work to disable that path <https://github.com/rust-lang/rust-clippy/issues/3807> because they're unstable
- These work on `PartialOrd`, consistently with now-stable `contains`, and are thus more general than iterator-based approaches that need `Step`
- They've been unchanged for some time, and have picked up uses in the compiler
- Stabilizing them doesn't block any future iterator-based is_empty plans, as the inherent ones are preferred in name resolution
2020-08-24 13:20:25 -07:00
..
arith.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
bit.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
deref.rs Use intra-doc-links in core::ops::* 2020-08-21 23:19:10 +02:00
drop.rs Remove links that get imported from the prelude 2020-08-21 23:27:23 +02:00
function.rs Use intra-doc-links in core::ops::* 2020-08-21 23:19:10 +02:00
generator.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
index.rs Remove links that get imported from the prelude 2020-08-21 23:27:23 +02:00
mod.rs Remove links that get imported from the prelude 2020-08-21 23:27:23 +02:00
range.rs Stabilize Range[Inclusive]::is_empty 2020-08-24 13:20:25 -07:00
try.rs hir: introduce lang items for AST lowering 2020-08-16 15:42:23 +01:00
unsize.rs Use intra-doc-links in core::ops::* 2020-08-21 23:19:10 +02:00