mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-07 09:13:07 +03:00
Rollup merge of #67071 - estebank:issue-66868, r=davidtwco
Do not ICE on closure typeck Tackle #66868. r? @davidtwco
This commit is contained in:
@@ -2210,6 +2210,10 @@ fn note_obligation_cause_for_async_await(
|
||||
}
|
||||
|
||||
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);
|
||||
debug!("note_obligation_cause_for_async_await: generator_did={:?} span={:?} ",
|
||||
generator_did, span);
|
||||
|
||||
Reference in New Issue
Block a user