diff options
| author | Michael Goulet <michael@errs.io> | 2024-01-06 21:51:46 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-06 21:51:46 -0500 |
| commit | 854d1131ff33d437aae5fa6fcfdf0cbbaae3067b (patch) | |
| tree | 025db1a32ba4768aa4ee843c4bb261de838d4bcf /compiler/rustc_const_eval/src | |
| parent | 5117dc7a5bd8a9899207087eeaac8c8512c66bae (diff) | |
| parent | 5e2b66fc9da7dadb40062a365ac540d4a031da25 (diff) | |
| download | rust-854d1131ff33d437aae5fa6fcfdf0cbbaae3067b.tar.gz rust-854d1131ff33d437aae5fa6fcfdf0cbbaae3067b.zip | |
Rollup merge of #119666 - compiler-errors:construct-coroutine-info-immediately, r=cjgillot
Populate `yield` and `resume` types in MIR body while body is being initialized I found it weird that we went back and populated these types *after* the body was constructed. Let's just do it all at once.
Diffstat (limited to 'compiler/rustc_const_eval/src')
| -rw-r--r-- | compiler/rustc_const_eval/src/transform/promote_consts.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_const_eval/src/transform/promote_consts.rs b/compiler/rustc_const_eval/src/transform/promote_consts.rs index 8b2ea2dc21d..155cf4ff9e2 100644 --- a/compiler/rustc_const_eval/src/transform/promote_consts.rs +++ b/compiler/rustc_const_eval/src/transform/promote_consts.rs @@ -969,7 +969,7 @@ pub fn promote_candidates<'tcx>( 0, vec![], body.span, - body.coroutine_kind(), + None, body.tainted_by_errors, ); promoted.phase = MirPhase::Analysis(AnalysisPhase::Initial); |
