Uh oh!
There was an error while loading. Please reload this page.
Iterator specialization for EscapeDefaults - #30624
Conversation
rust-highfive
commented
Dec 29, 2015
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @brson (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
There was a problem hiding this comment.
Wouldn't it be convenient to fold this into the previous match?
I did something similar here: ranma42@0cdfa6d
ranma42
commented
Dec 29, 2015
Does this commit complete the tasks listed in #24214 ? AFAICT |
ticki
commented
Dec 30, 2015
@ranma42 Interesting. It's true that it doesn't fix the EscapeUnicode. Have you tried to send a pull request? |
ranma42
commented
Dec 30, 2015
I will send one soon. I had some unresolved questions, though, about how to handle code duplication and whether the methods should be |
ticki
commented
Dec 30, 2015
@ranma42 I don't think they should be so. They're not simple enough for inlining to be worth it. |
ticki
commented
Jan 1, 2016
r? @aturon |
ranma42
commented
Jan 2, 2016
I believe that the test should be moved to |
There was a problem hiding this comment.
This sum can overflow if when n = usize::MAX and start = 1 (i.e. self.state is Char(_)).
ticki
commented
Jan 12, 2016
@alexcrichton I have now fixed the comments you gave. |
There was a problem hiding this comment.
This method may not be necessary as it can just be folded into the match above
ticki
commented
Jan 15, 2016
@alexcrichton I updated it to reflect your points. |
ranma42
commented
Jan 15, 2016
@alexcrichton I have a branch which specialises |
alexcrichton
commented
Jan 15, 2016
Ok, we can perhaps try to unify once they both exist, but at least for now this seems more understandable to me at least. @ticki, can you also squash the commits together? Other than that looks good to me, thanks! |
ticki
commented
Jan 16, 2016
@alexcrichton Yep. Will do. |
ticki
commented
Jan 16, 2016
Squash done! |
alexcrichton
commented
Jan 16, 2016
Looks like some other snuck in by accident? |
ticki
commented
Jan 16, 2016
Damn. Will fix. |
…e tests to libcoretest Remove unused import Fold nth() method into the match expr
ticki
commented
Jan 16, 2016
@alexcrichton Fixed. |
Part of #30520. Completes #24214