about summary refs log tree commit diff
path: root/src/test/ui/thinlto
diff options
context:
space:
mode:
authorLukas Kalbertodt <lukas.kalbertodt@gmail.com>2018-12-17 15:54:19 +0100
committerKevin Leimkuhler <kevin@kleimkuhler.com>2019-01-17 22:34:43 -0800
commit54f11240b701f7d4031c3d1545232ebad4436c15 (patch)
tree0f4d429486121c542fe16bef251082c212e0b1d6 /src/test/ui/thinlto
parent67729b4040a17508640af17c21876650b34ff6de (diff)
downloadrust-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