Make check_match and check_liveness take a LocalDefId

This commit is contained in:
Oli Scherer 2023-02-16 09:34:53 +00:00
parent 1ce80e210d
commit 5bb58a68de
3 changed files with 9 additions and 14 deletions

View file

@ -775,7 +775,7 @@ fn analysis(tcx: TyCtxt<'_>, (): ()) -> Result<()> {
// "not all control paths return a value" is reported here.
//
// maybe move the check to a MIR pass?
tcx.ensure().check_liveness(def_id.to_def_id());
tcx.ensure().check_liveness(def_id);
});
});
}