Skip to content

Commit 02f8a3d

Browse files
committed
---
yaml --- r: 189997 b: refs/heads/master c: 825f49a h: refs/heads/master i: 189995: 91db5bb v: v3
1 parent 611f73e commit 02f8a3d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
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: 0d37323fd3052ca893caa7ec7b1a7263a1cd0656
2+
refs/heads/master: 825f49a89ab27e6c394cd9a7a7c59097baa8ea33
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 270a677d4d698916f5ad103f0afc3c070b8dbeb4
55
refs/heads/try: 1c28ab65017d74fc13d003f7c7a73d1a48e5406f

trunk/src/librustc/middle/pat_util.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ pub fn necessary_variants(dm: &DefMap, pat: &ast::Pat) -> Vec<ast::NodeId> {
165165
ast::PatIdent(_, _, None) |
166166
ast::PatStruct(..) => {
167167
match dm.borrow().get(&p.id) {
168-
Some(&DefVariant(_, id, _)) => {
168+
Some(&PathResolution {base_def: DefVariant(_, id, _), ..}) => {
169169
variants.push(id.node);
170170
}
171171
_ => ()

0 commit comments

Comments
 (0)