File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -76,6 +76,7 @@ pub trait Coroutine<R = ()> {
7676 /// values which are allowed to be returned each time a coroutine yields.
7777 /// For example an iterator-as-a-coroutine would likely have this type as
7878 /// `T`, the type being iterated over.
79+ #[ cfg_attr( not( bootstrap) , lang = "coroutine_yield" ) ]
7980 type Yield ;
8081
8182 /// The type of value this coroutine returns.
@@ -84,6 +85,7 @@ pub trait Coroutine<R = ()> {
8485 /// `return` statement or implicitly as the last expression of a coroutine
8586 /// literal. For example futures would use this as `Result<T, E>` as it
8687 /// represents a completed future.
88+ #[ cfg_attr( not( bootstrap) , lang = "coroutine_return" ) ]
8789 type Return ;
8890
8991 /// Resumes the execution of this coroutine.
You can’t perform that action at this time.
0 commit comments