Rollup merge of #67071 - estebank:issue-66868, r=davidtwco
Do not ICE on closure typeck Tackle #66868. r? @davidtwco
This commit is contained in:
commit
459398dc40
1 changed files with 4 additions and 0 deletions
|
@ -2210,6 +2210,10 @@ impl<'a, 'tcx> InferCtxt<'a, 'tcx> {
|
||||||
}
|
}
|
||||||
|
|
||||||
let span = self.tcx.def_span(generator_did);
|
let span = self.tcx.def_span(generator_did);
|
||||||
|
// Do not ICE on closure typeck (#66868).
|
||||||
|
if let None = self.tcx.hir().as_local_hir_id(generator_did) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
let tables = self.tcx.typeck_tables_of(generator_did);
|
let tables = self.tcx.typeck_tables_of(generator_did);
|
||||||
debug!("note_obligation_cause_for_async_await: generator_did={:?} span={:?} ",
|
debug!("note_obligation_cause_for_async_await: generator_did={:?} span={:?} ",
|
||||||
generator_did, span);
|
generator_did, span);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue