diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-08-28 13:54:13 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-08-30 10:30:57 +1000 |
| commit | 243109e006c0ffade939db475524c1957dcae409 (patch) | |
| tree | 737eef2212842dee98f52aa9c522cbf42ed63965 | |
| parent | 590a02173bba33fd7cd50bf9ae9061727ebe24ca (diff) | |
| download | rust-243109e006c0ffade939db475524c1957dcae409.tar.gz rust-243109e006c0ffade939db475524c1957dcae409.zip | |
Remove an unnecessary `continue`.
| -rw-r--r-- | compiler/rustc_mir_transform/src/coroutine.rs | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/compiler/rustc_mir_transform/src/coroutine.rs b/compiler/rustc_mir_transform/src/coroutine.rs index 8ee2b8cbb9c..84c6a60fa23 100644 --- a/compiler/rustc_mir_transform/src/coroutine.rs +++ b/compiler/rustc_mir_transform/src/coroutine.rs @@ -558,8 +558,6 @@ fn transform_async_context<'tcx>(tcx: TyCtxt<'tcx>, body: &mut Body<'tcx>) { let local = eliminate_get_context_call(&mut body[bb]); replace_resume_ty_local(tcx, body, local, context_mut_ref); } - } else { - continue; } } TerminatorKind::Yield { resume_arg, .. } => { |
