Skip to content

Commit bc04bd8

Browse files
committed
---
yaml --- r: 98177 b: refs/heads/master c: 8f16356 h: refs/heads/master i: 98175: 9bde994 v: v3
1 parent 1323650 commit bc04bd8

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,5 +1,5 @@
11
---
2-
refs/heads/master: 56f4d1831a65b9739d38c2754f65b641b4e0d6b8
2+
refs/heads/master: 8f16356e5fb1a86bf2239a6bd51c3dda11155d1e
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: b6400f998497c3958f40997a71756ead344a776d
55
refs/heads/try: c274a6888410ce3e357e014568b43310ed787d36

trunk/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)