diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-05-29 08:15:48 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-05-29 08:15:48 +0200 |
| commit | d67d1f24dc8b7ba8c00dacde3ee86c75aa85e91e (patch) | |
| tree | 969814388705377c8cecbf68e70d12ace3667853 /src/test/ui/thinlto | |
| parent | 4b9d80325a65b0375eea526409a0f3aaf1cbc23c (diff) | |
| parent | 9f8d934f271fcaf9c34aefa8062b7563cfd34721 (diff) | |
| download | rust-d67d1f24dc8b7ba8c00dacde3ee86c75aa85e91e.tar.gz rust-d67d1f24dc8b7ba8c00dacde3ee86c75aa85e91e.zip | |
Rollup merge of #58975 - jtdowney:iter_arith_traits_option, r=dtolnay
Implement `iter::Sum` and `iter::Product` for `Option` This is similar to the existing implementation for `Result`. It will take each item into the accumulator unless a `None` is returned. I based a lot of this on #38580. From that discussion it didn't seem like this addition would be too controversial or difficult. One thing I still don't understand is picking the values for the `stable` attribute. This is my first non-documentation PR for rust so I am open to any feedback on improvements.
Diffstat (limited to 'src/test/ui/thinlto')
0 files changed, 0 insertions, 0 deletions
