未验证 提交 459398dc 编写于 作者: M Mazdak Farrokhzad 提交者: GitHub

Rollup merge of #67071 - estebank:issue-66868, r=davidtwco

Do not ICE on closure typeck

Tackle #66868.

r? @davidtwco
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册