about summary refs log tree commit diff
path: root/src/libsyntax/parse
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2018-01-11 12:22:54 +0000
committerbors <bors@rust-lang.org>2018-01-11 12:22:54 +0000
commit73ac5d6a80f26c692f1e084b72d69637d7de2c8c (patch)
treed15437596327bad850bf1ef4f07d3bc5abe26005 /src/libsyntax/parse
parent619ced057842a25f8700237a9c22a6f5c318a954 (diff)
parent919d643b7953ea1b3b717d31f0735423d97b87ca (diff)
downloadrust-73ac5d6a80f26c692f1e084b72d69637d7de2c8c.tar.gz
rust-73ac5d6a80f26c692f1e084b72d69637d7de2c8c.zip
Auto merge of #47180 - varkor:range-iterator-overrides, r=alexcrichton
Add iterator method specialisations to Range*

Add specialised implementations of `max` for `Range`, and `last`, `min` and `max` for `RangeInclusive`, all of which lead to significant advantages in the generated assembly on x86.

Note that adding specialisations of `min` and `last` for `Range` led to no benefit, and adding `sum` for `Range` and `RangeInclusive` led to type inference issues (though this is possibly still worthwhile considering the performance gain).

This addresses some of the concerns in #39975.
Diffstat (limited to 'src/libsyntax/parse')
0 files changed, 0 insertions, 0 deletions