Fix def -> PathResolution
This commit is contained in:
parent
0d37323fd3
commit
825f49a89a
1 changed files with 1 additions and 1 deletions
|
@ -165,7 +165,7 @@ pub fn necessary_variants(dm: &DefMap, pat: &ast::Pat) -> Vec<ast::NodeId> {
|
||||||
ast::PatIdent(_, _, None) |
|
ast::PatIdent(_, _, None) |
|
||||||
ast::PatStruct(..) => {
|
ast::PatStruct(..) => {
|
||||||
match dm.borrow().get(&p.id) {
|
match dm.borrow().get(&p.id) {
|
||||||
Some(&DefVariant(_, id, _)) => {
|
Some(&PathResolution {base_def: DefVariant(_, id, _), ..}) => {
|
||||||
variants.push(id.node);
|
variants.push(id.node);
|
||||||
}
|
}
|
||||||
_ => ()
|
_ => ()
|
||||||
|
|
Loading…
Reference in a new issue