Make check_match
and check_liveness
take a LocalDefId
This commit is contained in:
parent
1ce80e210d
commit
5bb58a68de
3 changed files with 9 additions and 14 deletions
|
@ -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);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue