Skip to content

Commit df3e129

Browse files
Consolidate logic around resolving built-in coroutine trait impls
1 parent 5d58c1b commit df3e129

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/src/ops/coroutine.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ pub trait Coroutine<R = ()> {
111111
/// been returned previously. While coroutine literals in the language are
112112
/// guaranteed to panic on resuming after `Complete`, this is not guaranteed
113113
/// for all implementations of the `Coroutine` trait.
114+
#[cfg_attr(not(bootstrap), lang = "coroutine_resume")]
114115
fn resume(self: Pin<&mut Self>, arg: R) -> CoroutineState<Self::Yield, Self::Return>;
115116
}
116117

0 commit comments

Comments
 (0)