Make check_match take a LocalDefId.

This commit is contained in:
Camille GILLOT 2023-02-26 20:48:50 +00:00
parent 1767585509
commit fea7b59d12
3 changed files with 7 additions and 11 deletions

View file

@ -765,7 +765,7 @@ fn analysis(tcx: TyCtxt<'_>, (): ()) -> Result<()> {
parallel!(
{
sess.time("match_checking", || {
tcx.hir().par_body_owners(|def_id| tcx.ensure().check_match(def_id.to_def_id()))
tcx.hir().par_body_owners(|def_id| tcx.ensure().check_match(def_id))
});
},
{