Skip to content

Commit 74750e3

Browse files
author
Jorge Aparicio
committed
---
yaml --- r: 168515 b: refs/heads/batch c: 10bbf69 h: refs/heads/master i: 168513: 0dfdd24 168511: a71433b v: v3
1 parent cf3247b commit 74750e3

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,5 @@ refs/tags/0.12.0: f0c419429ef30723ceaf6b42f9b5a2aeb5d2e2d1
2929
refs/heads/issue-18208-method-dispatch-2: 9e1eae4fb9b6527315b4441cf8a0f5ca911d1671
3030
refs/heads/automation-fail: 1bf06495443584539b958873e04cc2f864ab10e4
3131
refs/heads/issue-18208-method-dispatch-3-quick-reject: 2009f85b9f99dedcec4404418eda9ddba90258a2
32-
refs/heads/batch: c8cf3a307b94349cd4948a860d62730945e8d805
32+
refs/heads/batch: 10bbf69488b4863378e4acd9d55bde36b4a20909
3333
refs/heads/building: 126db549b038c84269a1e4fe46f051b2c15d6970

branches/batch/src/librustc_trans/trans/_match.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -410,15 +410,15 @@ fn expand_nested_bindings<'a, 'p, 'blk, 'tcx>(bcx: Block<'blk, 'tcx>,
410410
}).collect()
411411
}
412412

413-
type EnterPatterns<'a, 'p> = |&[&'p ast::Pat]|: 'a -> Option<Vec<&'p ast::Pat>>;
414-
415-
fn enter_match<'a, 'b, 'p, 'blk, 'tcx>(bcx: Block<'blk, 'tcx>,
416-
dm: &DefMap,
417-
m: &[Match<'a, 'p, 'blk, 'tcx>],
418-
col: uint,
419-
val: ValueRef,
420-
e: EnterPatterns<'b, 'p>)
421-
-> Vec<Match<'a, 'p, 'blk, 'tcx>> {
413+
fn enter_match<'a, 'b, 'p, 'blk, 'tcx, F>(bcx: Block<'blk, 'tcx>,
414+
dm: &DefMap,
415+
m: &[Match<'a, 'p, 'blk, 'tcx>],
416+
col: uint,
417+
val: ValueRef,
418+
mut e: F)
419+
-> Vec<Match<'a, 'p, 'blk, 'tcx>> where
420+
F: FnMut(&[&'p ast::Pat]) -> Option<Vec<&'p ast::Pat>>,
421+
{
422422
debug!("enter_match(bcx={}, m={}, col={}, val={})",
423423
bcx.to_str(),
424424
m.repr(bcx.tcx()),

0 commit comments

Comments
 (0)