Skip to content

Commit c4619ac

Browse files
committed
---
yaml --- r: 97771 b: refs/heads/snap-stage3 c: 8f16356 h: refs/heads/master i: 97769: afc2ffa 97767: 6c1a183 v: v3
1 parent 7e6e6d5 commit c4619ac

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
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: 0da105a8b7b6b1e0568e8ff20f6ff4b13cc7ecc2
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 56f4d1831a65b9739d38c2754f65b641b4e0d6b8
4+
refs/heads/snap-stage3: 8f16356e5fb1a86bf2239a6bd51c3dda11155d1e
55
refs/heads/try: c274a6888410ce3e357e014568b43310ed787d36
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/src/librustc/middle/region.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -637,6 +637,7 @@ fn resolve_local(visitor: &mut RegionResolutionVisitor,
637637
*
638638
* P& = ref X
639639
* | StructName { ..., P&, ... }
640+
* | VariantName(..., P&, ...)
640641
* | [ ..., P&, ... ]
641642
* | ( ..., P&, ... )
642643
* | ~P&
@@ -656,6 +657,7 @@ fn resolve_local(visitor: &mut RegionResolutionVisitor,
656657
pats3.iter().any(|&p| is_binding_pat(p))
657658
}
658659

660+
ast::PatEnum(_, Some(ref subpats)) |
659661
ast::PatTup(ref subpats) => {
660662
subpats.iter().any(|&p| is_binding_pat(p))
661663
}

0 commit comments

Comments
 (0)