about summary refs log tree commit diff
path: root/compiler/rustc_const_eval
diff options
context:
space:
mode:
authorOli Scherer <git-spam-no-reply9815368754983@oli-obk.de>2023-10-20 09:02:22 +0000
committerOli Scherer <git-spam-no-reply9815368754983@oli-obk.de>2023-10-20 21:14:01 +0000
commit2d91c76d5dba082f6951eca6f8f694dff90c3607 (patch)
tree5b78aa9fd0d69b270368a4a6e0542729cc104aad /compiler/rustc_const_eval
parente96ce20b34789d29e925425da6cf138927b80a79 (diff)
downloadrust-2d91c76d5dba082f6951eca6f8f694dff90c3607.tar.gz
rust-2d91c76d5dba082f6951eca6f8f694dff90c3607.zip
Rename `CoroutineKind::Gen` to `::Coroutine`
Diffstat (limited to 'compiler/rustc_const_eval')
-rw-r--r--compiler/rustc_const_eval/src/transform/check_consts/check.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_const_eval/src/transform/check_consts/check.rs b/compiler/rustc_const_eval/src/transform/check_consts/check.rs
index ade1d5726b3..135c99fefbc 100644
--- a/compiler/rustc_const_eval/src/transform/check_consts/check.rs
+++ b/compiler/rustc_const_eval/src/transform/check_consts/check.rs
@@ -1043,7 +1043,7 @@ impl<'tcx> Visitor<'tcx> for Checker<'_, 'tcx> {
             TerminatorKind::InlineAsm { .. } => self.check_op(ops::InlineAsm),
 
             TerminatorKind::CoroutineDrop | TerminatorKind::Yield { .. } => {
-                self.check_op(ops::Coroutine(hir::CoroutineKind::Gen))
+                self.check_op(ops::Coroutine(hir::CoroutineKind::Coroutine))
             }
 
             TerminatorKind::UnwindTerminate(_) => {