about summary refs log tree commit diff
path: root/src/libsyntax/parse/parser
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-07-28 03:01:48 +0200
committerGitHub <noreply@github.com>2019-07-28 03:01:48 +0200
commit8f9b8c19de66ffc706a46c41a958e3358adf1ad4 (patch)
tree554fb5d717fc67f53a4326d969702bd4d977e410 /src/libsyntax/parse/parser
parentca0cd73f498449de4aaf6ff9bd620838e21e9b59 (diff)
parent3334802c83070d63b85b5b2e5508c15bfaf6e254 (diff)
downloadrust-8f9b8c19de66ffc706a46c41a958e3358adf1ad4.tar.gz
rust-8f9b8c19de66ffc706a46c41a958e3358adf1ad4.zip
Rollup merge of #62883 - Stargateur:refactoring-adapters, r=scottmcm
Refactoring use common code between option, result and accum

`Option` and `Result` have almost exactly the same code that in `accum.rs` that implement `Sum` and `Product`. This PR just move some code to use the same code for all of them. I believe is better to not implement this `Iterator` feature twice.

I'm not very familiar with pub visibility hope I didn't make then public. However, maybe these adapters could be useful and we could think to make then pub.

#59605
#11084

r? @pnkfelix
Diffstat (limited to 'src/libsyntax/parse/parser')
0 files changed, 0 insertions, 0 deletions