Skip to content

Commit 1eb7ce8

Browse files
committed
Fix issue with bad rebase in typeck::check::_match.
1 parent e43afbc commit 1eb7ce8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_typeck/check/_match.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,7 @@ pub fn check_pat_enum<'a, 'tcx>(pcx: &pat_ctxt<'a, 'tcx>,
580580
let fcx = pcx.fcx;
581581
let tcx = pcx.fcx.ccx.tcx;
582582

583-
let path_res = tcx.def_map.borrow().get(&pat.id).unwrap();
583+
let path_res = *tcx.def_map.borrow().get(&pat.id).unwrap();
584584

585585
let (opt_ty, segments, def) = match resolve_ty_and_def_ufcs(fcx, path_res,
586586
None, path,

0 commit comments

Comments
 (0)