Files
rust/src/libcore
Mazdak Farrokhzad 73feddb9d4 Rollup merge of #59138 - timvermeulen:simplify_select_fold1, r=sfackler
Simplify Iterator::{min, max}

This PR simplifies the `select_fold1` helper method used to implmement `Iterator::{min, min_by, min_by_key, max, max_by, max_by_key}` by removing the projection argument, which was only used by the implementations of `min_by_key` and `max_by_key`.

I also added tests to ensure that the stability as mentioned in the comments of `min` and `max` is preserved, and fixed the `iter::{bench_max, bench_max_by_key}` benchmarks which the compiler presumably was able to collapse into closed-form expressions. None of the benchmark results were impacted, I suspect their generated assembly didn't change.
2019-03-13 03:33:57 +01:00
..
2019-02-13 18:00:18 +01:00
2019-02-20 22:06:30 +01:00
2019-02-10 23:57:25 +00:00
2018-12-25 21:08:33 -07:00
2019-02-12 22:46:14 -08:00
2018-12-25 21:08:33 -07:00
2019-02-10 23:42:32 +00:00
2018-12-25 21:08:33 -07:00
2018-12-25 21:08:33 -07:00
2019-02-10 23:57:25 +00:00
2019-02-10 23:57:25 +00:00
2019-02-10 23:57:25 +00:00
2019-02-10 23:57:25 +00:00
2018-12-25 21:08:33 -07:00
2019-02-25 23:21:54 +03:00
2018-12-25 21:08:33 -07:00
2018-12-25 21:08:33 -07:00
2018-12-25 21:08:33 -07:00
2018-12-25 21:08:33 -07:00
2018-12-25 21:08:33 -07:00