Skip to content

Commit 825f49a

Browse files
committed
Fix def -> PathResolution
1 parent 0d37323 commit 825f49a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc/middle/pat_util.rs

+1-1
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)