check stalled coroutine obligations eagerly
This commit is contained in:
parent
be4794c78b
commit
d8ff397cd6
2 changed files with 12 additions and 11 deletions
|
|
@ -121,6 +121,11 @@ fn mir_borrowck(
|
|||
let (input_body, _) = tcx.mir_promoted(def);
|
||||
debug!("run query mir_borrowck: {}", tcx.def_path_str(def));
|
||||
|
||||
// We should eagerly check stalled coroutine obligations from HIR typeck.
|
||||
// Not doing so leads to silent normalization failures later, which will
|
||||
// fail to register opaque types in the next solver.
|
||||
tcx.check_coroutine_obligations(def)?;
|
||||
|
||||
let input_body: &Body<'_> = &input_body.borrow();
|
||||
if let Some(guar) = input_body.tainted_by_errors {
|
||||
debug!("Skipping borrowck because of tainted body");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue