diff options
| author | Lukas Kalbertodt <lukas.kalbertodt@gmail.com> | 2018-12-17 15:54:19 +0100 |
|---|---|---|
| committer | Kevin Leimkuhler <kevin@kleimkuhler.com> | 2019-01-17 22:34:43 -0800 |
| commit | 54f11240b701f7d4031c3d1545232ebad4436c15 (patch) | |
| tree | 0f4d429486121c542fe16bef251082c212e0b1d6 /src/test/ui/thinlto | |
| parent | 67729b4040a17508640af17c21876650b34ff6de (diff) | |
| download | rust-54f11240b701f7d4031c3d1545232ebad4436c15.tar.gz rust-54f11240b701f7d4031c3d1545232ebad4436c15.zip | |
Override `Iterator::is_sorted_by` in `slice::Iter` impl
Additionally, the root implementation was changed a bit: it now uses `all` instead of coding that logic manually. To avoid duplicate code, the inherent `[T]::is_sorted_by` method now calls `self.iter().is_sorted_by(...)`. This should always be inlined and not result in overhead.
Diffstat (limited to 'src/test/ui/thinlto')
0 files changed, 0 insertions, 0 deletions
