File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
branches/snap-stage3/src/libregex Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
refs/heads/master: 9146a919b616e39e528e4d7100d16eef52f1f852
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
- refs/heads/snap-stage3: 1c5aac2b308445c7a03cdf9ff4b5457f7adbf1fb
4
+ refs/heads/snap-stage3: 95d0763707956ec6518694ec0fb8b82a7b3a1261
5
5
refs/heads/try: 20cbbffeefc1f35e2ea63afce7b42fbd79611d42
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
Original file line number Diff line number Diff line change @@ -888,8 +888,9 @@ impl<'a> Parser<'a> {
888
888
// build_from combines all AST elements starting at 'from' in the
889
889
// parser's stack using 'mk' to combine them. If any such element is not an
890
890
// AST then it is popped off the stack and ignored.
891
- fn build_from ( & mut self , from : uint , mk : |Ast , Ast | -> Ast )
892
- -> Result < Ast , Error > {
891
+ fn build_from < F > ( & mut self , from : uint , mut mk : F ) -> Result < Ast , Error > where
892
+ F : FnMut ( Ast , Ast ) -> Ast ,
893
+ {
893
894
if from >= self . stack . len ( ) {
894
895
return self . err ( "Empty group or alternate not allowed." )
895
896
}
You can’t perform that action at this time.
0 commit comments