Skip to content

Commit 9c2d518

Browse files
committed
---
yaml --- r: 190237 b: refs/heads/tmp c: 825f49a h: refs/heads/master i: 190235: 6151cfd v: v3
1 parent 5a31390 commit 9c2d518

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
@@ -34,6 +34,6 @@ refs/heads/building: 126db549b038c84269a1e4fe46f051b2c15d6970
3434
refs/heads/beta: 522d09dfecbeca1595f25ac58c6d0178bbd21d7d
3535
refs/heads/windistfix: 7608dbad651f02e837ed05eef3d74a6662a6e928
3636
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
37-
refs/heads/tmp: 0d37323fd3052ca893caa7ec7b1a7263a1cd0656
37+
refs/heads/tmp: 825f49a89ab27e6c394cd9a7a7c59097baa8ea33
3838
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
3939
refs/tags/homu-tmp: d3c49d2140fc65e8bb7d7cf25bfe74dda6ce5ecf

branches/tmp/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)