X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Flibrustc%2Fmiddle%2Fpat_util.rs;h=b187c0d8897086f8010a89bf0c01a1740ad8d0ff;hb=ceaaa1bc3388e9a198af198729a6a8821ce54ffb;hp=1284e9fd1454eab7044b9cdd7e263f0c170f4f2a;hpb=c4c9628de7d4e970b2cb43d0f1a4c8f9ad03aca1;p=rust.git diff --git a/src/librustc/middle/pat_util.rs b/src/librustc/middle/pat_util.rs index 1284e9fd145..b187c0d8897 100644 --- a/src/librustc/middle/pat_util.rs +++ b/src/librustc/middle/pat_util.rs @@ -228,7 +228,7 @@ pub fn necessary_variants(dm: &DefMap, pat: &hir::Pat) -> Vec { hir::PatIdent(_, _, None) | hir::PatStruct(..) => { match dm.get(&p.id) { - Some(&PathResolution { base_def: DefVariant(_, id, _), .. }) => { + Some(&PathResolution { base_def: DefVariant(_, id), .. }) => { variants.push(id); } _ => ()