about summary refs log tree commit diff
path: root/compiler/stable_mir/src/mir
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-10-25 23:37:11 +0200
committerGitHub <noreply@github.com>2023-10-25 23:37:11 +0200
commit4e4e5619af3693c194b85e787300492bc04b2d47 (patch)
tree1bb3553ca0223662c1f552bef123f79f828f5640 /compiler/stable_mir/src/mir
parent2a027faf6839d83a743c73ad15677eddce563b43 (diff)
parentc601ade3ad7e59a31d4b429078034074566fd715 (diff)
downloadrust-4e4e5619af3693c194b85e787300492bc04b2d47.tar.gz
rust-4e4e5619af3693c194b85e787300492bc04b2d47.zip
Rollup merge of #117175 - oli-obk:gen_fn_split, r=compiler-errors
Rename AsyncCoroutineKind to CoroutineSource

pulled out of https://github.com/rust-lang/rust/pull/116447

Also refactors the printing infra of `CoroutineSource` to be ready for easily extending it with a `Gen` variant for `gen` blocks
Diffstat (limited to 'compiler/stable_mir/src/mir')
-rw-r--r--compiler/stable_mir/src/mir/body.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/stable_mir/src/mir/body.rs b/compiler/stable_mir/src/mir/body.rs
index fc617513aee..c2e79eaaf3f 100644
--- a/compiler/stable_mir/src/mir/body.rs
+++ b/compiler/stable_mir/src/mir/body.rs
@@ -135,12 +135,12 @@ pub enum UnOp {
 
 #[derive(Clone, Debug)]
 pub enum CoroutineKind {
-    Async(AsyncCoroutineKind),
+    Async(CoroutineSource),
     Coroutine,
 }
 
 #[derive(Clone, Debug)]
-pub enum AsyncCoroutineKind {
+pub enum CoroutineSource {
     Block,
     Closure,
     Fn,