Skip to content

Commit 1dd746d

Browse files
author
Jorge Aparicio
committed
---
yaml --- r: 163309 b: refs/heads/snap-stage3 c: 95d0763 h: refs/heads/master i: 163307: 8be745e v: v3
1 parent 0cf7cd4 commit 1dd746d

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 9146a919b616e39e528e4d7100d16eef52f1f852
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 1c5aac2b308445c7a03cdf9ff4b5457f7adbf1fb
4+
refs/heads/snap-stage3: 95d0763707956ec6518694ec0fb8b82a7b3a1261
55
refs/heads/try: 20cbbffeefc1f35e2ea63afce7b42fbd79611d42
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d

branches/snap-stage3/src/libregex/parse.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -888,8 +888,9 @@ impl<'a> Parser<'a> {
888888
// build_from combines all AST elements starting at 'from' in the
889889
// parser's stack using 'mk' to combine them. If any such element is not an
890890
// 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+
{
893894
if from >= self.stack.len() {
894895
return self.err("Empty group or alternate not allowed.")
895896
}

0 commit comments

Comments
 (0)